You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Validate a Kubernetes YAML file against the relevant schema
109
143
@@ -119,7 +153,8 @@ Flags:
119
153
--ignore-missing-schemas Skip validation for resource definitions without a schema
120
154
-v, --kubernetes-version string Version of Kubernetes to validate against (default "master")
121
155
--openshift Use OpenShift schemas instead of upstream Kubernetes
122
-
--schema-location string Base URL used to download schemas. Can also be specified with the environment variable KUBEVAL_SCHEMA_LOCATION (default "https://kubernetesjsonschema.dev")
156
+
-o, --output string The format of the output of this script. Options are: [stdout json]
157
+
--schema-location string Base URL used to download schemas. Can also be specified with the environment variable KUBEVAL_SCHEMA_LOCATION
123
158
--skip-kinds strings Comma-separated list of case-sensitive kinds to skip when validating against schemas
124
159
--strict Disallow additional properties not in schema
cmd.Flags().StringSliceVar(&config.KindsToSkip, "skip-kinds", []string{}, "Comma-separated list of case-sensitive kinds to skip when validating against schemas")
61
69
cmd.Flags().StringVarP(&config.SchemaLocation, "schema-location", "s", "", "Base URL used to download schemas. Can also be specified with the environment variable KUBEVAL_SCHEMA_LOCATION.")
62
70
cmd.Flags().StringVarP(&config.KubernetesVersion, "kubernetes-version", "v", "master", "Version of Kubernetes to validate against")
71
+
cmd.Flags().StringVarP(&config.OutputFormat, "output", "o", "", fmt.Sprintf("The format of the output of this script. Options are: %v", validOutputs()))
0 commit comments