Skip to content

Commit 238df89

Browse files
petuominMo3m3n
authored andcommitted
TEST/MINOR: Set max-endpoints-per-slice to 5 for easier testing of slices
This creates multiple endpoint slices for the e2e test with 8 endpoints. Add endpointSlice related permissions to test environment
1 parent 8d9e683 commit 238df89

File tree

3 files changed

+20
-0
lines changed

3 files changed

+20
-0
lines changed

.gitlab/kind-config.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,9 @@ nodes:
2828
containerPort: 32766
2929
- hostPort: 32767
3030
containerPort: 32767
31+
kubeadmConfigPatches:
32+
- |
33+
kind: ClusterConfiguration
34+
controllerManager:
35+
extraArgs:
36+
max-endpoints-per-slice: "5"

deploy/tests/config/2.rbac.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,14 @@ rules:
7575
- list
7676
- watch
7777
- update
78+
- apiGroups:
79+
- "discovery.k8s.io"
80+
resources:
81+
- endpointslices
82+
verbs:
83+
- get
84+
- list
85+
- watch
7886
---
7987
kind: ClusterRoleBinding
8088
apiVersion: rbac.authorization.k8s.io/v1

deploy/tests/kind-config.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,9 @@ nodes:
1919
containerPort: 32766
2020
- hostPort: 32767
2121
containerPort: 32767
22+
kubeadmConfigPatches:
23+
- |
24+
kind: ClusterConfiguration
25+
controllerManager:
26+
extraArgs:
27+
max-endpoints-per-slice: "5"

0 commit comments

Comments
 (0)