Merge "Ceph: fix overriding ceph monitor hosts value"
This commit is contained in:
commit
da8cb2ffa1
@ -87,6 +87,10 @@ examples:
|
|||||||
|
|
||||||
{{- define "helm-toolkit.manifests.ceph-storageclass" -}}
|
{{- define "helm-toolkit.manifests.ceph-storageclass" -}}
|
||||||
{{- $envAll := index . "envAll" -}}
|
{{- $envAll := index . "envAll" -}}
|
||||||
|
{{- $monHost := $envAll.Values.conf.ceph.global.mon_host -}}
|
||||||
|
{{- if empty $monHost -}}
|
||||||
|
{{- $monHost = tuple "ceph_mon" "internal" "mon" $envAll | include "helm-toolkit.endpoints.host_and_port_endpoint_uri_lookup" -}}
|
||||||
|
{{- end -}}
|
||||||
{{- $storageclassData := index . "storageclass_data" -}}
|
{{- $storageclassData := index . "storageclass_data" -}}
|
||||||
---
|
---
|
||||||
{{- if $storageclassData.provision_storage_class }}
|
{{- if $storageclassData.provision_storage_class }}
|
||||||
@ -100,7 +104,7 @@ metadata:
|
|||||||
name: {{ $storageclassData.metadata.name }}
|
name: {{ $storageclassData.metadata.name }}
|
||||||
provisioner: {{ $storageclassData.provisioner }}
|
provisioner: {{ $storageclassData.provisioner }}
|
||||||
parameters:
|
parameters:
|
||||||
monitors: {{ tuple "ceph_mon" "internal" "mon" $envAll | include "helm-toolkit.endpoints.host_and_port_endpoint_uri_lookup" }}
|
monitors: {{ $monHost }}
|
||||||
{{- range $attr, $value := $storageclassData.parameters }}
|
{{- range $attr, $value := $storageclassData.parameters }}
|
||||||
{{ $attr }}: {{ $value | quote }}
|
{{ $attr }}: {{ $value | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user