ceph: skip rgw keyring-generator when not needed

Change-Id: I12d151587963b30a910146edaead54e55505077e
This commit is contained in:
Chris Wedgwood 2017-09-13 21:29:41 +00:00
parent ae4da1e7ef
commit e4e01362f7

View File

@ -18,6 +18,7 @@ limitations under the License.
{{- $envAll := . }}
{{- if .Values.deployment.storage_secrets }}
{{- range $key1, $cephBootstrapKey := tuple "mds" "osd" "rgw" "mon" }}
{{- if not (and (not $envAll.Values.manifests.deployment_rgw) (eq $cephBootstrapKey "rgw")) }}
{{- $jobName := print $cephBootstrapKey "-keyring-generator" }}
---
apiVersion: batch/v1
@ -86,3 +87,4 @@ spec:
{{- end }}
{{- end }}
{{- end }}
{{- end }}