Update ingress

This commit is contained in:
Nikolai Rodionov 2024-07-15 07:47:25 +02:00
parent 90c42c6d18
commit ee52250090
Signed by: allanger
GPG Key ID: 0AA46A90E25592AD
2 changed files with 4 additions and 2 deletions

View File

@ -13,7 +13,8 @@ kind: Secret
stringData: stringData:
{{- end }} {{- end }}
{{- with $v.data }} {{- with $v.data }}
{{ toYaml . | indent 2}} {{- range $k, $v := $v.data }}
{{ $k }}: {{ $v | quote }}
{{- end }} {{- end }}
{{- end }} {{- end }}
{{- end -}} {{- end -}}

View File

@ -17,11 +17,12 @@ metadata:
{{- include "lib.metadata" (dict "Context" $ "customName" $customName "annotations" $v.annotations)}} {{- include "lib.metadata" (dict "Context" $ "customName" $customName "annotations" $v.annotations)}}
spec: spec:
ingressClassName: {{ $v.class }} ingressClassName: {{ $v.class }}
rules:
{{- with $v.rules }} {{- with $v.rules }}
rules:
{{- tpl ( . | toYaml | nindent 4 | toString) $ }} {{- tpl ( . | toYaml | nindent 4 | toString) $ }}
{{- end }} {{- end }}
{{- with $v.tls }} {{- with $v.tls }}
tls:
{{- tpl ( . | toYaml | nindent 4 | toString) $ }} {{- tpl ( . | toYaml | nindent 4 | toString) $ }}
{{- end }} {{- end }}
{{- end }} {{- end }}