From c3531347fe5a4cc82d426db195026a5bdad15e7a Mon Sep 17 00:00:00 2001 From: rjshrjndrn Date: Fri, 27 Jan 2023 15:27:47 +0100 Subject: [PATCH] ci(helm): Template using kube api version Signed-off-by: rjshrjndrn --- .github/workflows/api-ee.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/api-ee.yaml b/.github/workflows/api-ee.yaml index c014f34c5..2a12e0da5 100644 --- a/.github/workflows/api-ee.yaml +++ b/.github/workflows/api-ee.yaml @@ -8,7 +8,7 @@ on: default: 'false' push: branches: - - dev + - test_ci paths: - ee/api/** - api/** @@ -112,7 +112,8 @@ jobs: # Deploy command kubectl config set-context --namespace=app --current kubectl config get-contexts - helm template openreplay -n app openreplay -f vars.yaml -f /tmp/image_override.yaml --set ingress-nginx.enabled=false --set skipMigration=true --no-hooks | kubectl apply -f - + k_version=$(kubectl version --short 2>/dev/null | awk '/Server/{print $NF}') + helm template openreplay -n app openreplay -f vars.yaml -f /tmp/image_override.yaml --set ingress-nginx.enabled=false --set skipMigration=true --no-hooks --kube-version=$k_version | kubectl apply -f - env: DOCKER_REPO: ${{ secrets.EE_REGISTRY_URL }} # We're not passing -ee flag, because helm will add that.