File tree Expand file tree Collapse file tree
pkg/i2gw/implementations/kgateway/testing/testdata Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4545 path : /
4646 pathType : Prefix
4747---
48+ apiVersion : networking.k8s.io/v1
49+ kind : Ingress
50+ metadata :
51+ annotations :
52+ ingress2gateway.kubernetes.io/implementation : kgateway
53+ nginx.ingress.kubernetes.io/auth-type : " basic"
54+ nginx.ingress.kubernetes.io/auth-secret : " auth-map-secret"
55+ nginx.ingress.kubernetes.io/auth-secret-type : " auth-map"
56+ name : ingress-basic-auth-map
57+ namespace : default
58+ spec :
59+ ingressClassName : nginx
60+ rules :
61+ - host : app3.example.org
62+ http :
63+ paths :
64+ - backend :
65+ service :
66+ name : app3
67+ port :
68+ number : 80
69+ path : /
70+ pathType : Prefix
71+
Original file line number Diff line number Diff line change 1616 name : app2-example-org-http
1717 port : 80
1818 protocol : HTTP
19+ - hostname : app3.example.org
20+ name : app3-example-org-http
21+ port : 80
22+ protocol : HTTP
1923status : {}
2024---
2125apiVersion : gateway.networking.k8s.io/v1
6468status :
6569 parents : []
6670---
71+ apiVersion : gateway.networking.k8s.io/v1
72+ kind : HTTPRoute
73+ metadata :
74+ annotations :
75+ gateway.networking.k8s.io/generator : ingress2gateway-dev
76+ name : ingress-basic-auth-map-app3-example-org
77+ namespace : default
78+ spec :
79+ hostnames :
80+ - app3.example.org
81+ parentRefs :
82+ - name : nginx
83+ rules :
84+ - backendRefs :
85+ - name : app3
86+ port : 80
87+ matches :
88+ - path :
89+ type : PathPrefix
90+ value : /
91+ status :
92+ parents : []
93+ ---
6794apiVersion : gateway.kgateway.dev/v1alpha1
6895kind : TrafficPolicy
6996metadata :
@@ -97,3 +124,19 @@ spec:
97124 name : ingress-basic-auth-file-explicit-app2-example-org
98125status :
99126 ancestors : null
127+ ---
128+ apiVersion : gateway.kgateway.dev/v1alpha1
129+ kind : TrafficPolicy
130+ metadata :
131+ name : ingress-basic-auth-map
132+ namespace : default
133+ spec :
134+ basicAuth :
135+ secretRef :
136+ name : auth-map-secret
137+ targetRefs :
138+ - group : gateway.networking.k8s.io
139+ kind : HTTPRoute
140+ name : ingress-basic-auth-map-app3-example-org
141+ status :
142+ ancestors : null
You can’t perform that action at this time.
0 commit comments