diff --git a/sonobuoy/templates/pod-api.yaml b/sonobuoy/templates/pod-api.yaml index 390e27e6..9b119da2 100644 --- a/sonobuoy/templates/pod-api.yaml +++ b/sonobuoy/templates/pod-api.yaml @@ -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: diff --git a/sonobuoy/values.yaml b/sonobuoy/values.yaml index 633f08a3..01fc1b2a 100644 --- a/sonobuoy/values.yaml +++ b/sonobuoy/values.yaml @@ -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)