Skip to content

Commit f200bdc

Browse files
authored
Make schemaLoader optional in the API chart (#32)
* Make schemaLoader optional in the API chart Add an `enabled` flag to the schemaLoader configuration to allow users to disable the schema loader Job when not needed. The default value is `true` to maintain backward compatibility. * apply suggestions
1 parent 142a636 commit f200bdc

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

scalarflow/charts/api/templates/schemaloader/job.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{{- if and .Values.schemaLoader .Values.schemaLoader.enabled }}
12
apiVersion: batch/v1
23
kind: Job
34
metadata:
@@ -60,3 +61,4 @@ spec:
6061
tolerations:
6162
{{- toYaml . | nindent 8 }}
6263
{{- end }}
64+
{{- end }}

scalarflow/charts/api/values.schema.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,9 @@
190190
"args": {
191191
"type": "array"
192192
},
193+
"enabled": {
194+
"type": "boolean"
195+
},
193196
"env": {
194197
"type": "array",
195198
"items": {

scalarflow/charts/api/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,8 @@ api:
106106

107107
# Schema Loader configuration
108108
schemaLoader:
109+
# -- Whether to enable the schema loader Job.
110+
enabled: true
109111
image:
110112
repository: ghcr.io/scalar-labs/scalarflow-schema-loader
111113
pullPolicy: IfNotPresent

0 commit comments

Comments
 (0)