Skip to content

Commit 08ace9c

Browse files
committed
Add fetch-from-config-and-send
1 parent ccc9c43 commit 08ace9c

File tree

4 files changed

+12
-0
lines changed

4 files changed

+12
-0
lines changed

charts/nhi-explorer/templates/cronjob.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,11 @@ spec:
2525
image: "{{ .Values.image.repository }}:{{ .Values.inventory.version }}"
2626
imagePullPolicy: {{ .Values.image.pullPolicy }}
2727
args:
28+
{{- if .Values.inventory.upload }}
29+
- fetch-from-config-and-send
30+
{{- else }}
2831
- from-config
32+
{{- end }}
2933
resources: {{ toJson .Values.resources }}
3034
envFrom: {{ toJson .Values.envFrom }}
3135
env:

charts/nhi-explorer/values-base-schema.schema.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"additionalProperties": false,
77
"type": "object",
88
"properties": {
9+
"upload": {"type": "boolean"},
910
"version": {"type": "string"},
1011
"schedule": {"type": "string"},
1112
"config": {

charts/nhi-explorer/values.schema.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@
2020
"type": "string",
2121
"minLength": 0
2222
},
23+
"upload": {
24+
"enum": [
25+
false,
26+
true
27+
]
28+
},
2329
"version": {
2430
"type": "string",
2531
"minLength": 0

charts/nhi-explorer/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
inventory:
77
# Specific version of the image to use
88
version: 0.6.0
9+
upload: false
910
# Schedule to run the collection on
1011
schedule: '* * * * *'
1112
config:

0 commit comments

Comments
 (0)