-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't reload when
use-cluster-ip
endpoints update, and change the i…
…ngress `use-cluster-ip` implementation to use the cluster ip instead of the fqdn (#5318) * change use-cluster-ip implementation to use the cluster ip instead of fqdn, don't relaod when use-cluster-ip endpoints update * Update controller.go * Fix vs use cluster ip test * move assert function to custom_assertions.py
- Loading branch information
Jim Ryan
committed
Apr 29, 2024
1 parent
3b191c7
commit 5fe171f
Showing
10 changed files
with
366 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
tests/data/use-cluster-ip/ingress/mergeable/minion-ingress.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
apiVersion: networking.k8s.io/v1 | ||
kind: Ingress | ||
metadata: | ||
name: use-cluster-ip-ingress-minion | ||
annotations: | ||
nginx.org/use-cluster-ip: "true" | ||
nginx.org/mergeable-ingress-type: "minion" | ||
spec: | ||
ingressClassName: nginx | ||
rules: | ||
- host: use-cluster-ip.example.com | ||
http: | ||
paths: | ||
- path: /backend1 | ||
pathType: Prefix | ||
backend: | ||
service: | ||
name: backend1-svc | ||
port: | ||
number: 80 |
10 changes: 10 additions & 0 deletions
10
tests/data/use-cluster-ip/ingress/mergeable/use-cluster-ip-ingress.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
apiVersion: networking.k8s.io/v1 | ||
kind: Ingress | ||
metadata: | ||
annotations: | ||
nginx.org/mergeable-ingress-type: "master" | ||
name: use-cluster-ip-ingress-master | ||
spec: | ||
ingressClassName: nginx | ||
rules: | ||
- host: use-cluster-ip.example.com |
19 changes: 19 additions & 0 deletions
19
tests/data/use-cluster-ip/ingress/standard/use-cluster-ip-ingress.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
apiVersion: networking.k8s.io/v1 | ||
kind: Ingress | ||
metadata: | ||
annotations: | ||
nginx.org/use-cluster-ip: "true" | ||
name: use-cluster-ip-ingress | ||
spec: | ||
ingressClassName: nginx | ||
rules: | ||
- host: use-cluster-ip.example.com | ||
http: | ||
paths: | ||
- path: /backend1 | ||
pathType: Prefix | ||
backend: | ||
service: | ||
name: backend1-svc | ||
port: | ||
number: 80 |
21 changes: 21 additions & 0 deletions
21
tests/data/virtual-server-use-cluster-ip/standard/virtual-server.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
apiVersion: k8s.nginx.org/v1 | ||
kind: VirtualServer | ||
metadata: | ||
name: virtual-server | ||
spec: | ||
host: virtual-server.example.com | ||
upstreams: | ||
- name: backend1 | ||
service: backend1-svc | ||
port: 80 | ||
use-cluster-ip: true | ||
- name: backend2 | ||
service: backend2-svc | ||
port: 80 | ||
routes: | ||
- path: "/backend1" | ||
action: | ||
pass: backend1 | ||
- path: "/backend2" | ||
action: | ||
pass: backend2 |
Oops, something went wrong.