Skip to content

Commit 4827d13

Browse files
liranmaudatangledbytes
authored andcommitted
CI | adding Set up kind step to be in a fixed version and do not intall twice
CI | adding Set up kind step to be in a fixed version and do not intall twice Signed-off-by: liranmauda <liran.mauda@gmail.com> (cherry picked from commit 9b54feb)
1 parent 494cf1a commit 4827d13

10 files changed

Lines changed: 27 additions & 1 deletion

.github/workflows/run_hac_test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ jobs:
2020
**/go.sum
2121
- name: Set up kind
2222
uses: helm/kind-action@v1
23+
with:
24+
install_only: true
2325

2426
- name: Set environment variables
2527
run: |

.github/workflows/run_kms_azure_vault_test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ jobs:
2020
**/go.sum
2121
- name: Set up kind
2222
uses: helm/kind-action@v1
23+
with:
24+
install_only: true
2325

2426
- name: Set environment variables
2527
run: |

.github/workflows/run_kms_dev_test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ jobs:
2020
**/go.sum
2121
- name: Set up kind
2222
uses: helm/kind-action@v1
23+
with:
24+
install_only: true
2325

2426
- name: Set environment variables
2527
run: |

.github/workflows/run_kms_ibm_kp_test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ jobs:
2323
**/go.sum
2424
- name: Set up kind
2525
uses: helm/kind-action@v1
26+
with:
27+
install_only: true
2628

2729
- name: Set environment variables
2830
run: |

.github/workflows/run_kms_kmip_test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ jobs:
2020
**/go.sum
2121
- name: Set up kind
2222
uses: helm/kind-action@v1
23+
with:
24+
install_only: true
2325

2426
- name: Set environment variables
2527
run: |

.github/workflows/run_kms_rotate_test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ jobs:
2020
**/go.sum
2121
- name: Set up kind
2222
uses: helm/kind-action@v1
23+
with:
24+
install_only: true
2325

2426
- name: Set environment variables
2527
run: |

.github/workflows/run_kms_tls_sa_test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ jobs:
2020
**/go.sum
2121
- name: Set up kind
2222
uses: helm/kind-action@v1
23+
with:
24+
install_only: true
2325
- name: Set environment variables
2426
run: |
2527
echo PATH=$PATH:$HOME/go/bin >> $GITHUB_ENV

.github/workflows/run_kms_tls_token_test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ jobs:
2020
**/go.sum
2121
- name: Set up kind
2222
uses: helm/kind-action@v1
23+
with:
24+
install_only: true
2325

2426
- name: Set environment variables
2527
run: |

.github/workflows/upgrade-tests-workflow.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ jobs:
3030
**/go.sum
3131
- name: Set up kind
3232
uses: helm/kind-action@v1
33+
with:
34+
install_only: true
3335

3436
- name: Set environment variables
3537
run: |

.travis/install-5nodes-kind-cluster.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
#!/bin/sh
22
set -o errexit
33

4+
# Pin to 1.30 line (override with any v1.30.z via KIND_NODE_IMAGE)
5+
KIND_NODE_IMAGE="${KIND_NODE_IMAGE:-kindest/node:v1.30.13}"
6+
47
# create registry container unless it already exists
58
reg_name='kind-registry'
69
reg_port='5000'
@@ -11,7 +14,7 @@ if [ "${running}" != 'true' ]; then
1114
registry:2
1215
fi
1316

14-
# create a cluster with the local registry enabled in containerd
17+
# create a cluster with the local registry enabled in containerd (node image: 1.30 line, overridable via KIND_NODE_IMAGE)
1518
cat <<EOF | kind create cluster --name 5nodes --config=-
1619
kind: Cluster
1720
apiVersion: kind.x-k8s.io/v1alpha4
@@ -21,10 +24,15 @@ containerdConfigPatches:
2124
endpoint = ["http://${reg_name}:${reg_port}"]
2225
nodes:
2326
- role: control-plane
27+
image: ${KIND_NODE_IMAGE}
2428
- role: worker
29+
image: ${KIND_NODE_IMAGE}
2530
- role: worker
31+
image: ${KIND_NODE_IMAGE}
2632
- role: worker
33+
image: ${KIND_NODE_IMAGE}
2734
- role: worker
35+
image: ${KIND_NODE_IMAGE}
2836
EOF
2937

3038
# connect the registry to the cluster network

0 commit comments

Comments
 (0)