Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Container Registry is deprecated - consider deprecating #3136

Open
t0yv0 opened this issue Mar 25, 2025 · 1 comment
Open

Container Registry is deprecated - consider deprecating #3136

t0yv0 opened this issue Mar 25, 2025 · 1 comment
Labels
kind/bug Some behavior is incorrect or out of spec

Comments

@t0yv0
Copy link
Member

t0yv0 commented Mar 25, 2025

Describe what happened

Container Registry is deprecated and periodically fails. We could make this an official deprecation in pulumi-gcp.

Upstream issue has not been resolved as yet:

hashicorp/terraform-provider-google#19661

Sample program

One of Docker examples sporadically hits this error:

import * as gcp from "@pulumi/gcp";
import * as docker from "@pulumi/docker";

// Create a private GCR registry.
const registry = new gcp.container.Registry("my-registry");
const registryUrl = registry.id.apply(_ =>
    gcp.container.getRegistryRepository().then(reg => reg.repositoryUrl));

// Get registry info (creds and endpoint).
const imageName = registryUrl.apply(url => `${url}/myapp`);

// Build and publish the image.
const image = new docker.Image("my-image", {
    build: {
        context: "app"
    },
    imageName: imageName,
});

// Export the resulting image name
export const fullImageName = image.imageName;
export const repoDigest = image.repoDigest;

Log output

N/A

Affected Resource(s)

gcp.container.Registry

Output of pulumi about

N/A

Additional context

No response

Contributing

Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).

@t0yv0 t0yv0 added kind/bug Some behavior is incorrect or out of spec needs-triage Needs attention from the triage team labels Mar 25, 2025
@guineveresaenger guineveresaenger removed the needs-triage Needs attention from the triage team label Mar 26, 2025
@guineveresaenger
Copy link
Contributor

Update: Upstream issue has been fixed: hashicorp/terraform-provider-google#19661

We can probably wait for the upstream release and inherit the deprecation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Some behavior is incorrect or out of spec
Projects
None yet
Development

No branches or pull requests

2 participants