-
Notifications
You must be signed in to change notification settings - Fork 617
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
[occm] Set --use-service-account-credentials=false
#2572
Conversation
The above option seems to be causing CCM to create clients using ServiceAccount from the `kube-system` namespace, so requires users to either run in `kube-system` namespace, or manage 2 ServiceAccounts, one in `kube-system` and other in regular CCM namespace. See [1]. This commit changes this setting. [1] https://github.com/kubernetes/cloud-provider/blob/c3862938334ba18226098015193374fda40ab7a9/options/options.go#L230-L237
199e9b4
to
2a4131a
Compare
I still have to validate that this is the culprit, but there's a high chance it is. We've copied AWS manifest, blindly copying this option, but AWS manifest seems to override it in a patch: https://github.com/kubernetes/cloud-provider-aws/blob/234a39835a0ef28eea15424f83e9cb96be37d386/examples/existing-cluster/overlays/superset-role/aws-cloud-controller-manager-daemonset-patch.yaml#L16 |
/hold cancel I just validated that this makes sense for OpenShift. |
/approve |
/hold I have some more discussions about this internally, might have more information next week when colleague is back from vacations. |
/hold cancel Okay, this might be the way to go upstream here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jichenjc, zetaab The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/lgtm |
/retest |
/test pull-cloud-provider-openstack-check |
What this PR does / why we need it:
The above option seems to be causing CCM to create clients using ServiceAccount from the
kube-system
namespace, so requires users to either run inkube-system
namespace, or manage 2 ServiceAccounts, one inkube-system
and other in regular CCM namespace. See [1].This commit changes this setting.
/hold
[1] https://github.com/kubernetes/cloud-provider/blob/c3862938334ba18226098015193374fda40ab7a9/options/options.go#L230-L237
Which issue this PR fixes(if applicable):
fixes #2560
Special notes for reviewers:
Release note: