Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
Hi @cwrau. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
@cwrau thanks for the PR. Could you please describe your use case for the daemonset deployment style? I'd set the default style to be a deployment unless daemonset is set. Also please fix chart issues found by lint. |
084e5aa to
7d107f1
Compare
I just wanted to keep the existing concept, so users don't have to do anything to keep the current setup. I can set the default to deployment, but I imagine that that would kinda be a breaking change. |
|
@cwrau I never used helm-charts from this repo, and I just realized that it was always a DaemonSet, this is a surprise for me. All OCCM deployments that I worked with were always a Deployment. And I wonder what was the reason to be initially a DaemonSet. |
7d107f1 to
dde1c24
Compare
|
The Kubernetes project currently lacks enough contributors to adequately respond to all PRs. This bot triages PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
|
Still waiting for review... |
|
/remove-lifecycle stale |
|
My gut suggests this is too large a "knob", and that if we've a good reason to use a Regarding the actual change, it seems both are fine. I guess a Deployment is less wasteful in larger clusters since there's no need to run CCM on a few dozen (or more) nodes. |
|
Also note that if you rebase this branch then the lint failure will be removed. We no longer expect people to bump the chart |
dde1c24 to
d694af4
Compare
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: kayrus The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
|
||
| # Set nodeSelector where the controller should run, i.e. controlplane nodes | ||
| # Set nodeSelector where the controller should run, i.e. controlplane nodes (used for DaemonSet) | ||
| nodeSelector: |
There was a problem hiding this comment.
can we use a single nodeSelector values for both daemonset and deployment?
There was a problem hiding this comment.
It's been a while, but I don't think so, because one can't remove a value from the helm default values. And with a deployment I would need an empty nodeSelector (at least that's part of the use case for this change).
Let me check that again
There was a problem hiding this comment.
Yeah, just checked, without this split field gitops users (at least for flux) can't clear the nodeSelector, as that would only work by setting it to null but setting fields to null in yaml is dropped by the apiServer and so never reaches helm inside of flux.
|
/ok-to-test Just clear that, but I'd still like to figure out an answer to my earlier question #3043 (comment) |
Is that question for me? Then I don't understand the question 😅 |
Probably more @kayrus than you, but to restate the question: do we need an option, or can we can just update the chart to use |
Mh, good question. I just assumed that a daemonset was the preferred way to deploy this. Also, making it an option instead of changing it isn't a breaking change. We already do a flux postRenderer to change the kind to Deployment, so as far as I can tell there is no technical requirement for it to be a daemonset 🤔 |
What this PR does / why we need it:
This PR allows the user to choose between DaemonSet and Deployment.
Release note: