https://pulumi.com logo
Title
b

bright-flag-46266

02/15/2023, 3:02 PM
Hi, I'm trying to deploy a helm chart that I created myself and pushed to ACR using pulumi. When I test locally it worked fine, however when I tried to do this from my build-environment I get the following error.
error: failed to pull chart: failed to authorize: failed to fetch anonymous token: unexpected status: 401 Unauthorized
The weird thing is that it works if I do a
docker login
to my repository locally and when I logout it doesn't, so it is probably something with regards to the embedded helm CLI that requires authentication and falls back to the environment if it doesn't exist, but I cannot seem to set this correctly. I've tried to use the following https://www.pulumi.com/registry/packages/kubernetes/api-docs/helm/v3/release/#repositoryopts to set a docker username and password, but that didn't seem to work. Relevant config so far looks like this
Chart = oci://<ContainerRegistry>/<Chart>,
            RepositoryOpts = new RepositoryOptsArgs()
            {
                Username = <DockerUsername>,
                Password = <DockerPassword>,
            },
            Version = <HelmVersion>
b

billowy-army-68599

02/15/2023, 3:02 PM
could you file an issue for this?
b

bright-flag-46266

02/15/2023, 3:04 PM
Sure but is it an issue? Or am I just missing something for it to authorize properly?
b

billowy-army-68599

02/15/2023, 3:05 PM
if the repository opts aren’t working it’s def an issue
b

bright-flag-46266

02/17/2023, 9:31 AM
Adding this here for visibility's sake https://github.com/pulumi/pulumi/issues/12202