Skip to content

Commit

Permalink
Merge pull request #1046 from syself/kr/hcloud-token-make-target
Browse files Browse the repository at this point in the history
🌱 Add make generate-hcloud-token and bump versions
  • Loading branch information
kranurag7 authored Nov 9, 2023
2 parents 47d5415 + b081d0a commit dddad7c
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ WORKER_CLUSTER_KUBECONFIG ?= ".workload-cluster-kubeconfig.yaml"
MGT_CLUSTER_KUBECONFIG ?= ".mgt-cluster-kubeconfig.yaml"

# Kubebuilder.
export KUBEBUILDER_ENVTEST_KUBERNETES_VERSION ?= 1.25.0
export KUBEBUILDER_ENVTEST_KUBERNETES_VERSION ?= 1.28.0

##@ Binaries
############
Expand All @@ -87,7 +87,7 @@ export KUBEBUILDER_ENVTEST_KUBERNETES_VERSION ?= 1.25.0
CONTROLLER_GEN := $(abspath $(TOOLS_BIN_DIR)/controller-gen)
controller-gen: $(CONTROLLER_GEN) ## Build a local copy of controller-gen
$(CONTROLLER_GEN): # Build controller-gen from tools folder.
go install sigs.k8s.io/controller-tools/cmd/controller-gen@v0.12.0
go install sigs.k8s.io/controller-tools/cmd/controller-gen@v0.13.0

KUSTOMIZE := $(abspath $(TOOLS_BIN_DIR)/kustomize)
kustomize: $(KUSTOMIZE) ## Build a local copy of kustomize
Expand All @@ -98,7 +98,7 @@ TILT := $(abspath $(TOOLS_BIN_DIR)/tilt)
tilt: $(TILT) ## Build a local copy of tilt
$(TILT):
@mkdir -p $(TOOLS_BIN_DIR)
MINIMUM_TILT_VERSION=0.32.4 hack/ensure-tilt.sh
MINIMUM_TILT_VERSION=0.33.3 hack/ensure-tilt.sh

ENVSUBST := $(abspath $(TOOLS_BIN_DIR)/envsubst)
envsubst: $(ENVSUBST) ## Build a local copy of envsubst
Expand All @@ -118,7 +118,7 @@ $(CTLPTL):
CLUSTERCTL := $(abspath $(TOOLS_BIN_DIR)/clusterctl)
clusterctl: $(CLUSTERCTL) ## Build a local copy of clusterctl
$(CLUSTERCTL):
curl -sSLf https://github.com/kubernetes-sigs/cluster-api/releases/download/v1.5.2/clusterctl-$$(go env GOOS)-$$(go env GOARCH) -o $(CLUSTERCTL)
curl -sSLf https://github.com/kubernetes-sigs/cluster-api/releases/download/v1.5.3/clusterctl-$$(go env GOOS)-$$(go env GOARCH) -o $(CLUSTERCTL)
chmod a+rx $(CLUSTERCTL)

HELM := $(abspath $(TOOLS_BIN_DIR)/helm)
Expand Down Expand Up @@ -338,6 +338,10 @@ delete-mgt-cluster-registry: $(CTLPTL) ## Deletes Kind-dev Cluster and the local
$(CTLPTL) delete cluster kind-$(INFRA_SHORT)
$(CTLPTL) delete registry $(INFRA_SHORT)-registry

generate-hcloud-token:
./hack/ensure-env-variables.sh TPS_TOKEN
./hack/ci-e2e-get-token.sh

##@ Clean
#########
# Clean #
Expand Down

0 comments on commit dddad7c

Please sign in to comment.