-
Notifications
You must be signed in to change notification settings - Fork 1.2k
policy: improve pod namespace validation #10593
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
policy: improve pod namespace validation #10593
Conversation
Could you include this commit in #10591 instead? Unless there's a strong reason to have separate PRs |
No strong reason, it's just a small (yet important) fix I noticed we needed while working on this |
f87d429
to
4bbb953
Compare
63c12d5
to
47602d0
Compare
3640968
to
d3d8996
Compare
|
||
allow_by_container_types(p_oci, i_oci, s_name, p_namespace) | ||
allow_by_container_types(p_oci, i_oci, s_name, i_namespace) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now we need to get the namespace from the input for the case where we set the default namespace using kubectl config set-context --current --namespace=kata-containers-k8s-tests
(this is what we do in the tests)
- Remove default_namespace from settings - Ensure container namespaces in a pod match each other in case no namespace is specified in the YAML Signed-off-by: Saul Paredes <saulparedes@microsoft.com>
d3d8996
to
84a411d
Compare
default_namespace
from settings