@@ -65,23 +65,23 @@ CONVERSION_GEN_VER := v0.23.3
6565CONVERSION_GEN_BIN  := conversion-gen
6666CONVERSION_GEN  := $(TOOLS_BIN_DIR ) /$(CONVERSION_GEN_BIN ) -$(CONVERSION_GEN_VER ) 
6767
68- ENVSUBST_VER  := v1.2.0 
68+ ENVSUBST_VER  := v2.0.0-20210730161058-179042472c46 
6969ENVSUBST_BIN  := envsubst
7070ENVSUBST  := $(TOOLS_BIN_DIR ) /$(ENVSUBST_BIN ) 
7171
7272GOLANGCI_LINT_VER  := v1.44.0
7373GOLANGCI_LINT_BIN  := golangci-lint
7474GOLANGCI_LINT  := $(TOOLS_BIN_DIR ) /$(GOLANGCI_LINT_BIN ) -$(GOLANGCI_LINT_VER ) 
7575
76- KUSTOMIZE_VER  := v3.9.1 
76+ KUSTOMIZE_VER  := v4.0.4 
7777KUSTOMIZE_BIN  := kustomize
7878KUSTOMIZE  := $(TOOLS_BIN_DIR ) /$(KUSTOMIZE_BIN ) -$(KUSTOMIZE_VER ) 
7979
8080GINKGO_VER  := v1.16.5
8181GINKGO_BIN  := ginkgo
8282GINKGO  := $(TOOLS_BIN_DIR ) /$(GINKGO_BIN ) -$(GINKGO_VER ) 
8383
84- KUBECTL_VER  := v1.20.4 
84+ KUBECTL_VER  := v1.21.2 
8585KUBECTL_BIN  := kubectl
8686KUBECTL  := $(TOOLS_BIN_DIR ) /$(KUBECTL_BIN ) -$(KUBECTL_VER ) 
8787
@@ -93,7 +93,7 @@ TIMEOUT := $(shell command -v timeout || command -v gtimeout)
9393
9494#  Define Docker related variables. Releases should modify and double check these vars.
9595REGISTRY  ?= ghcr.io
96- IMAGE_NAME  ?= kubernetes-sigs/cluster-api-provider-packet
96+ export   IMAGE_NAME  ?= kubernetes-sigs/cluster-api-provider-packet
9797export  CONTROLLER_IMG  ?= $(REGISTRY ) /$(IMAGE_NAME ) 
9898export  TAG  ?= dev
9999export  ARCH  ?= amd64
@@ -203,29 +203,29 @@ e2e-test-templates: $(KUSTOMIZE) e2e-test-templates-v1alpha3 e2e-test-templates-
203203
204204e2e-test-templates-v1alpha3 : $(KUSTOMIZE )  # # Generate cluster templates for v1alpha3
205205	mkdir -p $(TEST_TEMPLATES_TARGET_DIR ) /v1alpha3/
206- 	$(KUSTOMIZE )  build $(REPO_ROOT ) /test/e2e/data/v1alpha3/cluster-template-packet-ccm --load_restrictor none  >  $(TEST_TEMPLATES_TARGET_DIR ) /v1alpha3/cluster-template-packet-ccm.yaml
207- 	$(KUSTOMIZE )  build $(REPO_ROOT ) /test/e2e/data/v1alpha3/cluster-template-cpem --load_restrictor none  >  $(TEST_TEMPLATES_TARGET_DIR ) /v1alpha3/cluster-template-cpem.yaml
206+ 	$(KUSTOMIZE )  build $(REPO_ROOT ) /test/e2e/data/v1alpha3/cluster-template-packet-ccm --load-restrictor LoadRestrictionsNone  >  $(TEST_TEMPLATES_TARGET_DIR ) /v1alpha3/cluster-template-packet-ccm.yaml
207+ 	$(KUSTOMIZE )  build $(REPO_ROOT ) /test/e2e/data/v1alpha3/cluster-template-cpem --load-restrictor LoadRestrictionsNone  >  $(TEST_TEMPLATES_TARGET_DIR ) /v1alpha3/cluster-template-cpem.yaml
208208
209209e2e-test-templates-v1beta1 : $(KUSTOMIZE )  # # Generate cluster templates for v1beta1
210210	mkdir -p $(TEST_TEMPLATES_TARGET_DIR ) /v1beta1/
211- 	$(KUSTOMIZE )  build $(REPO_ROOT ) /templates/experimental-crs-cni --load_restrictor none  >  $(TEST_TEMPLATES_TARGET_DIR ) /v1beta1/cluster-template.yaml
212- 	$(KUSTOMIZE )  build $(REPO_ROOT ) /test/e2e/data/v1beta1/cluster-template-kcp-scale-in --load_restrictor none  >  $(TEST_TEMPLATES_TARGET_DIR ) /v1beta1/cluster-template-kcp-scale-in.yaml
213- 	$(KUSTOMIZE )  build $(REPO_ROOT ) /test/e2e/data/v1beta1/cluster-template-node-drain --load_restrictor none  >  $(TEST_TEMPLATES_TARGET_DIR ) /v1beta1/cluster-template-node-drain.yaml
214- 	$(KUSTOMIZE )  build $(REPO_ROOT ) /test/e2e/data/v1beta1/cluster-template-md-remediation --load_restrictor none  >  $(TEST_TEMPLATES_TARGET_DIR ) /v1beta1/cluster-template-md-remediation.yaml
215- 	$(KUSTOMIZE )  build $(REPO_ROOT ) /test/e2e/data/v1beta1/cluster-template-kcp-remediation --load_restrictor none  >  $(TEST_TEMPLATES_TARGET_DIR ) /v1beta1/cluster-template-kcp-remediation.yaml
211+ 	$(KUSTOMIZE )  build $(REPO_ROOT ) /templates/experimental-crs-cni --load-restrictor LoadRestrictionsNone  >  $(TEST_TEMPLATES_TARGET_DIR ) /v1beta1/cluster-template.yaml
212+ 	$(KUSTOMIZE )  build $(REPO_ROOT ) /test/e2e/data/v1beta1/cluster-template-kcp-scale-in --load-restrictor LoadRestrictionsNone  >  $(TEST_TEMPLATES_TARGET_DIR ) /v1beta1/cluster-template-kcp-scale-in.yaml
213+ 	$(KUSTOMIZE )  build $(REPO_ROOT ) /test/e2e/data/v1beta1/cluster-template-node-drain --load-restrictor LoadRestrictionsNone  >  $(TEST_TEMPLATES_TARGET_DIR ) /v1beta1/cluster-template-node-drain.yaml
214+ 	$(KUSTOMIZE )  build $(REPO_ROOT ) /test/e2e/data/v1beta1/cluster-template-md-remediation --load-restrictor LoadRestrictionsNone  >  $(TEST_TEMPLATES_TARGET_DIR ) /v1beta1/cluster-template-md-remediation.yaml
215+ 	$(KUSTOMIZE )  build $(REPO_ROOT ) /test/e2e/data/v1beta1/cluster-template-kcp-remediation --load-restrictor LoadRestrictionsNone  >  $(TEST_TEMPLATES_TARGET_DIR ) /v1beta1/cluster-template-kcp-remediation.yaml
216216
217217# # --------------------------------------
218218# # Tooling Binaries
219219# # --------------------------------------
220220
221221$(ENVSUBST ) # # Build envsubst from tools folder.
222- 	GOBIN=$(TOOLS_BIN_DIR )  $(GO_INSTALL )  github.com/a8m /envsubst/cmd/envsubst $(ENVSUBST_BIN )  $(ENVSUBST_VER ) 
222+ 	GOBIN=$(TOOLS_BIN_DIR )  $(GO_INSTALL )  github.com/drone /envsubst/v2 /cmd/envsubst $(ENVSUBST_BIN )  $(ENVSUBST_VER ) 
223223
224224$(GOLANGCI_LINT ) # # Build golangci-lint from tools folder.
225225	GOBIN=$(TOOLS_BIN_DIR )  $(GO_INSTALL )  github.com/golangci/golangci-lint/cmd/golangci-lint $(GOLANGCI_LINT_BIN )  $(GOLANGCI_LINT_VER ) 
226226
227227$(KUSTOMIZE ) # # Build kustomize from tools folder.
228- 	GOBIN=$(TOOLS_BIN_DIR )  $(GO_INSTALL )  sigs.k8s.io/kustomize/kustomize/v3  $(KUSTOMIZE_BIN )  $(KUSTOMIZE_VER ) 
228+ 	GOBIN=$(TOOLS_BIN_DIR )  $(GO_INSTALL )  sigs.k8s.io/kustomize/kustomize/v4  $(KUSTOMIZE_BIN )  $(KUSTOMIZE_VER ) 
229229
230230$(CONTROLLER_GEN ) # # Build controller-gen from tools folder.
231231	GOBIN=$(TOOLS_BIN_DIR )  $(GO_INSTALL )  sigs.k8s.io/controller-tools/cmd/controller-gen $(CONTROLLER_GEN_BIN )  $(CONTROLLER_GEN_VER ) 
@@ -275,7 +275,7 @@ generate: ## Generate code
275275
276276.PHONY : generate-templates
277277generate-templates : $(KUSTOMIZE )  # # Generate cluster templates
278- 	$(KUSTOMIZE )  build templates/experimental-crs-cni --load_restrictor none  >  templates/cluster-template-crs-cni.yaml
278+ 	$(KUSTOMIZE )  build templates/experimental-crs-cni --load-restrictor LoadRestrictionsNone  >  templates/cluster-template-crs-cni.yaml
279279	$(KUSTOMIZE )  build templates/addons/calico >  templates/addons/calico.yaml
280280
281281.PHONY : generate-go
0 commit comments