Skip to content

Commit 0b9825a

Browse files
Deprecate GCR (#13455)
1 parent 787db2b commit 0b9825a

6 files changed

+14
-5
lines changed

mmv1/third_party/terraform/services/containeranalysis/data_source_container_registry_image.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ import (
1111

1212
func DataSourceGoogleContainerImage() *schema.Resource {
1313
return &schema.Resource{
14-
Read: containerRegistryImageRead,
14+
DeprecationMessage: "Container Registry is deprecated. Effective March 18, 2025, Container Registry is shut down and writing images to Container Registry is unavailable. Resource will be removed in future major release.",
15+
Read: containerRegistryImageRead,
1516
Schema: map[string]*schema.Schema{
1617
"name": {
1718
Type: schema.TypeString,

mmv1/third_party/terraform/services/containeranalysis/data_source_container_registry_repository.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ import (
1111

1212
func DataSourceGoogleContainerRepo() *schema.Resource {
1313
return &schema.Resource{
14-
Read: containerRegistryRepoRead,
14+
DeprecationMessage: "Container Registry is deprecated. Effective March 18, 2025, Container Registry is shut down and writing images to Container Registry is unavailable. Resource will be removed in future major release.",
15+
Read: containerRegistryRepoRead,
1516
Schema: map[string]*schema.Schema{
1617
"region": {
1718
Type: schema.TypeString,

mmv1/third_party/terraform/services/containeranalysis/resource_container_registry.go

+4-3
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@ import (
1313

1414
func ResourceContainerRegistry() *schema.Resource {
1515
return &schema.Resource{
16-
Create: resourceContainerRegistryCreate,
17-
Read: resourceContainerRegistryRead,
18-
Delete: resourceContainerRegistryDelete,
16+
DeprecationMessage: "Container Registry is deprecated. Effective March 18, 2025, Container Registry is shut down and writing images to Container Registry is unavailable. Resource will be removed in future major release.",
17+
Create: resourceContainerRegistryCreate,
18+
Read: resourceContainerRegistryRead,
19+
Delete: resourceContainerRegistryDelete,
1920

2021
CustomizeDiff: customdiff.All(
2122
tpgresource.DefaultProviderProject,

mmv1/third_party/terraform/website/docs/d/container_registry_image.html.markdown

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ description: |-
66

77
# google_container_registry_image
88

9+
-> **Warning**: Container Registry is deprecated. Effective March 18, 2025, Container Registry is shut down and writing images to Container Registry is unavailable. Resource will be removed in future major release.
10+
911
This data source fetches the project name, and provides the appropriate URLs to use for container registry for this project.
1012

1113
The URLs are computed entirely offline - as long as the project exists, they will be valid, but this data source does not contact Google Container Registry (GCR) at any point.

mmv1/third_party/terraform/website/docs/d/container_registry_repository.html.markdown

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ description: |-
66

77
# google_container_registry_repository
88

9+
-> **Warning**: Container Registry is deprecated. Effective March 18, 2025, Container Registry is shut down and writing images to Container Registry is unavailable. Resource will be removed in future major release.
10+
911
This data source fetches the project name, and provides the appropriate URLs to use for container registry for this project.
1012

1113
The URLs are computed entirely offline - as long as the project exists, they will be valid, but this data source does not contact Google Container Registry (GCR) at any point.

mmv1/third_party/terraform/website/docs/r/container_registry.html.markdown

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ description: |-
66

77
# google_container_registry
88

9+
-> **Warning**: Container Registry is deprecated. Effective March 18, 2025, Container Registry is shut down and writing images to Container Registry is unavailable. Resource will be removed in future major release.
10+
911
Ensures that the Google Cloud Storage bucket that backs Google Container Registry exists. Creating this resource will create the backing bucket if it does not exist, or do nothing if the bucket already exists. Destroying this resource does *NOT* destroy the backing bucket. For more information see [the official documentation](https://cloud.google.com/container-registry/docs/overview)
1012

1113
This resource can be used to ensure that the GCS bucket exists prior to assigning permissions. For more information see the [access control page](https://cloud.google.com/container-registry/docs/access-control) for GCR.

0 commit comments

Comments
 (0)