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
feat: only restart all controllers after stopping if needed #832
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: nilo19 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 |
) | ||
|
||
for { | ||
configBytes, err = ioutil.ReadFile(configFilePath) |
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.
could we continue to use file watch to detect config changes and hence don't need a retry here?
/test pull-cloud-provider-azure-e2e-ccm |
/test pull-cloud-provider-azure-e2e-ccm-capz |
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.
/lgtm
/retest |
/test pull-cloud-provider-azure-e2e-ccm-vmss-basic-lb |
the PR needs cherry-pick to other release branches |
/cherrypick release-1.1 |
/cherrypick release-1.0 |
@MartinForReal: new pull request could not be created: failed to create pull request against kubernetes-sigs/cloud-provider-azure#release-1.1 from head k8s-infra-cherrypick-robot:cherry-pick-832-to-release-1.1: status code 422 not one of [201], body: {"message":"Validation Failed","errors":[{"resource":"PullRequest","code":"custom","message":"No commits between kubernetes-sigs:release-1.1 and k8s-infra-cherrypick-robot:cherry-pick-832-to-release-1.1"}],"documentation_url":"https://docs.github.com/rest/reference/pulls#create-a-pull-request"} In response to this:
Instructions 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/test-infra repository. |
@MartinForReal: new pull request could not be created: failed to create pull request against kubernetes-sigs/cloud-provider-azure#release-1.0 from head k8s-infra-cherrypick-robot:cherry-pick-832-to-release-1.0: status code 422 not one of [201], body: {"message":"Validation Failed","errors":[{"resource":"PullRequest","code":"custom","message":"No commits between kubernetes-sigs:release-1.0 and k8s-infra-cherrypick-robot:cherry-pick-832-to-release-1.0"}],"documentation_url":"https://docs.github.com/rest/reference/pulls#create-a-pull-request"} In response to this:
Instructions 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/test-infra repository. |
What type of PR is this?
/kind feature
What this PR does / why we need it:
Introducing an internal config
disableCloudProvider
in the cloud config file. This one will only be used by AKS and will not be exposed to the end-users.If set to false, the ccm will restart all controllers after stopping. If set to true, the ccm will keep the controllers stopped and wait for the signal to restart them. There will be a warning message every 10 seconds if all the controllers are stopped until they are restarted.
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: