From f4d48bc880b681714ada3dd976e1f05bb55624c4 Mon Sep 17 00:00:00 2001 From: Anmol Sethi Date: Fri, 13 Nov 2020 18:34:11 -0500 Subject: [PATCH] ci: Remove helm validation action in favour of helm kubeval directly --- .github/workflows/helm_validation.yaml | 14 -------------- ci/dev/lint.sh | 1 + ci/images/debian10/Dockerfile | 6 ++++++ 3 files changed, 7 insertions(+), 14 deletions(-) delete mode 100644 .github/workflows/helm_validation.yaml 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