-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
[RFE] oc CLI should preserve name of contexts #18645
Comments
@openshift/sig-master |
There is a related discussion about context management here: #16161 (comment) cc @liggitt for thoughts on this |
Issues go stale after 90d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle stale |
/lifecycle frozen
|
@juanvallejo any update on this? This problem causes issues also in minishift minishift/minishift#2871 |
@jorgemoralespou As far as I can tell, this is not something that is being actively worked on. Existing I think broader agreement would have to be reached on this change first, as it would involve changes across multiple parts of cc @deads2k |
@juanvallejo, maybe since we're looking at v4 this is a change we could accomplish and finally fix this long-standing bad behavior. |
@jorgemoralespou the usability problems you're raising are fair and I think we should solve them, but I doubt the sheer volume of work around v4 will allow us to invest any time into oc, and I'm speaking as the owner of that component. |
Does this mean a won't fix? From what understood in previous conversations this could only be looked if we ever went through a major release. This is the first in 3 years, and I don't expect another one sooner than that. |
Nope, I didn't say that. What I said is that it won't happen for 4.0, but I'm not saying it can't nor it shouldn't be fixed in following releases. I don't see this being a breaking change, so it can be done at any point in time. Not sure who told you otherwise. |
@smarterclsyton and liggit
|
Looking forward to this happening 🤞 |
Hello, any chance this gets revisited? @soltysh |
When working with OpenShift, it might happen that you connect to multiple clusters. These can be cloud clusters, on-premises, or even multiple profiles of minishift.
When you connect to a cluster, oc creates an entry for that context including cluster, user and namespace. These contexts that are created are given an automatic name by oc.
e.g.
These names are difficult to handle and remember.
Kubernetes does promote giving these contexts a meaningful name in their documentation. But when you follow those practices in OpenShift, you run into many issues, which are what this issue/RFE wants to solve.
There's probably other things that make "oc" misbehave with respect to keeping a sane .kube/config file.
There's references in k8s to make enhancements on the usability:
As well as references in other projects of the problem I described:
This RFE is to fix the behavior the "oc" client has with respect to using/interacting with .kube/config file.
The text was updated successfully, but these errors were encountered: