diff --git a/.github/workflows/helm_validation.yaml b/.github/workflows/helm_validation.yaml deleted file mode 100644 index 9ba82ec08..000000000 --- a/.github/workflows/helm_validation.yaml +++ /dev/null @@ -1,14 +0,0 @@ -name: Helm Validation - -on: [pull_request, issues] - -jobs: - validate: - runs-on: ubuntu-latest - steps: - - name: Checkout Repo - uses: actions/checkout@v2 - - name: Kubeval Helm Chart - uses: junior/kubeval-helm-chart-action@0.2.0-alpha.0 - env: - INPUT_KUBERNETES_VERSION: 1.19 diff --git a/ci/dev/lint.sh b/ci/dev/lint.sh index 5f7c549bc..7915262b4 100755 --- a/ci/dev/lint.sh +++ b/ci/dev/lint.sh @@ -8,6 +8,7 @@ main() { stylelint $(git ls-files "*.css") tsc --noEmit shellcheck -e SC2046,SC2164,SC2154,SC1091,SC1090,SC2002 $(git ls-files "*.sh") + helm kubeval ci/helm-chart } main "$@" diff --git a/ci/images/debian10/Dockerfile b/ci/images/debian10/Dockerfile index 108348b65..883bb62e5 100644 --- a/ci/images/debian10/Dockerfile +++ b/ci/images/debian10/Dockerfile @@ -45,4 +45,10 @@ ENV GO111MODULE=on RUN go get mvdan.cc/sh/v3/cmd/shfmt RUN go get github.com/goreleaser/nfpm/cmd/nfpm +RUN VERSION="$(curl -fsSL https://storage.googleapis.com/kubernetes-release/release/stable.txt)" && \ + curl -fsSL "https://storage.googleapis.com/kubernetes-release/release/$VERSION/bin/linux/amd64/kubectl" > /usr/local/bin/kubectl \ + && chmod +x /usr/local/bin/kubectl +RUN curl -fsSL https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 | bash +RUN helm plugin install https://github.com/instrumenta/helm-kubeval + RUN curl -fsSL https://get.docker.com | sh