Skip to content

Allow system:kube-controller-manager to update init container secret#221

Merged
unmarshall merged 2 commits into
ai-dynamo:mainfrom
unmarshall:authorizerfix
Oct 20, 2025
Merged

Allow system:kube-controller-manager to update init container secret#221
unmarshall merged 2 commits into
ai-dynamo:mainfrom
unmarshall:authorizerfix

Conversation

@unmarshall

@unmarshall unmarshall commented Oct 20, 2025

Copy link
Copy Markdown
Collaborator

What type of PR is this?

/kind bug

What this PR does / why we need it:

For init container, serviceaccount token needs to be mounted to check the startup order. Grove creates one secret per PodCliqueSet with type=kubernetes.io/service-account-token. KCM should inject a ca.crt and a token into the secret.Data but currently the service account system:kube-controller-manager which KCM uses to do that is not exempted by the authorizer webhook. This causes the init container to fail to loop up the token in order to create a client which is then used to look up dependencies by making calls to KAPI.

This PR adds kubernetes.io/service-account-token as an exempted serviceaccount user.

Which issue(s) this PR fixes:

Fixes #218

Special notes for your reviewer:

Does this PR introduce a API change?

Fixes the injection of secret data required by the init container by exempting system:kube-controller-manager for the authorizer webhook

Additional documentation e.g., enhancement proposals, usage docs, etc.:


…d token in the satokensecret

Signed-off-by: Madhav Bhargava <madhav.bhargava@sap.com>
@unmarshall unmarshall added the kind/bug Categorizes issue or PR as related to a bug. label Oct 20, 2025
Signed-off-by: Saketh Kalaga <51327242+renormalize@users.noreply.github.com>
@unmarshall unmarshall merged commit c3f550d into ai-dynamo:main Oct 20, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/bug Categorizes issue or PR as related to a bug.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Service Account Token Secret Not Populated For Init Containers

3 participants