Azure / k8s-deploy

GitHub Action for deploying to Kubernetes clusters
MIT License
252 stars 103 forks source link

Any way to handle delete or purge actions? #294

Open emcniece opened 11 months ago

emcniece commented 11 months ago

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!

github-actions[bot] commented 10 months ago

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

asgerjensen commented 10 months ago

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.

OliverMKing commented 10 months ago

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

github-actions[bot] commented 9 months ago

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