Add script to check helm chart (#5172)

This commit is contained in:
Manuel Alejandro de Brito Fontes 2020-02-25 21:14:21 -03:00 committed by GitHub
parent f48774e6db
commit 2ca93f7f67
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 9 deletions

View file

@ -157,12 +157,12 @@ clean: ## Remove .gocache directory.
rm -rf bin/ .gocache/ .cache/
.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)
@build/run-in-docker.sh \
build/static-check.sh
hack/verify-all.sh
else
@build/static-check.sh
@hack/verify-all.sh
endif
.PHONY: test

View file

@ -1,6 +1,6 @@
#!/bin/bash
# Copyright 2018 The Kubernetes Authors.
# Copyright 2020 The Kubernetes Authors.
#
# Licensed under the Apache License, Version 2.0 (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
# limitations under the License.
if [ -n "$DEBUG" ]; then
set -x
fi
set -o errexit
set -o nounset
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