Skip to content

Commit 833b018

Browse files
ivanmatmatioktalz
authored andcommitted
MINOR: switch default namespace to haproxy-controller in yaml files
1 parent 870dde5 commit 833b018

File tree

16 files changed

+46
-42
lines changed

16 files changed

+46
-42
lines changed

deploy/haproxy-ingress-daemonset.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ apiVersion: v1
99
kind: ServiceAccount
1010
metadata:
1111
name: haproxy-kubernetes-ingress
12-
namespace: default
12+
namespace: haproxy-controller
1313

1414
---
1515
kind: ClusterRole
@@ -83,22 +83,22 @@ kind: ClusterRoleBinding
8383
apiVersion: rbac.authorization.k8s.io/v1
8484
metadata:
8585
name: haproxy-kubernetes-ingress
86-
namespace: default
86+
namespace: haproxy-controller
8787
roleRef:
8888
apiGroup: rbac.authorization.k8s.io
8989
kind: ClusterRole
9090
name: haproxy-kubernetes-ingress
9191
subjects:
9292
- kind: ServiceAccount
9393
name: haproxy-kubernetes-ingress
94-
namespace: default
94+
namespace: haproxy-controller
9595

9696
---
9797
apiVersion: v1
9898
kind: ConfigMap
9999
metadata:
100100
name: haproxy-kubernetes-ingress
101-
namespace: default
101+
namespace: haproxy-controller
102102
data:
103103

104104
---
@@ -108,7 +108,7 @@ metadata:
108108
labels:
109109
run: ingress-default-backend
110110
name: haproxy-kubernetes-ingress-default-backend
111-
namespace: default
111+
namespace: haproxy-controller
112112
spec:
113113
replicas: 1
114114
selector:
@@ -132,7 +132,7 @@ metadata:
132132
labels:
133133
run: ingress-default-backend
134134
name: haproxy-kubernetes-ingress-default-backend
135-
namespace: default
135+
namespace: haproxy-controller
136136
spec:
137137
selector:
138138
run: ingress-default-backend
@@ -149,7 +149,7 @@ metadata:
149149
labels:
150150
run: haproxy-ingress
151151
name: haproxy-kubernetes-ingress
152-
namespace: default
152+
namespace: haproxy-controller
153153
spec:
154154
selector:
155155
matchLabels:
@@ -219,7 +219,7 @@ metadata:
219219
labels:
220220
run: haproxy-ingress
221221
name: haproxy-kubernetes-ingress
222-
namespace: default
222+
namespace: haproxy-controller
223223
spec:
224224
selector:
225225
run: haproxy-ingress

deploy/haproxy-ingress.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ apiVersion: v1
99
kind: ServiceAccount
1010
metadata:
1111
name: haproxy-kubernetes-ingress
12-
namespace: default
12+
namespace: haproxy-controller
1313

1414
---
1515
kind: ClusterRole
@@ -83,22 +83,22 @@ kind: ClusterRoleBinding
8383
apiVersion: rbac.authorization.k8s.io/v1
8484
metadata:
8585
name: haproxy-kubernetes-ingress
86-
namespace: default
86+
namespace: haproxy-controller
8787
roleRef:
8888
apiGroup: rbac.authorization.k8s.io
8989
kind: ClusterRole
9090
name: haproxy-kubernetes-ingress
9191
subjects:
9292
- kind: ServiceAccount
9393
name: haproxy-kubernetes-ingress
94-
namespace: default
94+
namespace: haproxy-controller
9595

9696
---
9797
apiVersion: v1
9898
kind: ConfigMap
9999
metadata:
100100
name: haproxy
101-
namespace: default
101+
namespace: haproxy-controller
102102
data:
103103

104104
---
@@ -108,7 +108,7 @@ metadata:
108108
labels:
109109
run: ingress-default-backend
110110
name: haproxy-kubernetes-ingress-default-backend
111-
namespace: default
111+
namespace: haproxy-controller
112112
spec:
113113
replicas: 1
114114
selector:
@@ -132,7 +132,7 @@ metadata:
132132
labels:
133133
run: ingress-default-backend
134134
name: haproxy-kubernetes-ingress-default-backend
135-
namespace: default
135+
namespace: haproxy-controller
136136
spec:
137137
selector:
138138
run: ingress-default-backend
@@ -149,7 +149,7 @@ metadata:
149149
labels:
150150
run: haproxy-ingress
151151
name: haproxy-kubernetes-ingress
152-
namespace: default
152+
namespace: haproxy-controller
153153
spec:
154154
replicas: 1
155155
selector:
@@ -217,7 +217,7 @@ metadata:
217217
labels:
218218
run: haproxy-ingress
219219
name: haproxy-kubernetes-ingress
220-
namespace: default
220+
namespace: haproxy-controller
221221
spec:
222222
selector:
223223
run: haproxy-ingress

