-
Notifications
You must be signed in to change notification settings - Fork 330
feat(plugins/k8s): add prune_whitelist
support
#3868
feat(plugins/k8s): add prune_whitelist
support
#3868
Conversation
With this commit it is now possible to specify a prune_whitelist array like: ```hcl deploy { use "kubernetes-apply" { path = templatedir("${path.app}/k8s", var) kubeconfig = var.kube_config prune_label = "app=my-app" prune_whitelist = [ "apps/v1/Deployment", "apps/v1/ReplicaSet" ] } } ``` This is extremely useful in case you don't have read permissions for all the resources in the cluster, or in case you want to be more conservative in what can be pruned.
Pinging the plugin owner (?): @mitchellh |
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.
Makes sense to me! 👍🏻
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.
@denysvitali - You'll need to re-generate the website markdown to get the tests to pass! make gen/website-mdx
I can't.
|
@denysvitali I suggested this in a comment on another PR, but to close the gap here, I think that running |
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.
Also approved, pending the docs updates! 😄
I've handled the mdx generation over on #4345 |
With this commit it is now possible to specify a prune_whitelist array like:
This is extremely useful in case you don't have read permissions for all the resources in the cluster, or in case you want to be more conservative in what can be pruned.
Example usage:
This will in turn call: