Update Makefile

Signed-off-by: 蔡秀吉 <84045975+thc1006@users.noreply.github.com>
pull/31068/head
蔡秀吉 2 months ago committed by GitHub
parent d7a7cf46d2
commit a551625933
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -21,7 +21,6 @@ ACCEPTANCE_RUN_TESTS=.
PKG := ./...
TAGS :=
TESTS := .
TESTARGS := -shuffle=on -count=3
TESTFLAGS :=
LDFLAGS := -w -s
GOFLAGS :=
@ -110,7 +109,8 @@ test-unit:
@echo "==> Running unit test(s) with ldflags <=="
# Test to check the deprecation warnings on Kubernetes templates created by `helm create` against the current Kubernetes
# version. Note: The version details are set in var LDFLAGS. To avoid the ldflags impact on other unit tests that are
# based on older versions, this is run separately. When run without the ldflags in the unit test (above) or coverage
# based on older versions, this is run separately.
# When run without the ldflags in the unit test (above) or coverage
# test, it still passes with a false-positive result as the resources shouldnt be deprecated in the older Kubernetes
# version if it only starts failing with the latest.
go test $(GOFLAGS) -run ^TestHelmCreateChart_CheckDeprecatedWarnings$$ ./pkg/lint/ $(TESTFLAGS) -ldflags '$(LDFLAGS)'

Loading…
Cancel
Save