Skip to content

Commit

Permalink
back to kind
Browse files Browse the repository at this point in the history
  • Loading branch information
fenio committed Jun 28, 2024
1 parent a4ab348 commit 9b3f8cf
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 16 deletions.
21 changes: 7 additions & 14 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
2 changes: 1 addition & 1 deletion test/pod-1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ spec:
containers:
- name: container
image: busybox
command: [ "sleep", "3600" ]
command: [ "sleep", "1" ]
volumeMounts:
- mountPath: "/mnt/test"
name: test-volume
Expand Down
2 changes: 1 addition & 1 deletion test/pvc-1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
name: pvc-1
spec:
accessModes:
- ReadWriteMany
- ReadWriteOnce
resources:
requests:
storage: 10Mi

0 comments on commit 9b3f8cf

Please sign in to comment.