make publishing Sonobuoy results optional
This change enables operators to disable results publishing where Swift and Ceph may not be setup. This configuration option does not prevent deploying other resources such as ks-user. The operator will want to disable those via the `manifests` dictionary in `values.yaml`. Change-Id: I00be7d51309889fcaf3b2a9756e38dcf49c31312
This commit is contained in:
parent
3461a89714
commit
fa705f1aaa
|
@ -81,6 +81,7 @@ spec:
|
||||||
mountPath: /run_master.sh
|
mountPath: /run_master.sh
|
||||||
subPath: run_master.sh
|
subPath: run_master.sh
|
||||||
readOnly: true
|
readOnly: true
|
||||||
|
{{- if $envAll.Values.conf.publish_results }}
|
||||||
- name: results-publisher
|
- name: results-publisher
|
||||||
{{ tuple $envAll "results_publisher" | include "helm-toolkit.snippets.image" | indent 4 }}
|
{{ tuple $envAll "results_publisher" | include "helm-toolkit.snippets.image" | indent 4 }}
|
||||||
env:
|
env:
|
||||||
|
@ -98,6 +99,7 @@ spec:
|
||||||
readOnly: true
|
readOnly: true
|
||||||
- mountPath: {{ .Values.conf.sonobuoy.ResultsDir }}
|
- mountPath: {{ .Values.conf.sonobuoy.ResultsDir }}
|
||||||
name: sonobuoy-output
|
name: sonobuoy-output
|
||||||
|
{{- end }}
|
||||||
restartPolicy: Never
|
restartPolicy: Never
|
||||||
serviceAccountName: {{ $serviceAccountName }}
|
serviceAccountName: {{ $serviceAccountName }}
|
||||||
volumes:
|
volumes:
|
||||||
|
|
|
@ -99,6 +99,7 @@ manifests:
|
||||||
secret_keystone: true
|
secret_keystone: true
|
||||||
|
|
||||||
conf:
|
conf:
|
||||||
|
publish_results: true
|
||||||
swift:
|
swift:
|
||||||
container_name: sonobuoy
|
container_name: sonobuoy
|
||||||
# delete objects after 1 month (60 * 60 * 24 * 30 seconds)
|
# delete objects after 1 month (60 * 60 * 24 * 30 seconds)
|
||||||
|
|
Loading…
Reference in New Issue