Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

feat(plugins/k8s): add prune_whitelist support pt2 #4345

Merged
merged 4 commits into from
Dec 21, 2022

Conversation

krantzinator
Copy link
Contributor

@krantzinator krantzinator commented Dec 20, 2022

This includes the make gen/website-mdx results for #3868

Now with a rebase!

Denys Vitali and others added 3 commits December 20, 2022 12:30
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.
Copy link
Contributor

@paladin-devops paladin-devops left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants