-
Notifications
You must be signed in to change notification settings - Fork 430
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
⚠️ Use custom service accounts instead of default for controllers #1210
⚠️ Use custom service accounts instead of default for controllers #1210
Conversation
Hi @furkatgofurov7. Thanks for your PR. I'm waiting for a kubernetes-sigs 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. 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. |
Should the service account for aad-pod-identity be updated as well? https://github.com/kubernetes-sigs/cluster-api-provider-azure/blob/master/config/default/aad-pod-identity-deployment.yaml#L65-L67 |
@nprokopic hi! Thanks for the suggestion. I was mainly following kubernetes-sigs/cluster-api/4245 and it changes only the SAs' in the |
I believe that the changes are for the Here are the default service accounts from
So I believe that in CAPZ we should also update the aad-pod-identity deployment which is currently using default service account for |
agree that aad-pod-identity service account should be updated as well |
/ok-to-test |
05ac2be
to
7eeff02
Compare
@nprokopic thanks for spotting this up, fixed it. |
Seems a CI flakiness, re-triggering. /retest |
/test pull-cluster-api-provider-azure-e2e |
@@ -63,7 +63,7 @@ metadata: | |||
k8s-app: capz-aad-pod-id-nmi-binding | |||
subjects: | |||
- kind: ServiceAccount | |||
name: default | |||
name: manager |
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.
The account that is set here I believe it should also be set in aad-pod-identity NMI DaemonSet .Spec.Template.Spec.ServiceAccountName
field (in this same file), which is currently set to default
.
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.
Set it to manager
. PTAL.
7eeff02
to
eceb123
Compare
eceb123
to
ccec4c0
Compare
/lgtm @CecileRobertMichon PTAL |
should this be marked as a breaking change? I see the corresponding CAPI commit is breaking |
@CecileRobertMichon done! |
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: CecileRobertMichon 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 |
What type of PR is this?
/kind feature
What this PR does / why we need it:
Uses a dedicated service account for each CAPZ controller (instead of default)
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #1206
Special notes for your reviewer:
Please have a look thoroughly, in case I missed some important points to update in the PR. Thanks!.
TODOs:
Release note: