Skip to content

Commit 4457df1

Browse files
committed
chore: yaml lint files
Signed-off-by: ashing <[email protected]>
1 parent 4ee2596 commit 4457df1

File tree

6 files changed

+52
-52
lines changed

6 files changed

+52
-52
lines changed

examples/httpbin/deployment.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ spec:
4848
selector:
4949
app: httpbin-deployment
5050
ports:
51-
- name: http
52-
port: 80
53-
protocol: TCP
54-
targetPort: 80
51+
- name: http
52+
port: 80
53+
protocol: TCP
54+
targetPort: 80
5555
type: ClusterIP

examples/httpbin/httproute.yaml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ spec:
1616
type: ControlPlane
1717
controlPlane:
1818
endpoints:
19-
- ${ADMIN_ENDPOINT} # https://127.0.0.1:7443
19+
- ${ADMIN_ENDPOINT} # https://127.0.0.1:7443
2020
auth:
2121
type: AdminKey
2222
adminKey:
@@ -31,9 +31,9 @@ metadata:
3131
spec:
3232
gatewayClassName: apisix
3333
listeners:
34-
- name: http
35-
protocol: HTTP
36-
port: 80
34+
- name: http
35+
protocol: HTTP
36+
port: 80
3737
infrastructure:
3838
parametersRef:
3939
group: apisix.apache.org
@@ -48,14 +48,14 @@ metadata:
4848
name: httpbin
4949
spec:
5050
parentRefs:
51-
- name: apisix
51+
- name: apisix
5252
hostnames:
53-
- httpbin.example.com
53+
- httpbin.example.com
5454
rules:
55-
- matches:
56-
- path:
57-
type: PathPrefix
58-
value: /*
59-
backendRefs:
60-
- name: httpbin
61-
port: 80
55+
- matches:
56+
- path:
57+
type: PathPrefix
58+
value: /*
59+
backendRefs:
60+
- name: httpbin
61+
port: 80

examples/httpbin/ingress.yaml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ spec:
88
type: ControlPlane
99
controlPlane:
1010
endpoints:
11-
- ${ADMIN_ENDPOINT} # https://127.0.0.1:7443
11+
- ${ADMIN_ENDPOINT} # https://127.0.0.1:7443
1212
auth:
1313
type: AdminKey
1414
adminKey:
@@ -38,13 +38,13 @@ metadata:
3838
spec:
3939
ingressClassName: apisix
4040
rules:
41-
- host: httpbin.example.com
42-
http:
43-
paths:
44-
- path: /
45-
pathType: Prefix
46-
backend:
47-
service:
48-
name: httpbin
49-
port:
50-
number: 80
41+
- host: httpbin.example.com
42+
http:
43+
paths:
44+
- path: /
45+
pathType: Prefix
46+
backend:
47+
service:
48+
name: httpbin
49+
port:
50+
number: 80

examples/httpbin/quickstart.yaml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,13 @@ spec:
4848
selector:
4949
app: httpbin-deployment
5050
ports:
51-
- name: http
52-
port: 80
53-
protocol: TCP
54-
targetPort: 80
51+
- name: http
52+
port: 80
53+
protocol: TCP
54+
targetPort: 80
5555
type: ClusterIP
5656

57-
---
57+
---
5858

5959
apiVersion: gateway.networking.k8s.io/v1
6060
kind: GatewayClass
@@ -74,7 +74,7 @@ spec:
7474
type: ControlPlane
7575
controlPlane:
7676
endpoints:
77-
- ${ADMIN_ENDPOINT} # https://127.0.0.1:7443
77+
- ${ADMIN_ENDPOINT} # https://127.0.0.1:7443
7878
auth:
7979
type: AdminKey
8080
adminKey:
@@ -89,9 +89,9 @@ metadata:
8989
spec:
9090
gatewayClassName: apisix
9191
listeners:
92-
- name: http
93-
protocol: HTTP
94-
port: 80
92+
- name: http
93+
protocol: HTTP
94+
port: 80
9595
infrastructure:
9696
parametersRef:
9797
group: apisix.apache.org
@@ -106,14 +106,14 @@ metadata:
106106
name: httpbin
107107
spec:
108108
parentRefs:
109-
- name: apisix
109+
- name: apisix
110110
hostnames:
111-
- httpbin.example.com
111+
- httpbin.example.com
112112
rules:
113-
- matches:
114-
- path:
115-
type: PathPrefix
116-
value: /*
117-
backendRefs:
118-
- name: httpbin
119-
port: 80
113+
- matches:
114+
- path:
115+
type: PathPrefix
116+
value: /*
117+
backendRefs:
118+
- name: httpbin
119+
port: 80

examples/httpbin/service-rewrite-host.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ metadata:
44
name: httpbin
55
spec:
66
targetRefs:
7-
- name: httpbin
8-
kind: Service
9-
group: ""
7+
- name: httpbin
8+
kind: Service
9+
group: ""
1010
passHost: rewrite
1111
upstreamHost: httpbin.example.com

examples/httpbin/service-timeout.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ metadata:
44
name: httpbin
55
spec:
66
targetRefs:
7-
- name: httpbin
8-
kind: Service
9-
group: ""
7+
- name: httpbin
8+
kind: Service
9+
group: ""
1010
timeout:
1111
send: 10s
1212
read: 10s

0 commit comments

Comments
 (0)