deploy/tests/config/1.default-backend.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ metadata:
44
labels:
55
run: default-backend
66
name: haproxy-kubernetes-ingress-default-backend
7-
namespace: default
7+
namespace: haproxy-controller
88
spec:
99
replicas: 1
1010
selector:
@@ -14,7 +14,7 @@ spec:
1414
metadata:
1515
labels:
1616
run: default-backend
17-
namespace: default
17+
namespace: haproxy-controller
1818
spec:
1919
containers:
2020
- name: default-backend
@@ -28,7 +28,7 @@ metadata:
2828
labels:
2929
run: default-backend
3030
name: haproxy-kubernetes-ingress-default-backend
31-
namespace: default
31+
namespace: haproxy-controller
3232
spec:
3333
ports:
3434
- name: port-1

deploy/tests/config/2.rbac.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apiVersion: v1
33
kind: ServiceAccount
44
metadata:
55
name: haproxy-kubernetes-ingress
6-
namespace: default
6+
namespace: haproxy-controller
77
---
88
kind: ClusterRole
99
apiVersion: rbac.authorization.k8s.io/v1
@@ -88,12 +88,12 @@ kind: ClusterRoleBinding
8888
apiVersion: rbac.authorization.k8s.io/v1
8989
metadata:
9090
name: haproxy-kubernetes-ingress
91-
namespace: default
91+
namespace: haproxy-controller
9292
roleRef:
9393
apiGroup: rbac.authorization.k8s.io
9494
kind: ClusterRole
9595
name: haproxy-kubernetes-ingress
9696
subjects:
9797
- kind: ServiceAccount
9898
name: haproxy-kubernetes-ingress
99-
namespace: default
99+
namespace: haproxy-controller

deploy/tests/config/3.configmap.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v1
22
kind: ConfigMap
33
metadata:
44
name: haproxy-kubernetes-ingress
5-
namespace: default
5+
namespace: haproxy-controller
66
data:
77
global-config-snippet: |
88
stats socket 0.0.0.0:31024

deploy/tests/config/4.ingress-controller.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ metadata:
44
labels:
55
run: haproxy-ingress
66
name: haproxy-kubernetes-ingress
7-
namespace: default
7+
namespace: haproxy-controller
88
spec:
99
replicas: 1
1010
selector:
@@ -75,7 +75,7 @@ apiVersion: v1
7575
kind: Service
7676
metadata:
7777
name: haproxy-kubernetes-ingress
78-
namespace: default
78+
namespace: haproxy-controller
7979
spec:
8080
selector:
8181
run: haproxy-ingress

deploy/tests/create.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,13 @@ echo "wait --for=condition=ready ..."
4242
COUNTER=0
4343
while [ $COUNTER -lt 150 ]; do
4444
sleep 2
45-
kubectl get pods -n default --no-headers --selector=run=haproxy-ingress | awk '{print "default/haproxy-kubernetes-ingress " $3 " " $5}'
46-
result=$(kubectl get pods -n default --no-headers --selector=run=haproxy-ingress | awk '{print $3}')
45+
kubectl get pods -n haproxy-controller --no-headers --selector=run=haproxy-ingress | awk '{print "haproxy-controller/haproxy-kubernetes-ingress " $3 " " $5}'
46+
result=$(kubectl get pods -n haproxy-controller --no-headers --selector=run=haproxy-ingress | awk '{print $3}')
4747
if [ "$result" = "Running" ]; then
4848
COUNTER=151
4949
else
5050
COUNTER=`expr $COUNTER + 1`
5151
fi
5252
done
5353

54-
kubectl wait --for=condition=ready --timeout=10s pod -l run=haproxy-ingress -n default
54+
kubectl wait --for=condition=ready --timeout=10s pod -l run=haproxy-ingress -n haproxy-controller

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v1
22
kind: ConfigMap
33
metadata:
44
name: haproxy-kubernetes-ingress
5-
namespace: default
5+
namespace: haproxy-controller
66
data:
77
frontend-config-snippet: |
88
unique-id-format %{+X}o\ %ci:%cp_%fi:%fp_%Ts_%rt:%pid

deploy/tests/e2e/endpoints/config/tcp.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ apiVersion: v1
33
kind: ConfigMap
44
metadata:
55
name: haproxy-kubernetes-ingress-tcp
6-
namespace: default
6+
namespace: haproxy-controller
77
data:
88
32766: "e2e-tests-endpoints/http-echo:443"

