cluster-overprovisioner icon indicating copy to clipboard operation
cluster-overprovisioner copied to clipboard

feat: patch cas-schedule-active configmap instead of replacing

Open Art3mK opened this issue 1 year ago • 1 comments

Hello!

I got a problem with current version, which force replaces cas-schedule-active configmap, cause I've deployed chart using argo cd. While configmap changes are configured to be ignored by argocd, force replacing (delete/create) forces argocd to sync originally deployed configmap, which overrides the configmap cronjob wants to create.

I got this script working fine with bitnami/kubectl:1.30 image, jq is missing from ghcr.io/codecentric/cluster-overprovisioner-helper:latest

yq in ghcr.io/codecentric/cluster-overprovisioner-helper:latest is acting weird giving me error for some reason, didn't bothered to investigate why, but this should do the same with yq, at least that works locally:

kubectl get cm "cas-schedule-{{- $schedule.name }}" -n "{{ $namespace }}" -o yaml | yq e '.data' - > /tmp/source_data.yaml
kubectl get cm "cas-schedule-active" -n "{{ $namespace }}" -o yaml | yq e '.data = load("/tmp/source_data.yaml")' - | kubectl apply -f -

Thanks!

Art3mK avatar Jul 09 '24 09:07 Art3mK

ping @grieshaber

Art3mK avatar Aug 05 '24 12:08 Art3mK

This pull request has been marked as stale because it has been open for 30 days with no activity. It will be automatically closed in 10 days if no further activity occurs.

github-actions[bot] avatar Nov 14 '24 12:11 github-actions[bot]

ping @grieshaber

Art3mK avatar Nov 22 '24 11:11 Art3mK

This pull request has been marked as stale because it has been open for 30 days with no activity. It will be automatically closed in 10 days if no further activity occurs.

github-actions[bot] avatar Dec 23 '24 12:12 github-actions[bot]

ping @grieshaber

Art3mK avatar Jan 01 '25 13:01 Art3mK

This pull request has been marked as stale because it has been open for 30 days with no activity. It will be automatically closed in 10 days if no further activity occurs.

github-actions[bot] avatar Feb 02 '25 12:02 github-actions[bot]

ping @grieshaber @matthias-onpier

Art3mK avatar Feb 03 '25 10:02 Art3mK

This pull request has been marked as stale because it has been open for 30 days with no activity. It will be automatically closed in 10 days if no further activity occurs.

github-actions[bot] avatar Mar 05 '25 12:03 github-actions[bot]