From b4c1ad6e854a296178314d5e0d25995f24310e0e Mon Sep 17 00:00:00 2001 From: Jhony Avella Date: Tue, 2 Jul 2024 16:36:23 -0500 Subject: [PATCH] fix: remove unnecesary annotations from the hpa sync wave The HPA sync-wave patch includes annotations to indicate argocd in which order should the HPA resources be applied in relation to the other resources. The `argocd.argoproj.io/hook: Sync` and `argocd.argoproj.io/hook-delete-policy: HookSucceeded` annotations are used for ephemeral resources (like jobs) and should not be used for the HPA resources. --- drydock/templates/drydock/k8s/patches/hpa-sync-wave.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/drydock/templates/drydock/k8s/patches/hpa-sync-wave.yml b/drydock/templates/drydock/k8s/patches/hpa-sync-wave.yml index 5c4ef54..8ab9d81 100644 --- a/drydock/templates/drydock/k8s/patches/hpa-sync-wave.yml +++ b/drydock/templates/drydock/k8s/patches/hpa-sync-wave.yml @@ -4,5 +4,3 @@ metadata: name: not-used annotations: argocd.argoproj.io/sync-wave: "{{ get_sync_waves_for_resource('horizontalpodautoscalers:all') }}" - argocd.argoproj.io/hook: Sync - argocd.argoproj.io/hook-delete-policy: HookSucceeded