Skip to content

Commit

Permalink
[flant] move ingressClass definition from anno to spec
Browse files Browse the repository at this point in the history
  • Loading branch information
aamorozovv authored and alexey-igrychev committed Nov 22, 2024
1 parent 6aa8790 commit 9836157
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/.helm/templates/20-ingress-tuf-router.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ kind: Ingress
metadata:
name: tuf-router
annotations:
kubernetes.io/ingress.class: "nginx"
spec:
ingressClassName: nginx
tls:
- hosts:
- {{ $host }}
Expand Down
4 changes: 2 additions & 2 deletions docs/.helm/templates/20-ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ kind: Ingress
metadata:
name: {{ .Chart.Name }}
annotations:
kubernetes.io/ingress.class: "nginx"
nginx.ingress.kubernetes.io/configuration-snippet: |
{{- if eq .Values.global.env "production" }}
nginx.ingress.kubernetes.io/from-to-www-redirect: "true"
Expand All @@ -14,6 +13,7 @@ metadata:
nginx.ingress.kubernetes.io/auth-response-headers: X-Auth-Request-User,X-Auth-Request-Email
{{- end }}
spec:
ingressClassName: nginx
tls:
- hosts:
- {{ $host }}
Expand All @@ -38,7 +38,6 @@ kind: Ingress
metadata:
name: {{ .Chart.Name }}-ru
annotations:
kubernetes.io/ingress.class: "nginx"
nginx.ingress.kubernetes.io/configuration-snippet: |
{{- if eq .Values.global.env "production" }}
nginx.ingress.kubernetes.io/from-to-www-redirect: "true"
Expand All @@ -48,6 +47,7 @@ metadata:
nginx.ingress.kubernetes.io/auth-response-headers: X-Auth-Request-User,X-Auth-Request-Email
{{- end }}
spec:
ingressClassName: nginx
tls:
- hosts:
- ru.{{ $host }}
Expand Down

0 comments on commit 9836157

Please sign in to comment.