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

default vs unspecified namespaces #98

Open
esnible opened this issue Mar 8, 2023 · 0 comments
Open

default vs unspecified namespaces #98

esnible opened this issue Mar 8, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@esnible
Copy link

esnible commented Mar 8, 2023

Kubernetes YAML can leave the namespace unspecified. In this case, kubectl applies the namespace from the kubectl config.

k8snetpolicy list sets the namespace to "default", (metav1.NamespaceDefault), if the namespace is blank.

This means k8snetpolicy list gives the same output when the input contains namespace: "default" or leaves the namespace off. I found this confusing. Some other tools I use preserved the blank namespace.

It might be worthwhile to treat "" like a valid real namespace, and preserve it, even though we don't know what it will be.
(Alternately it might be good to pick up up from the kubectl context. I'd prefer a blank namespace in the output, though.)

@adisos adisos added this to the v0.3 milestone Apr 3, 2023
@adisos adisos added the enhancement New feature or request label May 8, 2023
@adisos adisos removed this from the v0.3 milestone Aug 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants