k8s-deploy icon indicating copy to clipboard operation
k8s-deploy copied to clipboard

Any way to handle delete or purge actions?

Open emcniece opened this issue 2 years ago • 4 comments

Feature request

Hi, new user here, I've set up this action to apply to my private cluster and it works like a charm. Is there a recommended pattern for handling teardown or delete/purge removal of manifests? Do you perform a kubectl delete manually, or is there a way to do this with the action? Thanks for your ideas!

emcniece avatar Oct 09 '23 03:10 emcniece

This issue is idle because it has been open for 14 days with no activity.

github-actions[bot] avatar Oct 23 '23 06:10 github-actions[bot]

I think this is a fair question

I came from a helm-based deployment mechanism, where i could both see what was deployed via helm list and remove all assets from a deployment using helm delete

Aside from action: reject i dont see any way of removing all artifacts based on, say the helm release name.

I suppose there is some combination of kubectl get all --selector=label=releasename that could be used, but those do not seem to pick up all artifacts.

I use PR deployments to my cluster, so for every PR a deployment is made, with that PRs code, when the PR is merged I would like to clean up all those artifacts.

asgerjensen avatar Nov 01 '23 07:11 asgerjensen

We have plans to add a feature like this through apply-set based pruning.

OliverMKing avatar Nov 06 '23 22:11 OliverMKing

This issue is idle because it has been open for 14 days with no activity.

github-actions[bot] avatar Nov 21 '23 00:11 github-actions[bot]