Skip to content

Commit

Permalink
test a newer version of k8s
Browse files Browse the repository at this point in the history
Signed-off-by: NikitaSkrynnik <[email protected]>
  • Loading branch information
NikitaSkrynnik committed Aug 8, 2024
1 parent f32aa27 commit 2a2c3b3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,17 +51,20 @@ jobs:
- name: Setup cluster
working-directory: ${{ github.repository }}
run: |
GKE_K8S_VERSION=$(echo ${{ vars.NSM_KUBERNETES_VERSION }} | cut -c 2-)
GKE_K8S_VERSION=$(echo ${{ vars.NSM_KUBERNETES_VERSION }} | cut -d '.' -f 1,2 | cut -c 2-)
echo $GKE_K8S_VERSION
gcloud components install gke-gcloud-auth-plugin
gcloud components update
gcloud components list
gcloud container clusters create "${GKE_CLUSTER_NAME}" \
--project="${GKE_PROJECT_ID}" \
--machine-type="${GKE_CLUSTER_TYPE}" \
--num-nodes="${GKE_CLUSTER_NUM_NODES}" \
--zone="${GKE_CLUSTER_ZONE}" \
--cluster-version="${GKE_K8S_VERSION}" \
--cluster-version="$GKE_K8S_VERSION" \
--enable-gvnic -q
echo "Writing config to ${KUBECONFIG}"
Expand Down

0 comments on commit 2a2c3b3

Please sign in to comment.