From 138440c0c0302592eb5b3fb38cf2a67d1e7c906e Mon Sep 17 00:00:00 2001 From: Mike Dame Date: Thu, 20 Oct 2022 18:14:50 +0000 Subject: [PATCH] Switch to kubectl cloud builder --- cloudbuild-gke.yaml | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/cloudbuild-gke.yaml b/cloudbuild-gke.yaml index 365ee48..04ec423 100644 --- a/cloudbuild-gke.yaml +++ b/cloudbuild-gke.yaml @@ -14,18 +14,14 @@ steps: - id: "install" - name: "gcr.io/cloud-builders/gcloud" + name: "gcr.io/cloud-builders/kubectl" env: - - "KUBECONFIG=/kube/config" - - "PROJECT_ID=$PROJECT_ID" + - "CLOUDSDK_CONTAINER_CLUSTER=${_CLUSTER}" + - "CLOUDSDK_COMPUTE_ZONE=${_ZONE} entrypoint: "bash" args: - "-c" - | - gcloud container clusters get-credentials "${_CLUSTER}" \ - --project "$${PROJECT}" \ - --zone "${_ZONE}" - kubectl apply -f https://github.com/cert-manager/cert-manager/releases/download/v1.10.0/cert-manager.yaml while ! kubectl apply -f https://github.com/open-telemetry/opentelemetry-operator/releases/latest/download/opentelemetry-operator.yaml; do echo "Retrying"; sleep 5; done