Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Would like the ability to define a helm version retention threshold like a MaxHistory #3242

Open
brianrexrode opened this issue Nov 15, 2024 · 0 comments
Labels
enhancement ✨ New feature or request

Comments

@brianrexrode
Copy link

Is your feature request related to a problem? Please describe.

For long-lived clusters deploying zarf packages, helm.release secrets continue to pill up and are only removed manually

Describe the behavior you'd like

  • Given I deploy numerous zarf packages to a long-lived cluster
  • When I define a MaxHistory threshold (or similar)
  • Then previous versions of helm.release secrets are deleted

Describe alternatives you've considered

(optional) Adding a kubectl command to a uds task to delete the older secrets

kubectl delete secret -n <namespace> -l "owner=helm,status=superseded"
kubectl delete secret -n <namespace> -l "owner=helm,status=failed"

Additional context

An easy way to reproduce the issue is to deploy and redeploy zarf packages.
Quick test option:

uds deploy k3d-core-slim-dev:latest --confirm

for i in {1..5}; do
    zarf package deploy oci://ghcr.io/defenseunicorns/packages/uds/core-metrics-server:0.31.2-upstream --confirm
done

kubectl get secrets -n metrics-server
@brianrexrode brianrexrode added the enhancement ✨ New feature or request label Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement ✨ New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant