Skip to content

Commit

Permalink
Merge branch 'main' into replicate-deployment-behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
ewanharris committed Jun 4, 2024
2 parents 8d9bfa3 + f010c13 commit 25d550d
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 8 deletions.
5 changes: 5 additions & 0 deletions charts/openfga/templates/job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ spec:
key: "uri"
{{- end }}

{{- if .Values.migrate.timeout }}
- name: OPENFGA_TIMEOUT
value: "{{ .Values.migrate.timeout }}"
{{- end }}

{{- with .Values.extraEnvVars }}
{{- toYaml . | nindent 12 }}
{{- end }}
Expand Down
25 changes: 17 additions & 8 deletions charts/openfga/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -924,15 +924,24 @@
"type": "array",
"description": "add additional sidecar containers to the migration job",
"default": []
}
},
"annotations": {
"type": "object",
"description": "Map of annotations to add to the migration job's manifest",
"additionalProperties": {
"type": "string"
},
"default": {}
"annotations": {
"type": "object",
"description": "Map of annotations to add to the migration job's manifest",
"additionalProperties": {
"type": "string"
},
"default": {}
},
"timeout": {
"type": [
"string",
"null"
],
"description": "A timeout for the time it takes the migrate process to connect to the database",
"format": "duration",
"default": "1m"
}
}
},
"extraEnvVars": {
Expand Down
1 change: 1 addition & 0 deletions charts/openfga/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -325,3 +325,4 @@ migrate:
helm.sh/hook-weight: "-5"
helm.sh/hook-delete-policy: "before-hook-creation"
labels: {}
timeout:

0 comments on commit 25d550d

Please sign in to comment.