cozystack/packages/system/cozystack-api
Timofei Larkin 0f9806e9b0 [api] Delete previous instance when changing type
## What this PR does

It was observed during upgrades to the `cozystack-api` Helm release that
when enabling the local endpoint for the traffic locality feature, hence
switching from a deployment to a daemonset, the deployment may remain
unpruned and the pods of the deployment will continue to run
indefinitely. This patch adds a post-upgrade hook that explicitly deletes
the deployment in case it exists and was not pruned.

### Release-note

```release-note
[api] Delete the cozystack-api deployment in a post-upgrade hook when
migrating to a daemonset and vice-versa.
```

Signed-off-by: Timofei Larkin <lllamnyp@gmail.com>
2025-11-03 17:22:38 +03:00
..
images/cozystack-api [platform] Use cozypkg instead of helm 2025-06-13 19:02:15 +02:00
templates [api] Delete previous instance when changing type 2025-11-03 17:22:38 +03:00
Chart.yaml Introduce Cozystack API (#460) 2024-11-04 17:33:34 +01:00
Makefile [cozystack-api] Implement TenantNamespace, TenantModules, TenantSecret and TenantSecretsTable resources 2025-09-24 18:27:54 +02:00
values.yaml [api,lineage] Ensure node-local traffic 2025-10-29 09:17:27 +03:00