From 60a181ad8fdf9276ce472ed73a45d9b7a11b3c9c Mon Sep 17 00:00:00 2001 From: ckav370 Date: Tue, 16 Jul 2024 13:42:18 +0100 Subject: [PATCH] feat: add ExternalSecret to sync wave Signed-off-by: ckav370 --- pkg/sync/sync_tasks.go | 1 + pkg/sync/sync_tasks_test.go | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/pkg/sync/sync_tasks.go b/pkg/sync/sync_tasks.go index f41946f6c..746bbfcbd 100644 --- a/pkg/sync/sync_tasks.go +++ b/pkg/sync/sync_tasks.go @@ -60,6 +60,7 @@ func init() { "IngressClass", "Ingress", "APIService", + "ExternalSecrets", } for i, kind := range kinds { // make sure none of the above entries are zero, we need that for custom resources diff --git a/pkg/sync/sync_tasks_test.go b/pkg/sync/sync_tasks_test.go index 201f77222..42e4c234d 100644 --- a/pkg/sync/sync_tasks_test.go +++ b/pkg/sync/sync_tasks_test.go @@ -13,8 +13,8 @@ import ( ) func Test_syncTasks_kindOrder(t *testing.T) { - assert.Equal(t, -35, kindOrder["Namespace"]) - assert.Equal(t, -1, kindOrder["APIService"]) + assert.Equal(t, -36, kindOrder["Namespace"]) + assert.Equal(t, -2, kindOrder["APIService"]) assert.Equal(t, 0, kindOrder["MyCRD"]) }