-
Notifications
You must be signed in to change notification settings - Fork 2.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
Helm CRDS are installed despite turning off helm-controller #8701
Comments
The intent of this flag is to disable the controller on this node; it is not intended to change what CRDs are installed to the cluster. Ref: Lines 79 to 80 in 5b6b968
We would probably entertain a PR to change this behavior, but I don't believe it is a bug. Is there some problem that this is causing, or were you just not expecting to see the CRDs when the controller is disabled? |
Thanks @brandond. It makes sense and I agree that it's not a bug but a slight nuance. I'll send over a PR. |
I am thinking of adding something like
|
We try to avoid adding more flags whenever possible. Also, you can't disable the addon CRDs as those support the deploy controller that cannot be disabled. I would probably just keep it minimal, and modify that code to not add the helm CRDs to the list of CRDs to be created, when the helm controller is disabled. |
The NewContext package requires config as input which would require all third-party callers to update when the new go module is published. This change only affects the behaviour of installation of helm CRDs. Existing helm crds installed in a cluster would not be removed when disable-helm-controller flag is set on the server. Addresses k3s-io#8701 Signed-off-by: Harsimran Singh Maan <[email protected]>
* Disable helm CRD installation for disable-helm-controller The NewContext package requires config as input which would require all third-party callers to update when the new go module is published. This change only affects the behaviour of installation of helm CRDs. Existing helm crds installed in a cluster would not be removed when disable-helm-controller flag is set on the server. Addresses #8701 * address review comments * remove redundant check Signed-off-by: Harsimran Singh Maan <[email protected]>
* Disable helm CRD installation for disable-helm-controller The NewContext package requires config as input which would require all third-party callers to update when the new go module is published. This change only affects the behaviour of installation of helm CRDs. Existing helm crds installed in a cluster would not be removed when disable-helm-controller flag is set on the server. Addresses k3s-io#8701 * address review comments * remove redundant check Signed-off-by: Harsimran Singh Maan <[email protected]> (cherry picked from commit abc2efd) Signed-off-by: Brad Davidson <[email protected]>
* Disable helm CRD installation for disable-helm-controller The NewContext package requires config as input which would require all third-party callers to update when the new go module is published. This change only affects the behaviour of installation of helm CRDs. Existing helm crds installed in a cluster would not be removed when disable-helm-controller flag is set on the server. Addresses k3s-io#8701 * address review comments * remove redundant check Signed-off-by: Harsimran Singh Maan <[email protected]> (cherry picked from commit abc2efd) Signed-off-by: Brad Davidson <[email protected]>
* Disable helm CRD installation for disable-helm-controller The NewContext package requires config as input which would require all third-party callers to update when the new go module is published. This change only affects the behaviour of installation of helm CRDs. Existing helm crds installed in a cluster would not be removed when disable-helm-controller flag is set on the server. Addresses k3s-io#8701 * address review comments * remove redundant check Signed-off-by: Harsimran Singh Maan <[email protected]> (cherry picked from commit abc2efd) Signed-off-by: Brad Davidson <[email protected]>
* Disable helm CRD installation for disable-helm-controller The NewContext package requires config as input which would require all third-party callers to update when the new go module is published. This change only affects the behaviour of installation of helm CRDs. Existing helm crds installed in a cluster would not be removed when disable-helm-controller flag is set on the server. Addresses #8701 * address review comments * remove redundant check Signed-off-by: Harsimran Singh Maan <[email protected]> (cherry picked from commit abc2efd) Signed-off-by: Brad Davidson <[email protected]>
* Disable helm CRD installation for disable-helm-controller The NewContext package requires config as input which would require all third-party callers to update when the new go module is published. This change only affects the behaviour of installation of helm CRDs. Existing helm crds installed in a cluster would not be removed when disable-helm-controller flag is set on the server. Addresses #8701 * address review comments * remove redundant check Signed-off-by: Harsimran Singh Maan <[email protected]> (cherry picked from commit abc2efd) Signed-off-by: Brad Davidson <[email protected]>
* Disable helm CRD installation for disable-helm-controller The NewContext package requires config as input which would require all third-party callers to update when the new go module is published. This change only affects the behaviour of installation of helm CRDs. Existing helm crds installed in a cluster would not be removed when disable-helm-controller flag is set on the server. Addresses #8701 * address review comments * remove redundant check Signed-off-by: Harsimran Singh Maan <[email protected]> (cherry picked from commit abc2efd) Signed-off-by: Brad Davidson <[email protected]>
Validated on branch <branch_name> with commit <commit_id> / versionEnvironment DetailsInfrastructure
Node(s) CPU architecture, OS, and Version:
Cluster Configuration:
Config.yaml:
Additional files
Testing Steps
Replication Results:
Validation Results:
Returns a new line to show the Helm CRDS are not installed Additional context / logs:
|
What's the source for the helm CRDs, they are getting installed even when the helm controller is not enabled
Environmental Info:
K3s Version:
k3s -v
k3s version v1.28.2+k3s1 (6330a5b)
go version go1.20.8
Node(s) CPU architecture, OS, and Version:
Linux ip-XXXX.us-west-2.compute.internal 5.14.0-375.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Oct 9 16:32:37 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Cluster Configuration:
Single control-plane node.
Describe the bug:
Expected helm CRDs to be not installed when
Steps To Reproduce:
Relevant config
Expected behavior:
Helm CRDs to not install when disable-helm-controller
Actual behavior:
Additional context / logs:
The text was updated successfully, but these errors were encountered: