From 9b3f8cf4dcebdff6656aadb734d9d8085249cea7 Mon Sep 17 00:00:00 2001 From: Bartosz Fenski Date: Fri, 28 Jun 2024 10:47:40 +0200 Subject: [PATCH] back to kind --- .github/workflows/test.yaml | 21 +++++++-------------- test/pod-1.yaml | 2 +- test/pvc-1.yaml | 2 +- 3 files changed, 9 insertions(+), 16 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index e165bfb..cfc20ab 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -40,21 +40,14 @@ jobs: chmod +x kubectl sudo mv kubectl /usr/local/bin/ - - name: Install Minikube + - name: Set up kind run: | - curl -LO "https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64" - install minikube-linux-amd64 /tmp/ - /tmp/minikube-linux-amd64 config set WantUpdateNotification false - /tmp/minikube-linux-amd64 start --driver=docker - -# - name: Set up kind -# run: | -# curl -Lo ./kind https://kind.sigs.k8s.io/dl/v0.23.0/kind-linux-amd64 -# chmod +x ./kind -# sudo mv ./kind /usr/local/bin/kind -# -# - name: Create Kubernetes cluster -# run: kind create cluster --wait 5m + curl -Lo ./kind https://kind.sigs.k8s.io/dl/v0.23.0/kind-linux-amd64 + chmod +x ./kind + sudo mv ./kind /usr/local/bin/kind + + - name: Create Kubernetes cluster + run: kind create cluster --wait 5m - name: Create StorageClass, test PVCs and PODs run: | diff --git a/test/pod-1.yaml b/test/pod-1.yaml index 81f5294..d2b4271 100644 --- a/test/pod-1.yaml +++ b/test/pod-1.yaml @@ -6,7 +6,7 @@ spec: containers: - name: container image: busybox - command: [ "sleep", "3600" ] + command: [ "sleep", "1" ] volumeMounts: - mountPath: "/mnt/test" name: test-volume diff --git a/test/pvc-1.yaml b/test/pvc-1.yaml index 79e6a60..353c844 100644 --- a/test/pvc-1.yaml +++ b/test/pvc-1.yaml @@ -4,7 +4,7 @@ metadata: name: pvc-1 spec: accessModes: - - ReadWriteMany + - ReadWriteOnce resources: requests: storage: 10Mi