Skip to content

Commit 7695a38

Browse files
hdurand0710oktalz
authored andcommitted
MEDIUM: remove support for ingress.class annotation
In favor of .spec.ingressClassName
1 parent b5c9afa commit 7695a38

File tree

43 files changed

+159
-131
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+159
-131
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
kind: IngressClass
2+
apiVersion: networking.k8s.io/v1
3+
metadata:
4+
name: haproxy
5+
spec:
6+
controller: haproxy.org/ingress-controller/haproxy

deploy/tests/config/echo-app.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,8 @@ kind: Ingress
4545
apiVersion: networking.k8s.io/v1
4646
metadata:
4747
name: http-echo
48-
annotations:
49-
ingress.class: haproxy
5048
spec:
49+
ingressClassName: haproxy
5150
rules:
5251
- host: "echo.haproxy.local"
5352
http:

deploy/tests/create.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ if [ "$EXPERIMENTAL_GWAPI" = "1" ]; then
9191
printf %80s |tr " " "="; echo ""
9292
fi
9393
kubectl apply -f $DIR/config/2.configmap.yaml
94+
kubectl apply -f $DIR/config/2.2.ingressclass.yaml
95+
9496
if [ "$EXPERIMENTAL_GWAPI" = "1" ]; then
9597
echo "Adding gateway-controller-name to IC config"
9698
cat deploy/tests/config/3.ingress-controller.yaml | sed 's#ingress.class=haproxy#&\n - --gateway-controller-name=haproxy.org/gateway-controller#g' | kubectl apply -f -

deploy/tests/e2e/access-control/config/deploy.yaml.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,11 @@ apiVersion: networking.k8s.io/v1
5050
metadata:
5151
name: http-echo
5252
annotations:
53-
ingress.class: haproxy
5453
{{range .IngAnnotations}}
5554
{{ .Key }}: {{ .Value }}
5655
{{end}}
5756
spec:
57+
ingressClassName: haproxy
5858
rules:
5959
- host: {{ .Host }}
6060
http:

deploy/tests/e2e/basic-auth/config/deploy.yaml.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ metadata:
6464
annotations:
6565
auth-secret: basic-auth
6666
auth-type: basic-auth
67-
ingress.class: haproxy
6867
spec:
68+
ingressClassName: haproxy
6969
rules:
7070
- host: {{ .Host }}
7171
http:

deploy/tests/e2e/canary-deployment/config/deploy.yaml.tmpl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,8 @@ kind: Ingress
8787
apiVersion: networking.k8s.io/v1
8888
metadata:
8989
name: http-echo
90-
annotations:
91-
ingress.class: haproxy
9290
spec:
91+
ingressClassName: haproxy
9392
rules:
9493
- host: {{ .Host }}
9594
http:

deploy/tests/e2e/config-snippet/config/deploy.yaml.tmpl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,8 @@ kind: Ingress
4848
apiVersion: networking.k8s.io/v1
4949
metadata:
5050
name: http-echo
51-
annotations:
52-
ingress.class: haproxy
5351
spec:
52+
ingressClassName: haproxy
5453
rules:
5554
- host: {{ .Host }}
5655
http:

deploy/tests/e2e/cookie-persistence/config/deploy.yml.tmpl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,13 @@ apiVersion: networking.k8s.io/v1
4646
metadata:
4747
name: http-echo
4848
annotations:
49-
ingress.class: haproxy
5049
{{ if .CookiePersistenceDynamic }}
5150
cookie-persistence: "mycookie"
5251
{{ else if .CookiePersistenceNoDynamic }}
5352
cookie-persistence-no-dynamic: "mycookie"
5453
{{ end }}
55-
5654
spec:
55+
ingressClassName: haproxy
5756
rules:
5857
- host: {{ .Host }}
5958
http:

deploy/tests/e2e/cors/config/deploy.yaml.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,11 @@ apiVersion: networking.k8s.io/v1
5050
metadata:
5151
name: http-echo
5252
annotations:
53-
ingress.class: haproxy
5453
{{range .IngAnnotations}}
5554
{{ .Key }}: {{ .Value }}
5655
{{end}}
5756
spec:
57+
ingressClassName: haproxy
5858
rules:
5959
- host: {{ .Host }}
6060
http:

deploy/tests/e2e/crd/config/ingress.yaml.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ apiVersion: networking.k8s.io/v1
44
metadata:
55
name: http-echo
66
annotations:
7-
ingress.class: haproxy
87
{{- range .IngAnnotations}}
98
{{ .Key }}: "{{ .Value }}"
109
{{- end}}
1110
spec:
11+
ingressClassName: haproxy
1212
rules:
1313
- host: {{ .Host }}
1414
http:

0 commit comments

Comments
 (0)