-
Notifications
You must be signed in to change notification settings - Fork 61
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
ArgoCD Detects duplicate resource #1103
Comments
Hello 👋 That is probably the case because we have two webhooks defined, that are meant to overwrite eachother. But I guess this only works for helm installation, since we use helm hooks. I never tried deploying connaisseur via argoCD and I don't have an argoCD setup right now, BUT according to its documentation there are also hooks similar to helm. I created an extra branch If they do, I'd be happy to know, so I can deploy the changes into the master branch in one of our upcomming releases. CHEERS. |
I will clone repo and build helm package , keep you posted. Thank you quick support. |
Hi @phbelitz , I tried with new helm files , still the same error. Just to let know that ArgoCD will not run helm install command, it runs helm template and get the *.yaml files and then do kubectl apply . Does this helps ? |
Huh, ok. I introduced a new field inside the helm/values.yaml called Please try again. |
Thank you @phbelitz , it works !!! |
Hi @phbelitz , When i stop and start the Cluster , im getting below error in the Connaisseur namespace .. Is this due to changes made in the Helm package ?? |
Short answer: That's a standard issue of strict admission controllers (which connaisseur is). They are not suited for restarting of clusters and should be uninstalled/disabled before restarting. Long answer: The issue here is a bit complex. Most admission controllers, like connaisseur, run inside the cluster they are working for. They are activated via a so called Now I don't know what your usecase is and why you need to restart your cluster, but be advised to clean up connaisseur before rebooting. |
Thanks @phbelitz for the response , we are testing Connaisseur in our non-prod environments , these clusters will stopped after business hours and started next day . Do you see any other options to make this work ? |
That's a fairly specific usecase. Multiple options:
Unfortunately these are all just workarounds. The core of the problem won't be solved by this and I don't think this will change any time soon 🤷 |
Hi @phbelitz , Even the namespace validation exclusion didn't work after the Cluster restart. I deployed the 1.6.1 (public release helm package) and it works , but with same warning "Resource admissionregistration.k8s.io/MutatingWebhookConfiguration//connaisseur-webhook appeared 2 times among application resources." Apart from this application functionality works as expected. So fix experimental/argocd creates different issue . Can you advise on this ? |
Describe the bug
When we deploy Connaisseur helm package via argocd , it detect duplicate resource is added.
Resource admissionregistration.k8s.io/MutatingWebhookConfiguration//connaisseur-webhook appeared 2 times among application resources
Expected behavior
No warnings / duplicate resources should be.
Optional: To reproduce
Deploy the Helm package via Gitops.
Optional: Versions (please complete the following information as relevant):
Optional: Additional context
The text was updated successfully, but these errors were encountered: