Skip to content

[k8s] Remote identity support when multiple contexts are configured #4131

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

Open
romilbhardwaj opened this issue Oct 21, 2024 · 1 comment
Open
Labels
k8s Kubernetes related items

Comments

@romilbhardwaj
Copy link
Collaborator

If I have multiple Kubernetes contexts configured in my allowed_contexts, I currently do not have a way to specify a different service account to be used (kubernetes.remote_identity) for each of these contexts.

E.g.:

kubernetes:
  allowed_contexts:
    - context1 # Uses service account named "sa1"
    - context2 # Uses service account named "sa2"
  remote_identity: # No way to specify different service accounts for each context.

We may need to make remote_identity of type Union[dict[str,str], str] which can either contain a dict mapping context names to service accounts or a singular service account name to be used for all contexts (current behavior).

@romilbhardwaj
Copy link
Collaborator Author

Feature added in #4188, but needs documentation.

@romilbhardwaj romilbhardwaj added the k8s Kubernetes related items label Dec 11, 2024
@Michaelvll Michaelvll added the OSS label Dec 19, 2024 — with Linear
@Michaelvll Michaelvll removed the OSS label Dec 19, 2024
@Michaelvll Michaelvll added the OSS label Dec 19, 2024 — with Linear
@Michaelvll Michaelvll removed the OSS label Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
k8s Kubernetes related items
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants