From e7a1a289ff76f6ac50cbadc233d90bb2c9b9cb03 Mon Sep 17 00:00:00 2001 From: Arthur Lutz Date: Tue, 18 Aug 2020 10:51:31 +0200 Subject: [PATCH 1/3] [docs/index.md] add --ignored-{filename|path} patterns Fixes #249 --- docs/index.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/index.md b/docs/index.md index 4e4001f..b450ec2 100644 --- a/docs/index.md +++ b/docs/index.md @@ -151,6 +151,8 @@ Flags: --force-color Force colored output even if stdout is not a TTY -h, --help help for kubeval --ignore-missing-schemas Skip validation for resource definitions without a schema + --ignored-path-patterns A comma-separated list of regular expressions specifying paths to ignore + --ignored-filename-patterns An alias for ignored-path-patterns -v, --kubernetes-version string Version of Kubernetes to validate against (default "master") --openshift Use OpenShift schemas instead of upstream Kubernetes -o, --output string The format of the output of this script. Options are: [stdout json] From 00aa03aff3bb9a6da984e374dc73ab48ab629c4f Mon Sep 17 00:00:00 2001 From: Arthur Lutz Date: Tue, 18 Aug 2020 10:53:25 +0200 Subject: [PATCH 2/3] [docs/index] copied generated output of --help --- docs/index.md | 34 ++++++++++++++++++---------------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/docs/index.md b/docs/index.md index b450ec2..0b8045a 100644 --- a/docs/index.md +++ b/docs/index.md @@ -138,28 +138,30 @@ not ok 1 - fixtures/invalid.yaml (ReplicationController) - spec.replicas: Invali ## Full usage instructions ```console -$ kubeval --help Validate a Kubernetes YAML file against the relevant schema Usage: kubeval [file...] [flags] Flags: - -d, --directories strings A comma-separated list of directories to recursively search for YAML documents - --exit-on-error Immediately stop execution when the first error is encountered - -f, --filename string filename to be displayed when testing manifests read from stdin (default "stdin") - --force-color Force colored output even if stdout is not a TTY - -h, --help help for kubeval - --ignore-missing-schemas Skip validation for resource definitions without a schema - --ignored-path-patterns A comma-separated list of regular expressions specifying paths to ignore - --ignored-filename-patterns An alias for ignored-path-patterns - -v, --kubernetes-version string Version of Kubernetes to validate against (default "master") - --openshift Use OpenShift schemas instead of upstream Kubernetes - -o, --output string The format of the output of this script. Options are: [stdout json] - --schema-location string Base URL used to download schemas. Can also be specified with the environment variable KUBEVAL_SCHEMA_LOCATION - --skip-kinds strings Comma-separated list of case-sensitive kinds to skip when validating against schemas - --strict Disallow additional properties not in schema - --version version for kubeval + --additional-schema-locations strings Comma-seperated list of secondary base URLs used to download schemas + -d, --directories strings A comma-separated list of directories to recursively search for YAML documents + --exit-on-error Immediately stop execution when the first error is encountered + -f, --filename string filename to be displayed when testing manifests read from stdin (default "stdin") + --force-color Force colored output even if stdout is not a TTY + -h, --help help for kubeval + --ignore-missing-schemas Skip validation for resource definitions without a schema + -i, --ignored-filename-patterns strings A comma-separated list of regular expressions specifying filenames to ignore + --insecure-skip-tls-verify If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure + -v, --kubernetes-version string Version of Kubernetes to validate against (default "master") + --openshift Use OpenShift schemas instead of upstream Kubernetes + -o, --output string The format of the output of this script. Options are: [stdout json tap] + --quiet Silences any output aside from the direct results + --reject-kinds strings Comma-separated list of case-sensitive kinds to prohibit validating against schemas + -s, --schema-location string Base URL used to download schemas. Can also be specified with the environment variable KUBEVAL_SCHEMA_LOCATION. + --skip-kinds strings Comma-separated list of case-sensitive kinds to skip when validating against schemas + --strict Disallow additional properties not in schema + --version version for kubeval ``` The command has three important features: From 0ab8f20d4e4faded96b0638018bf437ea066170e Mon Sep 17 00:00:00 2001 From: Arthur Lutz Date: Tue, 18 Aug 2020 10:54:16 +0200 Subject: [PATCH 3/3] [docs/index] missing command re-added --- docs/index.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/index.md b/docs/index.md index 0b8045a..f701958 100644 --- a/docs/index.md +++ b/docs/index.md @@ -138,6 +138,7 @@ not ok 1 - fixtures/invalid.yaml (ReplicationController) - spec.replicas: Invali ## Full usage instructions ```console +$ kubeval --help Validate a Kubernetes YAML file against the relevant schema Usage: