-
Notifications
You must be signed in to change notification settings - Fork 3
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
Possibility to specify namespace parameter makes configuration confusing #35
Comments
If I remember it correctly the idea was to move from |
Do you have a written reference to that? I don't recall this decision at all... I highly doubt we would want to specify the image registries like I would actually ignore the |
There's no written reference to that, I discussed the |
It should just work the same way as I believe, with |
Just because
That just proved that the behaviour is confusing for you as well, since you would need to verify this to know for sure 😄 I dislike keeping the |
I agree: I would not deprecate or remove the possibility to explicitly specify the full path for an image. Let me reaffirm, I believe it's a good idea to keep the behavior in sync with the tools the Kubernetes ecosystem provides. |
To be clear: Kubernetes/kubectl doesn't have |
I would try to separate them. What I mean by this:
This solution is less confusion for users and for developers, no need to worry about precedence. |
Hm, for ConfigMaps and Secrets it makes more sense to use the context and namespace from kubeconfig/kubectl first, with the possibility to override with |
Can you re-evaluate the current behavior? I believe it is already in sync with the |
As implemented in #34 , the current order of precedence is as follows:
However, the |
Let's talk about the namespace that human users can specify for Seiso to operate/cleanup stuff in.
For
history
andorphans
command this is the help page:So, which one should take precedence when given
seiso -n flag arg/image
?The initial reason for the
[NAMESPACE/IMAGE]
CLI syntax was that any image registry could be specified for cleanup. OpenShift is but the first supported registry, with Docker Hub registry to follow. However, the current implementation, which takes into account of currently configured kubeconfig file, but also the--namespace
flag, makes it confusing as to which value should now be specified. It's also possible to doseiso images history -n flag imagename
and it would cleanup theflag/imagename
image repository. Even worse, with local kubeconfig andseiso images history imagename
it also transforms tokube/imagename
if the kubeconfig namespace iskube
.While at first a great idea, this will not be possible for non-kubeconfig-based registries, such as Docker Hub or Quay.io. Granted, we have implemented this (yet?), but I'm confused in the CLI usage.
Let's discuss and clarify how we want to make Seiso more streamlined
The text was updated successfully, but these errors were encountered: