#!/bin/sh
# Migration 23 --> 24

set -euo pipefail

# Remove old cozystack-resource-definition-crd HelmRelease (renamed to application-definition-crd)
kubectl delete hr -n cozy-system cozystack-resource-definition-crd --ignore-not-found

# Stamp version
kubectl create configmap -n cozy-system cozystack-version \
  --from-literal=version=24 --dry-run=client -o yaml | kubectl apply -f-
