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:
Dustin Specker 2019-01-03 11:32:20 -06:00
parent 3461a89714
commit fa705f1aaa
2 changed files with 3 additions and 0 deletions

View File

@ -81,6 +81,7 @@ spec:
mountPath: /run_master.sh
subPath: run_master.sh
readOnly: true
{{- if $envAll.Values.conf.publish_results }}
- name: results-publisher
{{ tuple $envAll "results_publisher" | include "helm-toolkit.snippets.image" | indent 4 }}
env:
@ -98,6 +99,7 @@ spec:
readOnly: true
- mountPath: {{ .Values.conf.sonobuoy.ResultsDir }}
name: sonobuoy-output
{{- end }}
restartPolicy: Never
serviceAccountName: {{ $serviceAccountName }}
volumes:

View File

@ -99,6 +99,7 @@ manifests:
secret_keystone: true
conf:
publish_results: true
swift:
container_name: sonobuoy
# delete objects after 1 month (60 * 60 * 24 * 30 seconds)