-
Notifications
You must be signed in to change notification settings - Fork 530
fix: Use specific service account token secret for join #1515
fix: Use specific service account token secret for join #1515
Conversation
0978060
to
ab6c15d
Compare
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.
It feels like the PR is doing more than what the title implies in that it generally aligns kubefed with K8s 1.24.
I'd prefer for the PR title and description to clarify what this is about.
Otherwise lgtm except some smaller remarks.
Thanks for the review @makkes!
You're right, I did that to test, but I will separate that out into a different PR and instead try just enabling the |
Ah I can't enable |
That sounds perfect. Thanks so much! |
With `LegacyServiceAccountTokenNoAutoGeneration` feature graduating to beta in k8s v1.24, a token is not automatically generated when a service account is created. This commit fixes this by requesting a specific service token account secret which is populated by the token controller. This is backwards compatible with previous versions of Kubernetes.
ab6c15d
to
17d21fa
Compare
@makkes Done as discussed. |
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 except the doc change
@makkes Done for reals this time 😂 |
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.
🥳 Thank you!!
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jimmidyson, makkes 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 |
With
LegacyServiceAccountTokenNoAutoGeneration
feature graduating to beta ink8s v1.24, a token is not automatically generated when a service account is created.
This commit fixes this by requesting a specific service token account secret which
is populated by the token controller. This is backwards compatible with previous
versions of Kubernetes.