deploy/tests/e2e/global-config/config/configmap-maxconn.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v1
22
kind: ConfigMap
33
metadata:
44
name: haproxy-kubernetes-ingress
5-
namespace: default
5+
namespace: haproxy-controller
66
data:
77
# Mandatory config
88
global-config-snippet: |

deploy/tests/e2e/global-config/config/configmap-pp-1.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: v1
22
kind: ConfigMap
33
metadata:
4-
name: haproxy-configmap
4+
name: haproxy-kubernetes-ingress
55
namespace: haproxy-controller
66
data:
77
# Mandatory config

deploy/tests/e2e/global-config/config/configmap-pp-2.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: v1
22
kind: ConfigMap
33
metadata:
4-
name: haproxy-configmap
4+
name: haproxy-kubernetes-ingress
55
namespace: haproxy-controller
66
data:
77
# Mandatory config

deploy/tests/e2e/global-config/suite_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ func (suite *GlobalConfigSuite) SetupSuite() {
3636
suite.NoError(err)
3737
}
3838

39+
func (suite *GlobalConfigSuite) TearDownSuite() {
40+
suite.test.TearDown()
41+
}
42+
3943
func TestGlobalConfigSuite(t *testing.T) {
4044
suite.Run(t, new(GlobalConfigSuite))
4145
}

deploy/tests/e2e/tls-auth/config/client-auth.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ kind: ConfigMap
33
apiVersion: v1
44
metadata:
55
name: haproxy-kubernetes-ingress
6-
namespace: default
6+
namespace: haproxy-controller
77
data:
88
ssl-certificate: e2e-tests-tls-auth/default-cert
99
client-ca: e2e-tests-tls-auth/client-ca

documentation/controller.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ apiVersion: v1
6666
kind: ConfigMap
6767
metadata:
6868
name: tcp
69-
namespace: default
69+
namespace: haproxy-controller
7070
data:
7171
3306: # Port where the frontend is going to listen to.
7272
mysql-ns/mysql:3306 # Kubernetes service in the format NS/ServiceName:ServicePort
@@ -104,7 +104,7 @@ apiVersion: v1
104104
kind: ConfigMap
105105
metadata:
106106
name: errorfile
107-
namespace: default
107+
namespace: haproxy-controller
108108
data:
109109
503: |-
110110
HTTP/1.0 503 Service Unavailable
@@ -162,7 +162,7 @@ apiVersion: v1
162162
kind: ConfigMap
163163
metadata:
164164
name: acls-patterns
165-
namespace: default
165+
namespace: haproxy-controller
166166
data:
167167
ips: |
168168
127.0.0.1

documentation/doc.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ image_arguments:
2020
kind: ConfigMap
2121
metadata:
2222
name: tcp
23-
namespace: default
23+
namespace: haproxy-controller
2424
data:
2525
3306: # Port where the frontend is going to listen to.
2626
mysql-ns/mysql:3306 # Kubernetes service in the format NS/ServiceName:ServicePort
@@ -46,7 +46,7 @@ image_arguments:
4646
kind: ConfigMap
4747
metadata:
4848
name: errorfile
49-
namespace: default
49+
namespace: haproxy-controller
5050
data:
5151
503: |-
5252
HTTP/1.0 503 Service Unavailable
@@ -94,7 +94,7 @@ image_arguments:
9494
kind: ConfigMap
9595
metadata:
9696
name: acls-patterns
97-
namespace: default
97+
namespace: haproxy-controller
9898
data:
9999
ips: |
100100
127.0.0.1
@@ -138,7 +138,7 @@ image_arguments:
138138
- argument: --ingress.class
139139
description: A name to assign to the ingress controller so that Ingress objects can target it apart from other running ingress controllers.
140140
tip:
141-
- In kubernetes 1.18+, a new `IngressClass` resource can be referenced by Ingress objects to target an Ingress Controller.
141+
- In kubernetes 1.18+, a new `IngressClass` resource can be referenced by Ingress objects to target an Ingress Controller.
142142
More details can be found in the [IngressClass doc entry](./ingressclass.md).
143143
values:
144144
- The name of the ingress class
@@ -933,7 +933,7 @@ annotations:
933933
description:
934934
- Identifies the ingress controller to be used. If this value is the same as the [--ingress.class](./controller.md#--ingressclass) controller arg, the ingress resource will be processed.
935935
tip:
936-
- In kubernetes 1.18+, a new `IngressClass` resource can be referenced by Ingress objects to target an Ingress Controller.
936+
- In kubernetes 1.18+, a new `IngressClass` resource can be referenced by Ingress objects to target an Ingress Controller.
937937
More details can be found in the [IngressClass doc entry](./ingressclass.md).
938938
- In case both `ingress.class` annotation and `ingressClassName` are used, `ingress.class` will have precedence.
939939
values:

0 commit comments

Comments
 (0)