-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
OCI helm charts hosted in AWS OCI broken after upgrade from v2.0.4 to v2.2.2 #8214
Comments
ApplicationSet that creates application for above chart:
|
Worked in v2.0.5 helm chart 3.12.1. Starts failing in v2.1.0 helm chart 3.17.1. |
@AustinSmart t I noticed you had some comments in other threads around OCI chart deps being broken in 2.1.0.... Is this related? |
Since there is a oci chart as a dependency in the first comment, yes it’s likely related. I don’t think the oci chart dependency bug has been fixed yet. |
Is there a workaround for that @AustinSmart ? Couldn't find any reference as to exactly why that functionality broke. |
Might be related to 7104
Note that "helm repo" is missing.... |
I had the same issue (also AWS ECR repo that connected well but the same 401 error when adding an application). The regression probably came in with (lines 195 to 197 in
This is not what we need to login to the ECR, we need it without the --pass-credentials flag for helm. So for instance, this works to login:
I haven't dug into why this is so, but I have a temporary workaround that is working for me with v2.2.3. You can simply set
|
@mfbieber I'm setting this in the application but I'm not sure it's getting honored. I'm using ApplicationSet to create the application. The ApplicationSet shows:
The created Application has no mention of passCredentials:
Know of any way to verify passCredentials value on the Application? I see a --helm-pass-credentials on argocd cli set command, but nothing on get? Both get/set fail with no permission to access oci. Starting to think the ApplicationSet is not honoring the setting. |
@mfbieber What version are you on? I created the application directly and same failure on 3.29.5/2.2.2. I created the Application directly and it still fails with same error:
Are you calling this directly yourself?
|
Have a workaround using plugin.
Add scripts configmap under templates/plugin-scripts.yaml:
In application def, replace helm section with plugin:
|
@pthornton, sorry for replying late. I am working with 3.26.12 and yes, I called this myself:
I would try to check this week if something changed during the last two weeks in the code. I could also submit a PR to somehow fix this, but I am unsure of how we would like to solve this. I'll think about it and will try to make a proposal, if I can. Good that you have the plugin working, it looks like a lot of work and I would rather have argo-cd support AWS OCI itself! |
@mfbieber Any updates here? We are running into the same issue. Version:
Repo was added successfully.
We are using this OCI repo as a subchart dependency, also our ArgoCD application is generated using ApplicationSet
This is the error I get
|
Hi guys, sorry, I don't manage to work on this efficiently at the moment (too much going on). In general, we abandoned the OCI approach in our projects, because it didn't seem to be properly supported with ECR - at least when we checked. Also what we really disliked is the workaround around logging in every x hours with a workaround CronJob: #6062 (comment) |
I believe this issue is now fixed in v2.5.4, by: #11327 @hedasaurabh / @pthornton can you confirm? |
Closing, we've been using ECR Helm charts in prod for quite some time. |
i still have this issue and cant find any workaround to make it work. i have added argo repo and its connected succesfully, alias: ory-hydra-infra Argo CD
|
If you are trying to resolve an environment-specific issue or have a one-off question about the edge case that does not require a feature then please consider asking a question in argocd slack channel.
Checklist:
argocd version
.Describe the bug
Application Chart:
All applications referencing AWS oci charts fail after upgrade. It appears "helm registry login" is only called when add the helm repo using "helm repo add" from cronjob. The "helm dependency update" fails and no login messages appear in repoServer logs.
Error message from UI:
Repo server log:
If I bash into the repo server and do "helm registry login" and then "help dependency build" in the /tmp/https___gitlab.com_somewhere_prt_example-apps_mushu-dev/react-frontend-service/helm_base folder, it successfully pulls the OCI helm chart. So no permission issues. I'm using username/password/url from the argocd cli helm repo add created kubernetes secret repo-4159968007.
This also happens if I upgrade to 2.1.7 instead of 2.2.2. Post in argocd slack also: slack
To Reproduce
Add Application using chart with reference to AWS OCI helm chart.
Expected behavior
Helm charts should pull from AWS OCI after successful "helm registry login" executed before running "helm dependency update".
Screenshots
If applicable, add screenshots to help explain your problem.
Version
Logs
The text was updated successfully, but these errors were encountered: