From fda8f2802da3952cc4921b17a48bcf9d5c52c440 Mon Sep 17 00:00:00 2001 From: Scott Leggett Date: Thu, 22 Feb 2024 09:48:12 +0800 Subject: [PATCH] chore: ensure test objects are installed in the correct order --- .../templates/tests/cdn-service-annotations.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/charts/lagoon-logging/templates/tests/cdn-service-annotations.yaml b/charts/lagoon-logging/templates/tests/cdn-service-annotations.yaml index b8300b5c..9bbfa400 100644 --- a/charts/lagoon-logging/templates/tests/cdn-service-annotations.yaml +++ b/charts/lagoon-logging/templates/tests/cdn-service-annotations.yaml @@ -6,6 +6,7 @@ metadata: annotations: "helm.sh/hook": test "helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded + "helm.sh/hook-weight": "-2" rules: - apiGroups: [""] # "" indicates the core API group resources: ["services"] @@ -18,6 +19,7 @@ metadata: annotations: "helm.sh/hook": test "helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded + "helm.sh/hook-weight": "-1" subjects: - kind: Group name: system:serviceaccounts # all serviceaccounts @@ -36,6 +38,7 @@ metadata: annotations: "helm.sh/hook": test "helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded + "helm.sh/hook-weight": "0" spec: containers: - name: kubectl