From 6b0bc5a97b0e23407506cb2e6baf0ccf2953d829 Mon Sep 17 00:00:00 2001 From: Clement Chevalier Date: Tue, 5 Mar 2024 11:21:59 +0100 Subject: [PATCH] fix: -skip parameter not properly used --- plugin.yaml | 2 +- scripts/plugin_wrapper.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plugin.yaml b/plugin.yaml index 20aab58..1921638 100644 --- a/plugin.yaml +++ b/plugin.yaml @@ -1,5 +1,5 @@ name: kubeconform -version: 0.1.16 +version: 0.1.17 usage: Kubernetes manifest validation tool for Helm charts description: Kubernetes manifest validation tool for Helm charts ignoreFlags: false diff --git a/scripts/plugin_wrapper.py b/scripts/plugin_wrapper.py index 7478dea..904240e 100755 --- a/scripts/plugin_wrapper.py +++ b/scripts/plugin_wrapper.py @@ -303,8 +303,8 @@ def parse_args( for v in a.schema_location: args["kubeconform"] += ["-schema-location", v] - if a.skip is True: - args["kubeconform"] += ["-skip"] + if a.skip is not None: + args["kubeconform"] += ["-skip", a.skip] if a.strict is True: args["kubeconform"] += ["-strict"]