Skip to content

Commit

Permalink
operator,storage-operator: Pin setup-envtest version
Browse files Browse the repository at this point in the history
Latest version of setup-envtest can only works with Go 1.22, since we
are not yet using it let's pin the setup-envtest version

Unfortunatly there is no real tag for setup-envtest so we have to use
long tag commit hash

Sees: kubernetes-sigs/controller-runtime#2720
  • Loading branch information
TeddyAndrieux committed Mar 26, 2024
1 parent d178477 commit 8d67943
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion operator/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ $(CONTROLLER_GEN): $(LOCALBIN)
.PHONY: envtest
envtest: $(ENVTEST) ## Download envtest-setup locally if necessary.
$(ENVTEST): $(LOCALBIN)
test -s $(LOCALBIN)/setup-envtest || GOBIN=$(LOCALBIN) go install sigs.k8s.io/controller-runtime/tools/setup-envtest@latest
test -s $(LOCALBIN)/setup-envtest || GOBIN=$(LOCALBIN) go install sigs.k8s.io/controller-runtime/tools/setup-envtest@395cfc7486e6

.PHONY: bundle
bundle: manifests kustomize ## Generate bundle manifests and metadata, then validate generated files.
Expand Down
2 changes: 1 addition & 1 deletion storage-operator/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ $(CONTROLLER_GEN): $(LOCALBIN)
.PHONY: envtest
envtest: $(ENVTEST) ## Download envtest-setup locally if necessary.
$(ENVTEST): $(LOCALBIN)
test -s $(LOCALBIN)/setup-envtest || GOBIN=$(LOCALBIN) go install sigs.k8s.io/controller-runtime/tools/setup-envtest@latest
test -s $(LOCALBIN)/setup-envtest || GOBIN=$(LOCALBIN) go install sigs.k8s.io/controller-runtime/tools/setup-envtest@395cfc7486e6

.PHONY: bundle
bundle: manifests kustomize ## Generate bundle manifests and metadata, then validate generated files.
Expand Down

0 comments on commit 8d67943

Please sign in to comment.