Skip to content

Commit 884f265

Browse files
committed
add redirect for the old teams url
1 parent 8112c70 commit 884f265

File tree

3 files changed

+28
-0
lines changed

3 files changed

+28
-0
lines changed

charts/Feature.yaml

+6
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ values:
77
template: '{{ subdomain . "console" }}'
88
config:
99
type: string
10+
teamsHost:
11+
displayName: host for the old teams frontend, used to set up redirect
12+
computed:
13+
template: '{{ subdomain . "teams" }}'
14+
config:
15+
type: string
1016
tenantDomain:
1117
computed:
1218
template: '{{ subdomain . "" }}'

charts/templates/ingress.yaml

+21
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,24 @@ spec:
1818
number: 80
1919
path: /
2020
pathType: Prefix
21+
---
22+
apiVersion: networking.k8s.io/v1
23+
kind: Ingress
24+
metadata:
25+
name: '{{ .Release.Name }}'-teams-redirect
26+
namespace: nais-system
27+
annotations:
28+
nginx.ingress.kubernetes.io/temporal-redirect: "https://{{ .Values.host }}"
29+
spec:
30+
ingressClassName: nais-ingress
31+
rules:
32+
- host: '{{ .Values.teamsHost }}'
33+
http:
34+
paths:
35+
- backend:
36+
service:
37+
name: '{{ .Release.Name }}'
38+
port:
39+
number: 80
40+
path: /
41+
pathType: Prefix

charts/values.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ image:
22
repository: europe-north1-docker.pkg.dev/nais-io/nais/images
33
name: console-frontend
44
host: ''
5+
teamsHost: ''
56
tenantDomain: ''

0 commit comments

Comments
 (0)