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

Cannot use OCI Helm registry in devcontainer #3115

Open
sudocovik opened this issue Jul 19, 2024 · 4 comments
Open

Cannot use OCI Helm registry in devcontainer #3115

sudocovik opened this issue Jul 19, 2024 · 4 comments
Labels
area/helm kind/documentation Improvements or additions to documentation

Comments

@sudocovik
Copy link

I had a strange issue with OCI registry when using helm Release or Chart (v3/v4).
Pulumi would exit immediately with an error message:

kubernetes:helm.sh/v3:Release (envoy-gateway-release):
    error: kubernetes:helm.sh/v3:Release resource 'envoy-gateway-release': property chart value {oci://registry-1.docker.io/envoyproxy/gateway-helm} has a problem: EOF; check the chart name and repository configuration.

  pulumi:pulumi:Stack (fms-dev):
    Error retrieving credentials: Post "http://localhost:12049/docker-credentials": dial tcp [::1]:12049: connect: connection refused

Anyway, because I was running in a devcontainer without anything docker related in it, fix was simple: add blank .docker/config.json to my Dockerfile

RUN echo "{}" > ~/.docker/config.json

Note: make sure you run this after USER directive if you are running as non-root (hopefully)!

@pulumi-bot pulumi-bot added the needs-triage Needs attention from the triage team label Jul 19, 2024
@sudocovik
Copy link
Author

Is this worth adding to docs?

@blampe
Copy link
Contributor

blampe commented Jul 22, 2024

Is this worth adding to docs?

That depends -- @sudocovik do you also need this workaround in order to use the helm CLI directly? That is, can you install the same chart manually without that file?

I suspect this is due to the oras library helm uses, which AFAICT expects config to always exist on disk.

@blampe blampe added awaiting-feedback Blocked on input from the author and removed needs-triage Needs attention from the triage team labels Jul 22, 2024
@sudocovik
Copy link
Author

Well I don't use helm directly, got Pulumi for that.
Anyway, I actually discovered that the problem is with devpod.
It injects custom Docker config and for some reason helm does not like it. If I overwrite it with empy config {} it works!

Seems like a rare issue, should we just close it?

@pulumi-bot pulumi-bot added needs-triage Needs attention from the triage team and removed awaiting-feedback Blocked on input from the author labels Jul 23, 2024
@rquitales
Copy link
Contributor

Since there is heavy reliance on the ambient Docker configuration file, I think we should keep this open as an action item for us to specify this in our docs. Thanks for flagging this, and identifying the root issue.

@rquitales rquitales added kind/documentation Improvements or additions to documentation and removed needs-triage Needs attention from the triage team labels Jul 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/helm kind/documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

4 participants