Skip to content

Commit

Permalink
Merge pull request #1476 from RafalKorepta/fix/k8s-operator/e2e-test
Browse files Browse the repository at this point in the history
operator: Shrink kind cluster to only 1 worker and master
  • Loading branch information
RafalKorepta authored May 26, 2021
2 parents 147b3d1 + ed94457 commit 6e18137
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 8 deletions.
2 changes: 0 additions & 2 deletions src/go/k8s/kind.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,3 @@ apiVersion: kind.x-k8s.io/v1alpha4
nodes:
- role: control-plane
- role: worker
- role: worker
- role: worker
1 change: 1 addition & 0 deletions src/go/k8s/kuttl-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ testDirs:
kindConfig: ./kind.yaml
kindNodeCache: false
commands:
- command: "kubectl taint nodes -l node-role.kubernetes.io/master= node-role.kubernetes.io/master:NoSchedule-"
- command: "./hack/install-cert-manager.sh"
- command: "kubectl apply -f https://raw.githubusercontent.com/prometheus-operator/prometheus-operator/master/bundle.yaml"
- command: "make deploy"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: kuttl.dev/v1beta1
kind: TestStep
commands:
- command: kubectl taint nodes kind-worker2 redpanda-node=true:NoSchedule
- command: kubectl taint nodes kind-worker redpanda-node=true:NoSchedule
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: kuttl.dev/v1beta1
kind: TestStep
commands:
- command: kubectl label nodes kind-worker2 redpanda-node=true
- command: kubectl label nodes kind-worker redpanda-node=true
4 changes: 2 additions & 2 deletions src/go/k8s/tests/e2e/node-select-tolerations/02-assert.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ spec:
containers:
- name: redpanda
image: "vectorized/redpanda:latest"
nodeName: kind-worker2
nodeName: kind-worker
nodeSelector:
redpanda-node: "true"
status:
phase: "Running"
phase: "Running"
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: kuttl.dev/v1beta1
kind: TestStep
commands:
- command: kubectl taint nodes kind-worker2 redpanda-node=true:NoSchedule-
- command: kubectl taint nodes kind-worker redpanda-node=true:NoSchedule-
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: kuttl.dev/v1beta1
kind: TestStep
commands:
- command: kubectl label nodes kind-worker2 redpanda-node-
- command: kubectl label nodes kind-worker redpanda-node-

0 comments on commit 6e18137

Please sign in to comment.