Skip to content

Commit 8af4a71

Browse files
authored
Updated default ingress from current Driver (#167)
2 parents e508536 + 8325864 commit 8af4a71

2 files changed

Lines changed: 16 additions & 5 deletions

File tree

resource-definitions/template-driver/ingress/ingress-default.tf

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff 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:

resource-definitions/template-driver/ingress/ingress-default.yaml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff 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-

0 commit comments

Comments
 (0)