Skip to content
This repository was archived by the owner on Oct 3, 2020. It is now read-only.

Read default namespace from service account #70

Merged

Conversation

inikolaev
Copy link

This reads default namespace which have to be used for all namespaced operations from /var/run/secrets/kubernetes.io/serviceaccount/namespace and configures context with it.

@inikolaev inikolaev force-pushed the read-default-namespace-from-service-account branch from 5554752 to 2d42c52 Compare May 29, 2020 16:07
@hjacobs
Copy link
Owner

hjacobs commented May 30, 2020

This would change the behavior for deployments in non-default namespace and be a breaking change, right?

@inikolaev
Copy link
Author

Yes, that's true. Do you think that would be a big issue?
This way it's in-line with how standard libraries work I believe.

@hjacobs hjacobs merged commit c32b634 into hjacobs:master Jun 25, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants