Interlegis Public Rancher Charts for Kubernetes
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
apiVersion: v1
|
|
|
|
kind: ConfigMap
|
|
|
|
metadata:
|
|
|
|
name: {{ .Values.configmap.name }}
|
|
|
|
labels:
|
|
|
|
{{ include "local-path-provisioner.labels" . | indent 4 }}
|
|
|
|
data:
|
|
|
|
{{- if .Values.customNodePathMap }}
|
|
|
|
config.json: |-
|
|
|
|
{
|
|
|
|
"nodePathMap": {{ .Values.customNodePathMap | toPrettyJson | nindent 8 }}
|
|
|
|
}
|
|
|
|
|
|
|
|
{{- else }}
|
|
|
|
config.json: |-
|
|
|
|
{
|
|
|
|
"nodePathMap":[
|
|
|
|
{
|
|
|
|
"node":"DEFAULT_PATH_FOR_NON_LISTED_NODES",
|
|
|
|
"paths":[{{ .Values.storageClass.hostDir | quote }}]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
{{- end }}
|
|
|
|
setup: |-
|
|
|
|
{{ .Values.configmap.setup | nindent 4 }}
|
|
|
|
teardown: |-
|
|
|
|
{{ .Values.configmap.teardown | nindent 4 }}
|
|
|
|
helperPod.yaml: |-
|
|
|
|
{{ .Values.configmap.helperPod | nindent 4 }}
|
|
|
|
|