Browse Source

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
changes/31/628231/2
Dustin Specker 5 months ago
parent
commit
fa705f1aaa
2 changed files with 3 additions and 0 deletions
  1. 2
    0
      sonobuoy/templates/pod-api.yaml
  2. 1
    0
      sonobuoy/values.yaml

+ 2
- 0
sonobuoy/templates/pod-api.yaml View File

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

+ 1
- 0
sonobuoy/values.yaml View File

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

Loading…
Cancel
Save