mirror of
https://github.com/outbackdingo/cozystack.git
synced 2026-01-27 18:18:41 +00:00
19 lines
598 B
Bash
19 lines
598 B
Bash
#!/bin/sh
|
|
# Migration 11 --> 12
|
|
|
|
# Recreate daemonset kube-rbac-proxy
|
|
|
|
if kubectl get daemonset kube-rbac-proxy -n cozy-monitoring; then
|
|
kubectl delete daemonset kube-rbac-proxy --cascade=orphan -n cozy-monitoring
|
|
fi
|
|
|
|
if kubectl get helmrelease monitoring-agents -n cozy-monitoring; then
|
|
timestamp=$(date --rfc-3339=ns)
|
|
kubectl annotate helmrelease monitoring-agents -n cozy-monitoring \
|
|
reconcile.fluxcd.io/forceAt="$timestamp" \
|
|
reconcile.fluxcd.io/requestedAt="$timestamp" \
|
|
--overwrite
|
|
fi
|
|
|
|
kubectl delete pods -l app.kubernetes.io/component=kube-rbac-proxy -n cozy-monitoring
|