cozystack/packages/apps
Timofei Larkin 7009c8da37
[kubernetes] Helm hooks for cleanup (#1606)
## What this PR does

When deleting a Kubernetes, some resources may linger post deletion
because of a race to remove HelmReleases deployed inside the tenant
cluster and the removal of the cluster and its controlplane itself. This
patch modifies the existing pre-delete hook to remove those helmreleases
instead of simply suspending them. Similarly, datavolumes may also
remain. These are now delete with a post-delete hook.

### Release note

```release-note
[kubernetes] Use Helm hooks to clean up HelmReleases deployed in tenant
clusters and DataVolumes backing the tenant clusters' PVCs when deleting
a tenant Kubernetes.
```

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **Chores**
* Added an automated post-delete cleanup job to remove persistent data
volumes scoped to the release namespace when a release is deleted.
* Updated Helm release teardown to actively delete lingering release
resources (rather than only suspending them) for cleaner uninstall
behavior.
* Broadened lifecycle hooks to run on successful completions and
expanded teardown permissions to list and delete related release
artifacts, including gateway CRDs.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-11-07 13:50:55 +04:00
..
bucket [cozystack-api] Implement TenantNamespace, TenantModules, TenantSecret and TenantSecretsTable resources 2025-09-24 18:27:54 +02:00
clickhouse [dx] JSDoc compatible syntax for values.yaml 2025-10-29 08:57:26 +05:00
ferretdb [dx] JSDoc compatible syntax for values.yaml 2025-10-29 08:57:26 +05:00
foundationdb [dx] JSDoc compatible syntax for values.yaml 2025-10-29 08:57:26 +05:00
http-cache [dx] JSDoc compatible syntax for values.yaml 2025-10-29 08:57:26 +05:00
kafka [dx] JSDoc compatible syntax for values.yaml 2025-10-29 08:57:26 +05:00
kubernetes [kubernetes] Helm hooks for cleanup 2025-11-07 12:01:00 +03:00
mysql [mariadb-operator] Add post-delete job to remove PVCs (#1553) 2025-10-30 23:21:48 +05:00
nats Use dig function to check for existing secret in NATS app template and prevent nil indexing 2025-11-05 18:12:23 -06:00
postgres [dx] JSDoc compatible syntax for values.yaml 2025-10-29 08:57:26 +05:00
rabbitmq [dx] JSDoc compatible syntax for values.yaml 2025-10-29 08:57:26 +05:00
redis revert redis values and static image in the chart 2025-11-04 11:32:18 +03:00
tcp-balancer [dx] JSDoc compatible syntax for values.yaml 2025-10-29 08:57:26 +05:00
tenant [dashboard] sync with upstream & enhancements 2025-11-05 18:22:22 +01:00
virtual-machine [apps] virtual-machine: add vpc support 2025-10-31 17:48:36 +03:00
vm-disk [dx] JSDoc compatible syntax for values.yaml 2025-10-29 08:57:26 +05:00
vm-instance [apps] vm-instance: add vpc support 2025-10-31 17:48:36 +03:00
vpc [vpc] Entry per subnet in the subnets configmap (#1600) 2025-11-05 14:38:23 +04:00
vpn [dx] JSDoc compatible syntax for values.yaml 2025-10-29 08:57:26 +05:00
Makefile Allign timeouts for HelmReleases 2025-09-24 16:54:17 +02:00
README.md [clickhouse] add clickhouse keeper 2025-08-07 14:07:05 +03:00

How to test packages local

cd packages/core/installer
make image-cozystack REGISTRY=YOUR_CUSTOM_REGISTRY
make apply
kubectl delete po -l app=source-controller -n cozy-fluxcd