ahmetb / kubectx

Faster way to switch between clusters and namespaces in kubectl
https://kubectx.dev
Apache License 2.0
17.66k stars 1.26k forks source link

feat(kubens): added force flag to switch namespaces even if it doesn'… #416

Closed idsulik closed 2 months ago

idsulik commented 8 months ago

Hello! Added --force && -f flags to kubens command to switch namespace even if it doesn't exist. issue: https://github.com/ahmetb/kubectx/pull/333

usage example

$ kubens not-found-namespace --force
Context "test" set.
Active namespace is "not-found-namespace".
---
$ kubens not-found-namespace --f
Context "test" set.
Active namespace is "not-found-namespace".
idsulik commented 5 months ago

@ahmetb Hi! Should I do anything else or I just need to wait?

ahmetb commented 5 months ago

Sorry, I mostly haven't gotten around reviewing it

idsulik commented 3 months ago

@ahmetb hi! kindly remind you

idsulik commented 2 months ago

@ahmetb hi! is there anything else to do within the PR?

ahmetb commented 2 months ago

Merged it but it seems it failed on master due to Go version and slices pkg being new.

idsulik commented 2 months ago

Merged it but it seems it failed on master due to Go version and slices pkg being new.

sorry about that, I fixed it here https://github.com/ahmetb/kubectx/pull/425.