mirror of
https://github.com/cozystack/cozystack.git
synced 2026-11-21 12:13:55 +09:00
The tenant addon HelmRelease remediates a failed install by uninstalling the release, and an uninstall deletes whatever the chart rendered. Deleting a CRD makes the API server garbage-collect every custom resource of that kind, so a failed reinstall takes every ServiceMonitor, PodMonitor, PrometheusRule and ScrapeConfig in the tenant cluster with it. The CRDs ship inside a vendored subchart that `make update` re-pulls, so the annotation is set through the chart values the subchart already renders rather than by editing templates that would be overwritten. Removing the release on purpose now leaves the definitions behind to be deleted by hand. Assisted-By: Claude <noreply@anthropic.com> Signed-off-by: Aleksei Sviridkin <f@lex.la>
14 lines
418 B
Makefile
14 lines
418 B
Makefile
export NAME=prometheus-operator-crds
|
|
export NAMESPACE=cozy-victoria-metrics-operator
|
|
|
|
include ../../../hack/package.mk
|
|
|
|
test:
|
|
helm unittest .
|
|
|
|
update:
|
|
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
|
|
helm repo update prometheus-community
|
|
rm -rf charts/prometheus-operator-crds
|
|
helm pull prometheus-community/prometheus-operator-crds --version 25.0.0 --untar --untardir charts
|