-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Error with defaultFelixConfiguration.enabled: true with Helm #9691
Comments
@mnival it doesn't look like you followed these steps when upgrading: https://docs.tigera.io/calico/3.28/operations/upgrading/kubernetes-upgrade#upgrading-an-installation-that-was-installed-using-helm Could you try them and let us know if it works that way? |
Hello @coutinhop, I'm on version 3.28.1, I just added the lines below in my values file:
And I got the error mentioned in my first message |
@mnival I think that after installation when the Calico API server is running, use the v3 apiVersion to update felix configuration https://docs.tigera.io/calico/latest/reference/installation/helm_customization |
@mnival was your FelixConfiguration originally created by Helm? Or might it have been created out of band? @MichalFupso I wonder if this might be due to Calico's handling of labels on our underlying CRDs - we added this code recently to fix another issue: calico/libcalico-go/lib/backend/k8s/resources/resources.go Lines 182 to 193 in 6dbc7d3
We may need to make an exception there for helm labels |
Hello @caseydavenport, |
@mnival got it, ok. This is a limitation in Helm - it refuses to update objects that it doesn't believe it owns. In this case, because Helm didn't originally create the FelixConfiguration, it's refusing to modify it. There are some hacky ways to trick helm into assuming ownership of a resource by modifying the helm release ConfigMap, but it's a bit of a backdoor. The other option would be to delete the FelixConfiguration and let Helm recreate it. |
Hello @caseydavenport, I added the annotations and labels but despite that helm doesn't want to manage it. I tried to delete FelixConfiguration but it was recreated immediately. Do I need to stop something first? I checked the commit here bb0ac52 and it says:
But it doesn't work |
Oh, yeah possible the tigera operator is recreating that. |
Hello @caseydavenport , I understood my problem. I changed the label and annotations on FelixConfiguration.projectcalico.org but helm manages the resource FelixConfiguration.crd.projectcalico.org: I added the label and annotations and the resource is now manageable by Helm but reading #6412 it seems that we should act on FelixConfiguration.projectcalico.org and not FelixConfiguration.crd.projectcalico.org, is there anything to change or with Helm we can only manage FelixConfiguration.crd.projectcalico.org. Thank you |
Expected Behavior
It should be possible to enable:
after a first installation done with the default values
Current Behavior
Currently, I receive this error:
configuration/calico-values.yaml:
I executed these command before helm command:
Possible Solution
Steps to Reproduce (for bugs)
Context
Your Environment
The text was updated successfully, but these errors were encountered: