You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
When running the inspect tool against a target cluster, without splitting my kubeconfig files into many, which there are many clusters. I must run a kubectl --context target_cluster_alias api-resources or something similar so that my current context session is set correctly. And then I can run my inspection normally against my target cluster using my default kubeconfig kubectl advise-psp inspect -n test_namespace -g with expected results.
Describe the solution you'd like
The ability to use --context similar to how kubectl does.
The text was updated successfully, but these errors were encountered:
Usage:
kube-psp-advisor inspect [flags]
Flags:
--deny-by-default (optional) OPA default rule: use this option if OPA default rule is Deny ALL
-e, --exclude-namespaces strings (optional) comma separated list of namespaces to exclude
-g, --grant (optional) return with pod security policies, roles and rolebindings
-h, --help help for inspect
--kubeconfig string (optional) absolute path to the kubeconfig file (default "/Users/Kaizhe/.kube/config")
-n, --namespace string (optional) namespace
-p, --policy string set policy type, valid policy types: psp and opa (default "psp")
-r, --report (optional) return with detail report
Global Flags:
--level string Log level (default "info")
the --kubeconfig parameter should be able to help.
Is your feature request related to a problem? Please describe.
When running the inspect tool against a target cluster, without splitting my kubeconfig files into many, which there are many clusters. I must run a kubectl --context target_cluster_alias api-resources or something similar so that my current context session is set correctly. And then I can run my inspection normally against my target cluster using my default kubeconfig
kubectl advise-psp inspect -n test_namespace -g
with expected results.Describe the solution you'd like
The ability to use
--context
similar to how kubectl does.The text was updated successfully, but these errors were encountered: