Add script to check helm chart (#5172)
This commit is contained in:
parent
f48774e6db
commit
2ca93f7f67
2 changed files with 7 additions and 9 deletions
6
Makefile
6
Makefile
|
@ -157,12 +157,12 @@ clean: ## Remove .gocache directory.
|
||||||
rm -rf bin/ .gocache/ .cache/
|
rm -rf bin/ .gocache/ .cache/
|
||||||
|
|
||||||
.PHONY: static-check
|
.PHONY: static-check
|
||||||
static-check: ## Run verification script for boilerplate, codegen, gofmt, golint and lualint.
|
static-check: ## Run verification script for boilerplate, codegen, gofmt, golint, lualint and chart-lint.
|
||||||
ifeq ($(USE_DOCKER), true)
|
ifeq ($(USE_DOCKER), true)
|
||||||
@build/run-in-docker.sh \
|
@build/run-in-docker.sh \
|
||||||
build/static-check.sh
|
hack/verify-all.sh
|
||||||
else
|
else
|
||||||
@build/static-check.sh
|
@hack/verify-all.sh
|
||||||
endif
|
endif
|
||||||
|
|
||||||
.PHONY: test
|
.PHONY: test
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Copyright 2018 The Kubernetes Authors.
|
# Copyright 2020 The Kubernetes Authors.
|
||||||
#
|
#
|
||||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
# you may not use this file except in compliance with the License.
|
# you may not use this file except in compliance with the License.
|
||||||
|
@ -14,12 +14,10 @@
|
||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
if [ -n "$DEBUG" ]; then
|
|
||||||
set -x
|
|
||||||
fi
|
|
||||||
|
|
||||||
set -o errexit
|
set -o errexit
|
||||||
set -o nounset
|
set -o nounset
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
|
|
||||||
hack/verify-all.sh
|
KUBE_ROOT="$( cd "$(dirname "$0")../" >/dev/null 2>&1 ; pwd -P )"
|
||||||
|
|
||||||
|
ct lint --charts ${KUBE_ROOT}/charts/ingress-nginx
|
Loading…
Reference in a new issue