删除重复controller-manager编译目标

This commit is contained in:
panshuxiao
2025-11-25 15:21:44 +08:00
repo.diff.parent 084ad3a542
repo.diff.commit 8111e63771

repo.diff.view_file

@@ -970,13 +970,6 @@ docker:
# support also build args docker build --build-arg GITEA_VERSION=v1.2.3 --build-arg TAGS="bindata sqlite sqlite_unlock_notify" . # support also build args docker build --build-arg GITEA_VERSION=v1.2.3 --build-arg TAGS="bindata sqlite sqlite_unlock_notify" .
# This endif closes the if at the top of the file # This endif closes the if at the top of the file
# 添加一个新目标,用于构建 controller-manager
.PHONY: controller-manager
controller-manager: go-check
@echo "Building controller-manager..."
CGO_CFLAGS="$(CGO_CFLAGS)" $(GO) build $(GOFLAGS) $(EXTRA_GOFLAGS) -tags '$(TAGS)' -ldflags '-s -w $(LDFLAGS)' -o controller-manager modules/k8s/cmd/controller-manager/controller-manager.go
endif endif
# Disable parallel execution because it would break some targets that don't # Disable parallel execution because it would break some targets that don't