Merge "sonobuoy: Support storing results on host"
This commit is contained in:
commit
04703028cf
|
@ -32,3 +32,8 @@ openstack object create --name $prefixed_file_name {{ .Values.conf.swift.contain
|
|||
openstack object show {{ .Values.conf.swift.container_name }} $prefixed_file_name
|
||||
|
||||
swift post {{ .Values.conf.swift.container_name }} $prefixed_file_name -H \"X-Delete-After:{{ .Values.conf.swift.delete_objects_after_seconds }}\"
|
||||
|
||||
# NOTE(aw442m): Delete results after publishing to avoid collisions when using host path
|
||||
if [[ ! -z "${RESULTS_DIR}" ]]; then
|
||||
rm "${RESULTS_DIR}"/"${file_name}"
|
||||
fi
|
||||
|
|
|
@ -122,6 +122,12 @@ spec:
|
|||
name: sonobuoy-plugins
|
||||
defaultMode: 0444
|
||||
name: sonobuoy-plugins-volume
|
||||
- emptyDir: {}
|
||||
name: sonobuoy-output
|
||||
- name: sonobuoy-output
|
||||
{{- if .Values.conf.host_results_path }}
|
||||
hostPath:
|
||||
path: {{ .Values.conf.host_results_path }}
|
||||
type: DirectoryOrCreate
|
||||
{{- else }}
|
||||
emptyDir: {}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
|
|
@ -107,6 +107,8 @@ manifests:
|
|||
|
||||
conf:
|
||||
publish_results: true
|
||||
# NOTE: use to store results on host; disabled by default.
|
||||
host_results_path: null
|
||||
# Injected values root used by (some of) the plugins. This `plugin_values`
|
||||
# root is the parent for a mapping of named sections, each of which will be
|
||||
# added as a file in the plugin-values secret.
|
||||
|
|
Loading…
Reference in New Issue