Skip to content

Commit df3d1df

Browse files
committed
CLEANUP/MINOR: format test yaml files
1 parent 165e000 commit df3d1df

File tree

5 files changed

+173
-173
lines changed

5 files changed

+173
-173
lines changed

deploy/tests/config/0.namespace.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
apiVersion: v1
33
kind: Namespace
44
metadata:
5-
name: haproxy-controller
5+
name: haproxy-controller

deploy/tests/config/1.rbac.yaml

Lines changed: 79 additions & 79 deletions
Original file line numberDiff line numberDiff line change
@@ -2,87 +2,87 @@
22
apiVersion: v1
33
kind: ServiceAccount
44
metadata:
5-
name: haproxy-kubernetes-ingress
6-
namespace: haproxy-controller
5+
name: haproxy-kubernetes-ingress
6+
namespace: haproxy-controller
77
---
88
kind: ClusterRole
99
apiVersion: rbac.authorization.k8s.io/v1
1010
metadata:
11-
name: haproxy-kubernetes-ingress
11+
name: haproxy-kubernetes-ingress
1212
rules:
13-
- apiGroups:
14-
- ""
15-
resources:
16-
- configmaps
17-
- endpoints
18-
- nodes
19-
- pods
20-
- services
21-
- namespaces
22-
- events
23-
- serviceaccounts
24-
verbs:
25-
- get
26-
- list
27-
- watch
28-
- create
29-
- patch
30-
- update
31-
- apiGroups:
32-
- "extensions"
33-
- "networking.k8s.io"
34-
resources:
35-
- ingresses
36-
- ingresses/status
37-
- ingressclasses
38-
verbs:
39-
- get
40-
- list
41-
- watch
42-
- apiGroups:
43-
- "extensions"
44-
- "networking.k8s.io"
45-
resources:
46-
- ingresses/status
47-
verbs:
48-
- update
49-
- apiGroups:
50-
- ""
51-
resources:
52-
- secrets
53-
verbs:
54-
- get
55-
- list
56-
- watch
57-
- create
58-
- patch
59-
- update
60-
- apiGroups:
61-
- extensions
62-
resources:
63-
- ingresses
64-
verbs:
65-
- get
66-
- list
67-
- watch
68-
- update
69-
- apiGroups:
70-
- core.haproxy.org
71-
resources:
72-
- '*'
73-
verbs:
74-
- get
75-
- list
76-
- watch
77-
- update
78-
- apiGroups:
79-
- "discovery.k8s.io"
80-
resources:
81-
- endpointslices
82-
verbs:
83-
- get
84-
- list
85-
- watch
13+
- apiGroups:
14+
- ""
15+
resources:
16+
- configmaps
17+
- endpoints
18+
- nodes
19+
- pods
20+
- services
21+
- namespaces
22+
- events
23+
- serviceaccounts
24+
verbs:
25+
- get
26+
- list
27+
- watch
28+
- create
29+
- patch
30+
- update
31+
- apiGroups:
32+
- "extensions"
33+
- "networking.k8s.io"
34+
resources:
35+
- ingresses
36+
- ingresses/status
37+
- ingressclasses
38+
verbs:
39+
- get
40+
- list
41+
- watch
42+
- apiGroups:
43+
- "extensions"
44+
- "networking.k8s.io"
45+
resources:
46+
- ingresses/status
47+
verbs:
48+
- update
49+
- apiGroups:
50+
- ""
51+
resources:
52+
- secrets
53+
verbs:
54+
- get
55+
- list
56+
- watch
57+
- create
58+
- patch
59+
- update
60+
- apiGroups:
61+
- extensions
62+
resources:
63+
- ingresses
64+
verbs:
65+
- get
66+
- list
67+
- watch
68+
- update
69+
- apiGroups:
70+
- core.haproxy.org
71+
resources:
72+
- "*"
73+
verbs:
74+
- get
75+
- list
76+
- watch
77+
- update
78+
- apiGroups:
79+
- "discovery.k8s.io"
80+
resources:
81+
- endpointslices
82+
verbs:
83+
- get
84+
- list
85+
- watch
8686
---
8787
kind: ClusterRoleBinding
8888
apiVersion: rbac.authorization.k8s.io/v1
@@ -94,6 +94,6 @@ roleRef:
9494
kind: ClusterRole
9595
name: haproxy-kubernetes-ingress
9696
subjects:
97-
- kind: ServiceAccount
98-
name: haproxy-kubernetes-ingress
99-
namespace: haproxy-controller
97+
- kind: ServiceAccount
98+
name: haproxy-kubernetes-ingress
99+
namespace: haproxy-controller

