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 -}}
|
||||
{{- $path := .Values.nfs.path -}}
|
||||
{{- if (include "nfs.existing-configmap-provided" .) -}}
|
||||
{{- $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")) -}}
|
||||
{{- $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" $)) -}}
|
||||
{{- end -}}
|
||||
|
||||
apiVersion: apps/v1
|
||||
|
|
|
|||
|
|
@ -2,8 +2,8 @@
|
|||
{{- $server := .Values.nfs.server -}}
|
||||
{{- $path := .Values.nfs.path -}}
|
||||
{{- if (include "nfs.existing-configmap-provided" .) -}}
|
||||
{{- $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")) -}}
|
||||
{{- $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" $)) -}}
|
||||
{{- end -}}
|
||||
apiVersion: v1
|
||||
kind: PersistentVolume
|
||||
|
|
|
|||
Loading…
Reference in New Issue