File tree Expand file tree Collapse file tree
resource-definitions/template-driver/ingress Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,10 +18,16 @@ ingress.yaml:
1818 kind: Ingress
1919 metadata:
2020 {{- if hasKey .driver.values "annotations" }}
21- annotations: {{ .driver.values.annotations | toRawJson }}
21+ annotations:
22+ {{- range $k, $v := .driver.values.annotations }}
23+ {{ $k | toRawJson }}: {{ $v | toRawJson }}
24+ {{- end}}
2225 {{- end}}
2326 {{- if hasKey .driver.values "labels" }}
24- labels: {{ .driver.values.labels | toRawJson }}
27+ labels:
28+ {{- range $k, $v := .driver.values.labels }}
29+ {{ $k | toRawJson }}: {{ $v | toRawJson }}
30+ {{- end}}
2531 {{- end}}
2632 name: {{ .id }}-ingress
2733 spec:
Original file line number Diff line number Diff line change @@ -22,10 +22,16 @@ entity:
2222 kind: Ingress
2323 metadata:
2424 {{- if hasKey .driver.values "annotations" }}
25- annotations: {{ .driver.values.annotations | toRawJson }}
25+ annotations:
26+ {{- range $k, $v := .driver.values.annotations }}
27+ {{ $k | toRawJson }}: {{ $v | toRawJson }}
28+ {{- end}}
2629 {{- end}}
2730 {{- if hasKey .driver.values "labels" }}
28- labels: {{ .driver.values.labels | toRawJson }}
31+ labels:
32+ {{- range $k, $v := .driver.values.labels }}
33+ {{ $k | toRawJson }}: {{ $v | toRawJson }}
34+ {{- end}}
2935 {{- end}}
3036 name: {{ .id }}-ingress
3137 spec:
@@ -79,4 +85,3 @@ entity:
7985 # class: nginx
8086 # labels: {}
8187 # path_type: Prefix
82-
You can’t perform that action at this time.
0 commit comments