deploy/tests/config/2.configmap.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
apiVersion: v1
22
kind: ConfigMap
33
metadata:
4-
name: haproxy-kubernetes-ingress
5-
namespace: haproxy-controller
4+
name: haproxy-kubernetes-ingress
5+
namespace: haproxy-controller
66
data:
77
global-config-snippet: |
88
stats socket 0.0.0.0:31024
Lines changed: 80 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -1,65 +1,65 @@
11
apiVersion: apps/v1
22
kind: Deployment
33
metadata:
4-
labels:
5-
run: haproxy-ingress
6-
name: haproxy-kubernetes-ingress
7-
namespace: haproxy-controller
4+
labels:
5+
run: haproxy-ingress
6+
name: haproxy-kubernetes-ingress
7+
namespace: haproxy-controller
88
spec:
9-
replicas: 1
10-
selector:
11-
matchLabels:
12-
run: haproxy-ingress
13-
template:
14-
metadata:
15-
labels:
16-
run: haproxy-ingress
17-
spec:
18-
serviceAccountName: haproxy-kubernetes-ingress
19-
containers:
20-
- name: haproxy-ingress
21-
image: haproxytech/kubernetes-ingress:latest
22-
imagePullPolicy: Never
23-
resources:
24-
limits:
25-
memory: 512Mi
26-
requests:
27-
memory: 256Mi
28-
args:
29-
- --configmap=$(POD_NAMESPACE)/haproxy-kubernetes-ingress
30-
- --configmap-tcp-services=$(POD_NAMESPACE)/haproxy-kubernetes-ingress-tcp
31-
- --configmap-errorfiles=$(POD_NAMESPACE)/errorfiles
32-
- --configmap-patternfiles=$(POD_NAMESPACE)/patternfiles
33-
- --ingress.class=haproxy
34-
- --sync-period=1s
35-
securityContext:
36-
runAsUser: 1000
37-
runAsGroup: 1000
38-
capabilities:
39-
drop:
40-
- ALL
41-
add:
42-
- NET_BIND_SERVICE
43-
ports:
44-
- name: http
45-
containerPort: 80
46-
- name: https
47-
containerPort: 443
48-
- name: stat
49-
containerPort: 31024
50-
- name: tcp1
51-
containerPort: 32766
52-
- name: tcp2
53-
containerPort: 32767
54-
env:
55-
- name: POD_NAME
56-
valueFrom:
57-
fieldRef:
58-
fieldPath: metadata.name
59-
- name: POD_NAMESPACE
60-
valueFrom:
61-
fieldRef:
62-
fieldPath: metadata.namespace
9+
replicas: 1
10+
selector:
11+
matchLabels:
12+
run: haproxy-ingress
13+
template:
14+
metadata:
15+
labels:
16+
run: haproxy-ingress
17+
spec:
18+
serviceAccountName: haproxy-kubernetes-ingress
19+
containers:
20+
- name: haproxy-ingress
21+
image: haproxytech/kubernetes-ingress:latest
22+
imagePullPolicy: Never
23+
resources:
24+
limits:
25+
memory: 512Mi
26+
requests:
27+
memory: 256Mi
28+
args:
29+
- --configmap=$(POD_NAMESPACE)/haproxy-kubernetes-ingress
30+
- --configmap-tcp-services=$(POD_NAMESPACE)/haproxy-kubernetes-ingress-tcp
31+
- --configmap-errorfiles=$(POD_NAMESPACE)/errorfiles
32+
- --configmap-patternfiles=$(POD_NAMESPACE)/patternfiles
33+
- --ingress.class=haproxy
34+
- --sync-period=1s
35+
securityContext:
36+
runAsUser: 1000
37+
runAsGroup: 1000
38+
capabilities:
39+
drop:
40+
- ALL
41+
add:
42+
- NET_BIND_SERVICE
43+
ports:
44+
- name: http
45+
containerPort: 80
46+
- name: https
47+
containerPort: 443
48+
- name: stat
49+
containerPort: 31024
50+
- name: tcp1
51+
containerPort: 32766
52+
- name: tcp2
53+
containerPort: 32767
54+
env:
55+
- name: POD_NAME
56+
valueFrom:
57+
fieldRef:
58+
fieldPath: metadata.name
59+
- name: POD_NAMESPACE
60+
valueFrom:
61+
fieldRef:
62+
fieldPath: metadata.namespace
6363
---
6464
apiVersion: v1
6565
kind: Service
@@ -71,25 +71,25 @@ spec:
7171
run: haproxy-ingress
7272
type: NodePort
7373
ports:
74-
- name: http
75-
port: 80
76-
targetPort: 80
77-
nodePort: 30080
78-
protocol: TCP
79-
- name: https
80-
port: 443
81-
targetPort: 443
82-
nodePort: 30443
83-
protocol: TCP
84-
- name: stat
85-
port: 31024
86-
targetPort: 31024
87-
nodePort: 31024
88-
- name: tcp1
89-
port: 32766
90-
targetPort: 32766
91-
nodePort: 32766
92-
- name: tcp2
93-
port: 32767
94-
targetPort: 32767
95-
nodePort: 32767
74+
- name: http
75+
port: 80
76+
targetPort: 80
77+
nodePort: 30080
78+
protocol: TCP
79+
- name: https
80+
port: 443
81+
targetPort: 443
82+
nodePort: 30443
83+
protocol: TCP
84+
- name: stat
85+
port: 31024
86+
targetPort: 31024
87+
nodePort: 31024
88+
- name: tcp1
89+
port: 32766
90+
targetPort: 32766
91+
nodePort: 32766
92+
- name: tcp2
93+
port: 32767
94+
targetPort: 32767
95+
nodePort: 32767

deploy/tests/config/echo-app.yaml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ spec:
1414
spec:
1515
containers:
1616
- name: http-echo
17-
image: 'haproxytech/http-echo:latest'
17+
image: "haproxytech/http-echo:latest"
1818
imagePullPolicy: Never
1919
ports:
2020
- name: http
@@ -49,13 +49,13 @@ metadata:
4949
ingress.class: haproxy
5050
spec:
5151
rules:
52-
- host: "echo.haproxy.local"
53-
http:
54-
paths:
55-
- path: /
56-
pathType: Prefix
57-
backend:
58-
service:
59-
name: http-echo
60-
port:
61-
name: http
52+
- host: "echo.haproxy.local"
53+
http:
54+
paths:
55+
- path: /
56+
pathType: Prefix
57+
backend:
58+
service:
59+
name: http-echo
60+
port:
61+
name: http

0 commit comments

Comments
 (0)