From 02ed5e02108e8fff799e3f13c93d945ff76229ce Mon Sep 17 00:00:00 2001 From: Maisie Wang Date: Tue, 10 Sep 2019 16:07:06 -0700 Subject: [PATCH] Assign weight to pre-install hooks --- deploy/helm/sumologic/templates/setup/setup-clusterrole.yaml | 1 + .../helm/sumologic/templates/setup/setup-clusterrolebinding.yaml | 1 + deploy/helm/sumologic/templates/setup/setup-job.yaml | 1 + deploy/helm/sumologic/templates/setup/setup-serviceaccount.yaml | 1 + 4 files changed, 4 insertions(+) diff --git a/deploy/helm/sumologic/templates/setup/setup-clusterrole.yaml b/deploy/helm/sumologic/templates/setup/setup-clusterrole.yaml index 0a8623b97a..6a64ccbc97 100644 --- a/deploy/helm/sumologic/templates/setup/setup-clusterrole.yaml +++ b/deploy/helm/sumologic/templates/setup/setup-clusterrole.yaml @@ -5,6 +5,7 @@ metadata: name: {{ template "sumologic.fullname" . }}-setup annotations: "helm.sh/hook": pre-install + "helm.sh/hook-weight": "1" "helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded labels: app: {{ template "sumologic.labels.app" . }} diff --git a/deploy/helm/sumologic/templates/setup/setup-clusterrolebinding.yaml b/deploy/helm/sumologic/templates/setup/setup-clusterrolebinding.yaml index fcda06f9cf..613f1077e6 100644 --- a/deploy/helm/sumologic/templates/setup/setup-clusterrolebinding.yaml +++ b/deploy/helm/sumologic/templates/setup/setup-clusterrolebinding.yaml @@ -5,6 +5,7 @@ metadata: name: {{ template "sumologic.fullname" . }}-setup annotations: "helm.sh/hook": pre-install + "helm.sh/hook-weight": "2" "helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded labels: app: {{ template "sumologic.labels.app" . }} diff --git a/deploy/helm/sumologic/templates/setup/setup-job.yaml b/deploy/helm/sumologic/templates/setup/setup-job.yaml index 53f269a1b8..9a91c31435 100644 --- a/deploy/helm/sumologic/templates/setup/setup-job.yaml +++ b/deploy/helm/sumologic/templates/setup/setup-job.yaml @@ -6,6 +6,7 @@ metadata: namespace: {{ .Release.Namespace }} annotations: "helm.sh/hook": pre-install + "helm.sh/hook-weight": "3" "helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded labels: app: {{ template "sumologic.labels.app" . }} diff --git a/deploy/helm/sumologic/templates/setup/setup-serviceaccount.yaml b/deploy/helm/sumologic/templates/setup/setup-serviceaccount.yaml index 28e2c03de1..10bf122bc2 100644 --- a/deploy/helm/sumologic/templates/setup/setup-serviceaccount.yaml +++ b/deploy/helm/sumologic/templates/setup/setup-serviceaccount.yaml @@ -5,6 +5,7 @@ metadata: name: {{ template "sumologic.fullname" . }}-setup annotations: "helm.sh/hook": pre-install + "helm.sh/hook-weight": "0" "helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded labels: app: {{ template "sumologic.labels.app" . }}