Skip to content

Commit

Permalink
Merge pull request #167 from brendanjryan/bjr-schema-shorthand
Browse files Browse the repository at this point in the history
add shorthand for providing schemas
  • Loading branch information
garethr authored Aug 10, 2019
2 parents f21e689 + 6385db9 commit 4ab8594
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kubeval/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func AddKubevalFlags(cmd *cobra.Command, config *Config) *cobra.Command {
cmd.Flags().BoolVar(&config.Strict, "strict", false, "Disallow additional properties not in schema")
cmd.Flags().StringVarP(&config.FileName, "filename", "f", "stdin", "filename to be displayed when testing manifests read from stdin")
cmd.Flags().StringSliceVar(&config.KindsToSkip, "skip-kinds", []string{}, "Comma-separated list of case-sensitive kinds to skip when validating against schemas")
cmd.Flags().StringVar(&config.SchemaLocation, "schema-location", "", "Base URL used to download schemas. Can also be specified with the environment variable KUBEVAL_SCHEMA_LOCATION")
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.")
cmd.Flags().StringVarP(&config.KubernetesVersion, "kubernetes-version", "v", "master", "Version of Kubernetes to validate against")
cmd.Flags().StringVarP(&config.OutputFormat, "output", "o", "", fmt.Sprintf("The format of the output of this script. Options are: %v", validOutputs()))

Expand Down

0 comments on commit 4ab8594

Please sign in to comment.