Closed hooten closed 2 years ago
-n
since that is already a global flag for --dry-run
. We probably need to pick -p
and -P
for include and exclude-p
/-P
flags are fine.Let's leave the namespace object out of it. We can add it later if needed
Feature request
Add flag to include/exclude components that evaluate to a given namespace. For example:
would only apply k8s resources that have
namespace: namespaceA
. A similar command with a-N
flag could exclude k8s resources with the given namespace.This feature would be similar to the component or kind flags, which are as follows:
This feature would not be applicable for cluster-scoped resources. In the case that there are cluster-scoped resources in the repo and and include/exclude namespace flag is specified, I would expect no cluster resources to be returned.
Use case
I have a mono-repo that deploys to k8s resources to multiple namespaces, but I would like to create separate jobs for each namespace in order to limit deployment permissions and blast radius for each job.