You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Move tool management from Makefile to go.mod tool (#671)
Move controller-gen, kustomize, setup-envtest, envsubst, and ginkgo
from ad-hoc go install / curl-based installation in the Makefile to
Go 1.24+ tool directives in go.mod. Pin their versions with replace
directives matching the versions previously declared in the Makefile
where necessary.
This eliminates all tool download targets, LOCALBIN-based tool binary
variables, and version variables from the Makefile. All tools are now
invoked via `go tool <name>` which uses the module graph directly.
LOCALBIN is retained only for envtest binary assets (--bin-dir).
Co-authored-by: Claude <noreply@anthropic.com>
install: manifests ## Install CRDs into the K8s cluster specified in ~/.kube/config.
147
+
go tool kustomize build config/crd | kubectl apply -f -
152
148
153
149
.PHONY: uninstall
154
-
uninstall: manifests kustomize ## Uninstall CRDs from the K8s cluster specified in ~/.kube/config. Call with ignore-not-found=true to ignore resource not found errors during deletion.
uninstall: manifests ## Uninstall CRDs from the K8s cluster specified in ~/.kube/config. Call with ignore-not-found=true to ignore resource not found errors during deletion.
deploy: manifests ## Deploy controller to the K8s cluster specified in ~/.kube/config.
155
+
cd config/manager &&go tool kustomize edit set image controller=${IMG}
156
+
go tool kustomize build config/default | kubectl apply -f -
161
157
162
158
.PHONY: undeploy
163
159
undeploy: ## Undeploy controller from the K8s cluster specified in ~/.kube/config. Call with ignore-not-found=true to ignore resource not found errors during deletion.
k8s.io/apimachinery => k8s.io/apimachineryv0.32.3// temp override until everything is migrated to k8s 33
8
+
k8s.io/kube-openapi/pkg/schemaconv => k8s.io/kube-openapi/pkg/schemaconvv0.0.0-20250701173324-9bd5c66d9911// temp override until everything is migrated to k8s 33 (34?)
sigs.k8s.io/controller-runtime/tools/setup-envtest => sigs.k8s.io/controller-runtime/tools/setup-envtestv0.0.0-20250911081535-42a14a36c13b// last version to support go1.24, don't update until we're on k8s 34
0 commit comments