fix context lookup Andrea Pulvirenti <an.pulvy@gmail.com>
This commit is contained in:
parent
bf290931ce
commit
1be1e74c8d
|
|
@ -2,8 +2,8 @@
|
||||||
{{- $server := .Values.nfs.server -}}
|
{{- $server := .Values.nfs.server -}}
|
||||||
{{- $path := .Values.nfs.path -}}
|
{{- $path := .Values.nfs.path -}}
|
||||||
{{- if (include "nfs.existing-configmap-provided" .) -}}
|
{{- if (include "nfs.existing-configmap-provided" .) -}}
|
||||||
{{- $server := (include "common.configmap.lookup" (dict "config" .Values.nfs.existingConfigMap.name "key" "server" "defaultValue" .Values.nfs.server "context")) -}}
|
{{- $server := (include "common.configmap.lookup" (dict "config" .Values.nfs.existingConfigMap.name "key" "server" "defaultValue" .Values.nfs.server "context" $)) -}}
|
||||||
{{- $path := (include "common.configmap.lookup" (dict "config" .Values.nfs.existingConfigMap.name "key" "path" "defaultValue" .Values.nfs.path "context")) -}}
|
{{- $path := (include "common.configmap.lookup" (dict "config" .Values.nfs.existingConfigMap.name "key" "path" "defaultValue" .Values.nfs.path "context" $)) -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,8 @@
|
||||||
{{- $server := .Values.nfs.server -}}
|
{{- $server := .Values.nfs.server -}}
|
||||||
{{- $path := .Values.nfs.path -}}
|
{{- $path := .Values.nfs.path -}}
|
||||||
{{- if (include "nfs.existing-configmap-provided" .) -}}
|
{{- if (include "nfs.existing-configmap-provided" .) -}}
|
||||||
{{- $server := (include "common.configmap.lookup" (dict "config" .Values.nfs.existingConfigMap.name "key" "server" "defaultValue" .Values.nfs.server "context")) -}}
|
{{- $server := (include "common.configmap.lookup" (dict "config" .Values.nfs.existingConfigMap.name "key" "server" "defaultValue" .Values.nfs.server "context" $)) -}}
|
||||||
{{- $path := (include "common.configmap.lookup" (dict "config" .Values.nfs.existingConfigMap.name "key" "path" "defaultValue" .Values.nfs.path "context")) -}}
|
{{- $path := (include "common.configmap.lookup" (dict "config" .Values.nfs.existingConfigMap.name "key" "path" "defaultValue" .Values.nfs.path "context" $)) -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: PersistentVolume
|
kind: PersistentVolume
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue