From 5e1dc2e9dd42e84f2b95ebace4d8a3c90338ffd9 Mon Sep 17 00:00:00 2001 From: Andy Thompson Date: Thu, 23 Jul 2020 11:51:16 +0100 Subject: [PATCH 1/3] Update kubeval to 0.15.0 and add new options --- plugin.yaml | 2 +- scripts/run.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plugin.yaml b/plugin.yaml index ab07801..23540c3 100644 --- a/plugin.yaml +++ b/plugin.yaml @@ -1,5 +1,5 @@ name: "kubeval" -version: "0.13.0" +version: "0.15.0" usage: "Validate Helm charts" description: |- "Validate Helm charts against the Kubernetes schemas" diff --git a/scripts/run.sh b/scripts/run.sh index a5fa219..5ceebe3 100755 --- a/scripts/run.sh +++ b/scripts/run.sh @@ -12,11 +12,11 @@ do $HELM_PLUGIN_DIR/bin/kubeval $1 exit ;; - --strict|--exit-on-error|--openshift|--force-color|--ignore-missing-schemas) + --strict|--exit-on-error|--insecure-skip-tls-verify|--openshift|--quiet|--force-color|--ignore-missing-schemas) kubeval_options+=("$1") shift ;; - --output|-o|--kubernetes-version|-v|--schema-location|-s|--skip-kinds) + --additional-schema-locations|--ignored-filename-patterns|-i|--output|-o|--kubernetes-version|-v|--reject-kinds|--schema-location|-s|--skip-kinds) kubeval_options+=("$1") kubeval_options+=("$2") shift 2 From c40cef763afee2f833e284d1faeefeecdb5ccb93 Mon Sep 17 00:00:00 2001 From: andytson-inviqa Date: Fri, 1 Jul 2022 10:59:47 +0100 Subject: [PATCH 2/3] Update kubeval to 0.16.1 and pass kube-version to helm (#1) Expects either helm v2 or helm v3 3.6.0+ --- plugin.yaml | 2 +- scripts/run.sh | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/plugin.yaml b/plugin.yaml index 23540c3..ffca9b0 100644 --- a/plugin.yaml +++ b/plugin.yaml @@ -1,5 +1,5 @@ name: "kubeval" -version: "0.15.0" +version: "0.16.1" usage: "Validate Helm charts" description: |- "Validate Helm charts against the Kubernetes schemas" diff --git a/scripts/run.sh b/scripts/run.sh index 5ceebe3..0924f4e 100755 --- a/scripts/run.sh +++ b/scripts/run.sh @@ -16,7 +16,14 @@ do kubeval_options+=("$1") shift ;; - --additional-schema-locations|--ignored-filename-patterns|-i|--output|-o|--kubernetes-version|-v|--reject-kinds|--schema-location|-s|--skip-kinds) + --kubernetes-version|--kube-version) + kubeval_options+=(--kubernetes-version) + kubeval_options+=("$2") + helm_options+=(--kube-version) + helm_options+=("$2") + shift 2 + ;; + --additional-schema-locations|--ignored-filename-patterns|-i|--output|-o|-v|--reject-kinds|--schema-location|-s|--skip-kinds) kubeval_options+=("$1") kubeval_options+=("$2") shift 2 From 98558243b6bc0207a97e1e03a24d1fced9d21a52 Mon Sep 17 00:00:00 2001 From: andytson-inviqa Date: Fri, 1 Jul 2022 11:20:24 +0100 Subject: [PATCH 3/3] Fix issue with latest kubeval using v prefix (#2) --- scripts/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/install.sh b/scripts/install.sh index e44d3a8..33bec90 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -12,7 +12,7 @@ case "${unameOut}" in *) os="UNKNOWN:${unameOut}" esac -url="https://github.com/instrumenta/kubeval/releases/download/${version}/kubeval-${os}-amd64.tar.gz" +url="https://github.com/instrumenta/kubeval/releases/download/v${version}/kubeval-${os}-amd64.tar.gz" if [ "$url" = "" ] then