Skip to content
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

feat(plugin): add support to fetch ns from kubeconfig context #608

Merged
merged 1 commit into from
Jan 28, 2025

Conversation

abhilashshetty04
Copy link
Member

If '---ns_from_context' flag is set then we fetch ns from the kubeconfig context, otherwise, --namespace arg is used. '---ns_from_context' takes precedence over -n if both are used.

k8s/plugin/src/main.rs Outdated Show resolved Hide resolved
k8s/plugin/src/main.rs Outdated Show resolved Hide resolved
@abhilashshetty04 abhilashshetty04 force-pushed the plugin_ns branch 4 times, most recently from e4e5e34 to 3ae784b Compare January 25, 2025 20:20
k8s/plugin/src/main.rs Outdated Show resolved Hide resolved
k8s/plugin/src/main.rs Outdated Show resolved Hide resolved
k8s/plugin/src/main.rs Show resolved Hide resolved
@abhilashshetty04 abhilashshetty04 force-pushed the plugin_ns branch 2 times, most recently from 69e4610 to 7a43718 Compare January 27, 2025 19:33
k8s/plugin/src/main.rs Outdated Show resolved Hide resolved
k8s/plugin/src/main.rs Outdated Show resolved Hide resolved
k8s/plugin/src/main.rs Outdated Show resolved Hide resolved
k8s/plugin/src/main.rs Outdated Show resolved Hide resolved
@abhilashshetty04 abhilashshetty04 force-pushed the plugin_ns branch 2 times, most recently from 6bf1f7d to 85b570a Compare January 28, 2025 08:42
If '--namespace-from-context' flag is set then we fetch ns from the kubeconfig
context. Its hidden to users now. Incase user has not given -n flag and
--namespace-from-context we default to "mayastor". If they have used
--namespace-from-context flag then we get ns from kubeconfig. If
kubeconfig path is specified then we use client of that kubeconfig or
else we get default kubeconfig client.

Signed-off-by: Abhilash Shetty <[email protected]>
@abhilashshetty04
Copy link
Member Author

bors merge

@bors-openebs-mayastor
Copy link
Contributor

Build succeeded:

@bors-openebs-mayastor bors-openebs-mayastor bot merged commit d7e3544 into develop Jan 28, 2025
5 checks passed
@bors-openebs-mayastor bors-openebs-mayastor bot deleted the plugin_ns branch January 28, 2025 11:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants