Skip to content

Commit dd4a068

Browse files
committed
Replace migrate hooks with longer timeouts and retries
This makes it possible to use this chart with fluxcd Signed-off-by: Tamal Saha <[email protected]>
1 parent eed5562 commit dd4a068

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

charts/openfga/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: openfga
33
description: A Kubernetes Helm chart for the OpenFGA project.
44

55
type: application
6-
version: 0.2.6
6+
version: 0.2.7
77
appVersion: "v1.5.4"
88

99
home: "https://openfga.github.io/helm-charts"

charts/openfga/templates/job.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,5 +79,5 @@ spec:
7979
tolerations:
8080
{{- toYaml . | nindent 8 }}
8181
{{- end }}
82-
backoffLimit: 1
82+
backoffLimit: 3
8383
{{- end }}

charts/openfga/values.yaml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -320,9 +320,11 @@ affinity: {}
320320
sidecars: []
321321
migrate:
322322
sidecars: []
323-
annotations:
324-
helm.sh/hook: "post-install, post-upgrade, post-rollback, post-delete"
325-
helm.sh/hook-weight: "-5"
326-
helm.sh/hook-delete-policy: "before-hook-creation"
323+
# https://github.com/fluxcd/flux2/discussions/1085#discussioncomment-473271
324+
# https://github.com/helm/helm/issues/9027#issuecomment-1908032461
325+
annotations: {}
326+
# helm.sh/hook: "post-install, post-upgrade, post-rollback, post-delete"
327+
# helm.sh/hook-weight: "-5"
328+
# helm.sh/hook-delete-policy: "before-hook-creation"
327329
labels: {}
328-
timeout:
330+
timeout: 10m

0 commit comments

Comments
 (0)