Skip to content

Commit

Permalink
Fix Gardener provisioning (#1002)
Browse files Browse the repository at this point in the history
  • Loading branch information
halamix2 authored May 28, 2024
1 parent 53ce16a commit 25ce455
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hack/gardener.mk
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ include ${PROJECT_ROOT}/hack/tools.mk
GARDENER_INFRASTRUCTURE = az
HIBERNATION_HOUR=$(shell echo $$(( ( $(shell date +%H | sed s/^0//g) + 5 ) % 24 )))
GIT_COMMIT_SHA=$(shell git rev-parse --short=8 HEAD)
SHOOT=test-${GIT_COMMIT_SHA}
ifneq (,$(GARDENER_SA_PATH))
GARDENER_K8S_VERSION=$(shell kubectl --kubeconfig=${GARDENER_SA_PATH} get cloudprofiles.core.gardener.cloud ${GARDENER_INFRASTRUCTURE} -o=jsonpath='{.spec.kubernetes.versions[0].version}')
else
Expand All @@ -20,7 +21,6 @@ provision-gardener: ## Provision gardener cluster with latest k8s version
GARDENER_SA_PATH=${GARDENER_SA_PATH} \
SHOOT=${SHOOT} PROJECT=${GARDENER_PROJECT} \
GARDENER_K8S_VERSION=${GARDENER_K8S_VERSION} \
GIT_COMMIT_SHA=${GIT_COMMIT_SHA} \
SECRET=${GARDENER_SECRET_NAME} \
${PROJECT_ROOT}/hack/provision_gardener.sh

Expand Down

0 comments on commit 25ce455

Please sign in to comment.