mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 10:51:29 +00:00
Makefile: emit codegen info via kube::log::status
This commit is contained in:
parent
25c9bca49c
commit
457e8778f7
@ -31,6 +31,7 @@ endif
|
|||||||
|
|
||||||
# It's necessary to set this because some environments don't link sh -> bash.
|
# It's necessary to set this because some environments don't link sh -> bash.
|
||||||
SHELL := /usr/bin/env bash -o errexit -o pipefail -o nounset
|
SHELL := /usr/bin/env bash -o errexit -o pipefail -o nounset
|
||||||
|
BASH_ENV := ./hack/lib/logging.sh
|
||||||
|
|
||||||
# Define variables so `make --warn-undefined-variables` works.
|
# Define variables so `make --warn-undefined-variables` works.
|
||||||
PRINT_HELP ?=
|
PRINT_HELP ?=
|
||||||
|
@ -162,7 +162,7 @@ gen_prerelease_lifecycle: $(PRERELEASE_LIFECYCLE_GEN) $(META_DIR)/$(PRERELEASE_L
|
|||||||
echo "DBG: running $(PRERELEASE_LIFECYCLE_GEN) for $$pkgs"; \
|
echo "DBG: running $(PRERELEASE_LIFECYCLE_GEN) for $$pkgs"; \
|
||||||
fi; \
|
fi; \
|
||||||
N=$$(cat $(META_DIR)/$(PRERELEASE_LIFECYCLE_GEN).todo | wc -l); \
|
N=$$(cat $(META_DIR)/$(PRERELEASE_LIFECYCLE_GEN).todo | wc -l); \
|
||||||
echo "Generating prerelease lifecycle code for $$N targets"; \
|
kube::log::status "Generating prerelease lifecycle code for $$N targets"; \
|
||||||
./hack/run-in-gopath.sh $(PRERELEASE_LIFECYCLE_GEN) \
|
./hack/run-in-gopath.sh $(PRERELEASE_LIFECYCLE_GEN) \
|
||||||
--v $(KUBE_VERBOSE) \
|
--v $(KUBE_VERBOSE) \
|
||||||
--logtostderr \
|
--logtostderr \
|
||||||
@ -255,7 +255,7 @@ gen_deepcopy: $(DEEPCOPY_GEN) $(META_DIR)/$(DEEPCOPY_GEN).todo
|
|||||||
echo "DBG: running $(DEEPCOPY_GEN) for $$pkgs"; \
|
echo "DBG: running $(DEEPCOPY_GEN) for $$pkgs"; \
|
||||||
fi; \
|
fi; \
|
||||||
N=$$(cat $(META_DIR)/$(DEEPCOPY_GEN).todo | wc -l); \
|
N=$$(cat $(META_DIR)/$(DEEPCOPY_GEN).todo | wc -l); \
|
||||||
echo "Generating deepcopy code for $$N targets"; \
|
kube::log::status "Generating deepcopy code for $$N targets"; \
|
||||||
./hack/run-in-gopath.sh $(DEEPCOPY_GEN) \
|
./hack/run-in-gopath.sh $(DEEPCOPY_GEN) \
|
||||||
--v $(KUBE_VERBOSE) \
|
--v $(KUBE_VERBOSE) \
|
||||||
--logtostderr \
|
--logtostderr \
|
||||||
@ -357,7 +357,7 @@ gen_defaulter: $(DEFAULTER_GEN) $(META_DIR)/$(DEFAULTER_GEN).todo
|
|||||||
echo "DBG: running $(DEFAULTER_GEN) for $$pkgs"; \
|
echo "DBG: running $(DEFAULTER_GEN) for $$pkgs"; \
|
||||||
fi; \
|
fi; \
|
||||||
N=$$(cat $(META_DIR)/$(DEFAULTER_GEN).todo | wc -l); \
|
N=$$(cat $(META_DIR)/$(DEFAULTER_GEN).todo | wc -l); \
|
||||||
echo "Generating defaulter code for $$N targets"; \
|
kube::log::status "Generating defaulter code for $$N targets"; \
|
||||||
./hack/run-in-gopath.sh $(DEFAULTER_GEN) \
|
./hack/run-in-gopath.sh $(DEFAULTER_GEN) \
|
||||||
--v $(KUBE_VERBOSE) \
|
--v $(KUBE_VERBOSE) \
|
||||||
--logtostderr \
|
--logtostderr \
|
||||||
@ -469,7 +469,7 @@ gen_conversion: $(CONVERSION_GEN) $(META_DIR)/$(CONVERSION_GEN).todo
|
|||||||
echo "DBG: running $(CONVERSION_GEN) for $$pkgs"; \
|
echo "DBG: running $(CONVERSION_GEN) for $$pkgs"; \
|
||||||
fi; \
|
fi; \
|
||||||
N=$$(cat $(META_DIR)/$(CONVERSION_GEN).todo | wc -l); \
|
N=$$(cat $(META_DIR)/$(CONVERSION_GEN).todo | wc -l); \
|
||||||
echo "Generating conversion code for $$N targets"; \
|
kube::log::status "Generating conversion code for $$N targets"; \
|
||||||
./hack/run-in-gopath.sh $(CONVERSION_GEN) \
|
./hack/run-in-gopath.sh $(CONVERSION_GEN) \
|
||||||
--extra-peer-dirs $$(echo $(CONVERSION_EXTRA_PEER_PKGS) | sed 's/ /,/g') \
|
--extra-peer-dirs $$(echo $(CONVERSION_EXTRA_PEER_PKGS) | sed 's/ /,/g') \
|
||||||
--extra-dirs $$(echo $(CONVERSION_EXTRA_PKGS) | sed 's/ /,/g') \
|
--extra-dirs $$(echo $(CONVERSION_EXTRA_PKGS) | sed 's/ /,/g') \
|
||||||
@ -606,7 +606,7 @@ endif
|
|||||||
# checked-in violation file, and prints error message to request developer to
|
# checked-in violation file, and prints error message to request developer to
|
||||||
# fix either the API source code, or the known API rule violation file.
|
# fix either the API source code, or the known API rule violation file.
|
||||||
$$($(prefix)_OPENAPI_OUTFILE): $(OPENAPI_GEN) $($(prefix)_KNOWN_VIOLATION_FILENAME)
|
$$($(prefix)_OPENAPI_OUTFILE): $(OPENAPI_GEN) $($(prefix)_KNOWN_VIOLATION_FILENAME)
|
||||||
echo "Generating openapi code for $(prefix)"; \
|
kube::log::status "Generating openapi code for $(prefix)"; \
|
||||||
./hack/run-in-gopath.sh $(OPENAPI_GEN) \
|
./hack/run-in-gopath.sh $(OPENAPI_GEN) \
|
||||||
--v $(KUBE_VERBOSE) \
|
--v $(KUBE_VERBOSE) \
|
||||||
--logtostderr \
|
--logtostderr \
|
||||||
|
Loading…
Reference in New Issue
Block a user