123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273 |
- kind: ConfigMap
- apiVersion: v1
- metadata:
- name: {{ include "deepflow.fullname" . }}
- labels:
- {{- include "deepflow.labels" . | nindent 4 }}
- data:
- server.yaml: |
- {{- range $elem, $elemVal := index .Values "configmap" "server.yaml" -}}
- {{- if not (kindIs "map" $elemVal) -}}
- {{- if kindIs "invalid" $elemVal -}}
- {{- nindent 4 $elem -}}:
- {{- else if kindIs "string" $elemVal -}}
- {{- if (tpl $elemVal $ ) -}}
- {{- nindent 4 $elem }}: {{ tpl $elemVal $ -}}
- {{- else -}}
- {{- nindent 4 $elem }}:
- {{- end -}}
- {{- else if kindIs "float64" $elemVal -}}
- {{- nindent 4 $elem }}: {{ int $elemVal -}}
- {{- else if kindIs "slice" $elemVal -}}
- {{- nindent 4 $elem -}}:
- {{- tpl (toYaml $elemVal ) $| nindent 4 -}}
- {{- else -}}
- {{- if $elemVal -}}
- {{- nindent 4 $elem }}: {{ toYaml $elemVal -}}
- {{- else -}}
- {{- nindent 4 $elem }}:
- {{- end -}}
- {{- end -}}
- {{- end -}}
- {{- end -}}
- {{- range $key, $value := index .Values "configmap" "server.yaml" -}}
- {{- if kindIs "map" $value -}}
- {{- nindent 4 $key -}}:
- {{- range $elem, $elemVal := $value -}}
- {{- if not (kindIs "map" $elemVal) -}}
- {{- if kindIs "invalid" $elemVal -}}
- {{- nindent 6 $elem -}}:
- {{- else if kindIs "string" $elemVal -}}
- {{- nindent 6 $elem }}: {{ tpl $elemVal $ -}}
- {{- else if kindIs "float64" $elemVal -}}
- {{- nindent 6 $elem }}: {{ int $elemVal -}}
- {{- else if kindIs "slice" $elemVal -}}
- {{- nindent 6 $elem -}}:
- {{- tpl (toYaml $elemVal ) $| nindent 6 -}}
- {{- else -}}
- {{- nindent 6 $elem }}: {{ $elemVal -}}
- {{- end -}}
- {{- end -}}
- {{- end -}}
- {{- range $elem, $elemVal := $value -}}
- {{- if kindIs "map" $elemVal -}}
- {{- nindent 6 $elem -}}:
- {{- range $therrKey, $therrVal := $elemVal -}}
- {{- if not (kindIs "map" $therrVal) -}}
- {{- if kindIs "invalid" $therrVal -}}
- {{- nindent 8 $therrKey -}}:
- {{- else if kindIs "string" $therrVal -}}
- {{- if (tpl $therrVal $ ) -}}
- {{- nindent 8 $therrKey }}: {{ tpl $therrVal $ -}}
- {{- else -}}
- {{- nindent 8 $therrKey }}:
- {{- end -}}
- {{- else if kindIs "float64" $therrVal -}}
- {{- nindent 8 $therrKey }}: {{ int $therrVal -}}
- {{- else if kindIs "slice" $therrVal -}}
- {{- nindent 8 $therrKey -}}:
- {{- tpl (toYaml $therrVal ) $| nindent 8 -}}
- {{- else -}}
- {{- if $therrVal -}}
- {{- nindent 8 $therrKey }}: {{ toYaml $therrVal -}}
- {{- else -}}
- {{- nindent 8 $therrKey }}:
- {{- end -}}
- {{- end -}}
- {{- end -}}
- {{- end -}}
- {{- range $therrKey, $therrVal := $elemVal -}}
- {{- if kindIs "map" $therrVal -}}
- {{- nindent 8 $therrKey -}}:
- {{- range $fourKey, $fourVal := $therrVal -}}
- {{- if not (kindIs "map" $fourVal) -}}
- {{- if kindIs "invalid" $fourVal -}}
- {{- nindent 10 $fourKey -}}:
- {{- else if kindIs "string" $fourVal -}}
- {{- if (tpl $fourVal $ ) -}}
- {{- nindent 10 $fourKey }}: {{ tpl $fourVal $ -}}
- {{- else -}}
- {{- nindent 10 $fourKey }}:
- {{- end -}}
- {{- else if kindIs "float64" $fourVal -}}
- {{- nindent 10 $fourKey }}: {{ int $fourVal -}}
- {{- else if kindIs "slice" $fourVal -}}
- {{- nindent 10 $fourKey -}}:
- {{- tpl (toYaml $fourVal ) $| nindent 10 -}}
- {{- else -}}
- {{- if $fourVal -}}
- {{- nindent 10 $fourKey }}: {{ toYaml $fourVal -}}
- {{- else -}}
- {{- nindent 10 $fourKey }}:
- {{- end -}}
- {{- end -}}
- {{- end -}}
- {{- end -}}
- {{- range $fourKey, $fourVal := $therrVal -}}
- {{- if kindIs "map" $fourVal -}}
- {{- nindent 10 $fourKey -}}:
- {{- range $fiveKey, $fiveVal := $fourVal -}}
- {{- if not (kindIs "map" $fiveVal) -}}
- {{- if kindIs "invalid" $fiveVal -}}
- {{- nindent 12 $fiveKey -}}:
- {{- else if kindIs "string" $fiveVal -}}
- {{- if $fiveVal -}}
- {{- nindent 12 $fiveKey }}: {{ tpl $fiveVal $ -}}
- {{- else -}}
- {{- nindent 12 $fiveKey }}:
- {{- end -}}
- {{- else if kindIs "float64" $fiveVal -}}
- {{- nindent 12 $fiveKey }}: {{ int $fiveVal -}}
- {{- else if kindIs "slice" $fiveVal -}}
- {{- nindent 12 $fiveKey -}}:
- {{- tpl (toYaml $fiveVal ) $| nindent 12 -}}
- {{- else -}}
- {{- if $fiveVal -}}
- {{- nindent 12 $fiveKey }}: {{ $fiveVal -}}
- {{- else -}}
- {{- nindent 12 $fiveKey }}:
- {{- end -}}
- {{- end -}}
- {{- end -}}
- {{- end -}}
- {{- end -}}
- {{- end -}}
- {{- end -}}
- {{- end -}}
- {{- end -}}
- {{- end -}}
- {{- end -}}
- {{- end }}
- app.yaml: |
- {{- range $elem, $elemVal := index .Values "configmap" "app.yaml" -}}
- {{- if not (kindIs "map" $elemVal) -}}
- {{- if kindIs "invalid" $elemVal -}}
- {{- nindent 4 $elem -}}:
- {{- else if kindIs "string" $elemVal -}}
- {{- if (tpl $elemVal $ ) -}}
- {{- nindent 4 $elem }}: {{ tpl $elemVal $ -}}
- {{- else -}}
- {{- nindent 4 $elem }}:
- {{- end -}}
- {{- else if kindIs "float64" $elemVal -}}
- {{- nindent 4 $elem }}: {{ int $elemVal -}}
- {{- else if kindIs "slice" $elemVal -}}
- {{- nindent 4 $elem -}}:
- {{- tpl (toYaml $elemVal ) $| nindent 4 -}}
- {{- else -}}
- {{- if $elemVal -}}
- {{- nindent 4 $elem }}: {{ toYaml $elemVal -}}
- {{- else -}}
- {{- nindent 4 $elem }}:
- {{- end -}}
- {{- end -}}
- {{- end -}}
- {{- end -}}
- {{- range $key, $value := index .Values "configmap" "app.yaml" -}}
- {{- if kindIs "map" $value -}}
- {{- nindent 4 $key -}}:
- {{- range $elem, $elemVal := $value -}}
- {{- if not (kindIs "map" $elemVal) -}}
- {{- if kindIs "invalid" $elemVal -}}
- {{- nindent 6 $elem -}}:
- {{- else if kindIs "string" $elemVal -}}
- {{- nindent 6 $elem }}: {{ tpl $elemVal $ -}}
- {{- else if kindIs "float64" $elemVal -}}
- {{- nindent 6 $elem }}: {{ int $elemVal -}}
- {{- else if kindIs "slice" $elemVal -}}
- {{- nindent 6 $elem -}}:
- {{- tpl (toYaml $elemVal ) $| nindent 6 -}}
- {{- else -}}
- {{- nindent 6 $elem }}: {{ $elemVal -}}
- {{- end -}}
- {{- end -}}
- {{- end -}}
- {{- range $elem, $elemVal := $value -}}
- {{- if kindIs "map" $elemVal -}}
- {{- nindent 6 $elem -}}:
- {{- range $therrKey, $therrVal := $elemVal -}}
- {{- if not (kindIs "map" $therrVal) -}}
- {{- if kindIs "invalid" $therrVal -}}
- {{- nindent 8 $therrKey -}}:
- {{- else if kindIs "string" $therrVal -}}
- {{- if (tpl $therrVal $ ) -}}
- {{- nindent 8 $therrKey }}: {{ tpl $therrVal $ -}}
- {{- else -}}
- {{- nindent 8 $therrKey }}:
- {{- end -}}
- {{- else if kindIs "float64" $therrVal -}}
- {{- nindent 8 $therrKey }}: {{ int $therrVal -}}
- {{- else if kindIs "slice" $therrVal -}}
- {{- nindent 8 $therrKey -}}:
- {{- tpl (toYaml $therrVal ) $| nindent 8 -}}
- {{- else -}}
- {{- if $therrVal -}}
- {{- nindent 8 $therrKey }}: {{ toYaml $therrVal -}}
- {{- else -}}
- {{- nindent 8 $therrKey }}:
- {{- end -}}
- {{- end -}}
- {{- end -}}
- {{- end -}}
- {{- range $therrKey, $therrVal := $elemVal -}}
- {{- if kindIs "map" $therrVal -}}
- {{- nindent 8 $therrKey -}}:
- {{- range $fourKey, $fourVal := $therrVal -}}
- {{- if not (kindIs "map" $fourVal) -}}
- {{- if kindIs "invalid" $fourVal -}}
- {{- nindent 10 $fourKey -}}:
- {{- else if kindIs "string" $fourVal -}}
- {{- if (tpl $fourVal $ ) -}}
- {{- nindent 10 $fourKey }}: {{ tpl $fourVal $ -}}
- {{- else -}}
- {{- nindent 10 $fourKey }}:
- {{- end -}}
- {{- else if kindIs "float64" $fourVal -}}
- {{- nindent 10 $fourKey }}: {{ int $fourVal -}}
- {{- else if kindIs "slice" $fourVal -}}
- {{- nindent 10 $fourKey -}}:
- {{- tpl (toYaml $fourVal ) $| nindent 10 -}}
- {{- else -}}
- {{- if $fourVal -}}
- {{- nindent 10 $fourKey }}: {{ toYaml $fourVal -}}
- {{- else -}}
- {{- nindent 10 $fourKey }}:
- {{- end -}}
- {{- end -}}
- {{- end -}}
- {{- end -}}
- {{- range $fourKey, $fourVal := $therrVal -}}
- {{- if kindIs "map" $fourVal -}}
- {{- nindent 10 $fourKey -}}:
- {{- range $fiveKey, $fiveVal := $fourVal -}}
- {{- if not (kindIs "map" $fiveVal) -}}
- {{- if kindIs "invalid" $fiveVal -}}
- {{- nindent 12 $fiveKey -}}:
- {{- else if kindIs "string" $fiveVal -}}
- {{- if $fiveVal -}}
- {{- nindent 12 $fiveKey }}: {{ tpl $fiveVal $ -}}
- {{- else -}}
- {{- nindent 12 $fiveKey }}:
- {{- end -}}
- {{- else if kindIs "float64" $fiveVal -}}
- {{- nindent 12 $fiveKey }}: {{ int $fiveVal -}}
- {{- else if kindIs "slice" $fiveVal -}}
- {{- nindent 12 $fiveKey -}}:
- {{- tpl (toYaml $fiveVal ) $| nindent 12 -}}
- {{- else -}}
- {{- if $fiveVal -}}
- {{- nindent 12 $fiveKey }}: {{ $fiveVal -}}
- {{- else -}}
- {{- nindent 12 $fiveKey }}:
- {{- end -}}
- {{- end -}}
- {{- end -}}
- {{- end -}}
- {{- end -}}
- {{- end -}}
- {{- end -}}
- {{- end -}}
- {{- end -}}
- {{- end -}}
- {{- end -}}
- {{- end }}
|