bright-flag-46266
02/15/2023, 3:02 PMerror: 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>
billowy-army-68599
02/15/2023, 3:02 PMbright-flag-46266
02/15/2023, 3:04 PMbillowy-army-68599
02/15/2023, 3:05 PMbright-flag-46266
02/17/2023, 9:31 AM