Repository navigation
feat: Pass ServiceAccount namespace in managed cluster to pull mode agent - #2149
Merged
gianlucam76 merged 1 commit intoDec 5, 2026
Merged
Conversation
gianlucam76
force-pushed
the
managed-cluster-sa-namespace
branch
from
December 5, 2026 14:40
f141c58 to
4600713
Compare
…gent A RoleRequest can choose the namespace of the tenant ServiceAccount in the managed cluster (RoleRequest.Spec.ManagedClusterServiceAccountNamespace). In push mode the namespace is already part of the kubeconfig stored by access-manager. In pull mode sveltos-applier impersonates the ServiceAccount and needs to know its namespace. When a ClusterSummary has a tenant admin, look up the RoleRequest that defines the ServiceAccount in the managed cluster and set the namespace in ConfigurationGroup.Spec.ManagedClusterServiceAccountNamespace. Nothing is set when no RoleRequest chose a namespace, so existing behavior is unchanged. addon-controller only reads RoleRequests: add get/list/watch permission. Refs projectsveltos#2121
gianlucam76
force-pushed
the
managed-cluster-sa-namespace
branch
from
December 5, 2026 15:12
4600713 to
489234d
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A RoleRequest can choose the namespace of the tenant ServiceAccount in the managed cluster (RoleRequest.Spec.ManagedClusterServiceAccountNamespace). In push mode the namespace is already part of the kubeconfig stored by access-manager. In pull mode sveltos-applier impersonates the ServiceAccount and needs to know its namespace.
When a ClusterSummary has a tenant admin, look up the RoleRequest that defines the ServiceAccount in the managed cluster and set the namespace in ConfigurationGroup.Spec.ManagedClusterServiceAccountNamespace. Nothing is set when no RoleRequest chose a namespace, so existing behavior is unchanged.
addon-controller only reads RoleRequests: add get/list/watch permission.
Refs #2121