-
Notifications
You must be signed in to change notification settings - Fork 203
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
Bug: Installing via Helm in Argo doesn't apply generated templates, such as ClusterRole azureserviceoperator-manager-role #4184
Comments
Shouldn't argo be running What does it do for charts like those at https://charts.jetstack.io (cert-manager), where there is no git source of chart templates anyway? It's just the Helm chart. Maybe it just doesn't support this at all? The correct way to
This correctly renders everything. In fact if you look closely at the 2.8.0 tag you'll realize that there isn't even a 2.8.0 chart in it today. That's because today our release process goes like this:
The above automation ends up resulting in the Helm chart being added the commit after the 2.8.0 tag. We're expecting folks to consume the v2/charts/ folder from Is there a way to instruct Argo to just use the actual Helm chart tgz rather than the repo source? |
Oh my... Turns out, this was in my end after all! Just changing the configuration like this solved the issue: source:
repoURL: https://raw.githubusercontent.com/Azure/azure-service-operator/main/v2/charts
targetRevision: v2.8.0
chart: azure-service-operator
helm: So that's a good example of how to install ASO with ArgoCD. With this config, internally ArgoCD seems to fetch the tgz package, extract the archive and then does the same helm templating process that is done with git. Thanks for the help! |
This does seem like it would be an easy mistake to make. Leaving this issue open for a bit to discuss internally if we should mention this in our docs - maybe the FAQ |
- Add AKS installation best practices, fixes Azure#3828. - Add problem diagnostics for Argo Helm installation issues, fixes Azure#4184. - Add FAQ entry around data output from one resource being input to the next.
- Add AKS installation best practices, fixes Azure#3828. - Add problem diagnostics for Argo Helm installation issues, fixes Azure#4184. - Add FAQ entry around data output from one resource being input to the next.
- Add AKS installation best practices, fixes Azure#3828. - Add problem diagnostics for Argo Helm installation issues, fixes Azure#4184. - Add FAQ entry around data output from one resource being input to the next.
Version of Azure Service Operator
Deployment details:
Installing ASO with ArgoCD using tag
v2.8.0
(relevant parts):Describe the bug
Installing ASO with ArgoCD using Helm seems to miss generated templates like
azureserviceoperator-manager-role
and others.ArgoCD Helm installation doesn't actually use the Helm package, but fetches the templates from the repository and applies them. This seems to be the reason why the generated templates are not applied.
Because ArgoCD Helm installation works like this, generated templates should be included in the Git repository for ArgoCD to apply them. If there is some other way to workaround ArgoCD Helm installation method, describing it in the documentation would also solve the issue.
To Reproduce
Steps to reproduce the behavior:
v2.8.0
with Argo Application configured as aboveazureserviceoperator-manager-role
is missing and pod does not go to ready stateSimulating roughly what ArgoCD does:
... which output only ClusterRoleBinding
azureserviceoperator-manager-rolebinding
that references the missing ClusterRoleazureserviceoperator-manager-role
.Expected behavior
ClusterRole
azureserviceoperator-manager-role
and other generated templates should be applied successfully.Helm template using Git repo should(?) include generated templates. Compared to Helm package output:
Outputs the ClusterRole correctly:
Additional context
I was first using ArgoCD v2.10.x, but upgraded to newest v2.12.0. This issue was present in both versions.
The text was updated successfully, but these errors were encountered: