ec validate policy
Validate the provided EnterpriseContractPolicy spec
Synopsis
Validate the provided EnterpriseContractPolicy spec against the EnterpriseContractPolicy spec schema used in this version of the ec CLI
ec validate policy [flags]
Examples
Validate a local policy configuration file: ec validate policy --policy-configuration policy.yaml
Validate a policy configuration file from a github repository: ec validate policy --policy-configuration github.com/org/repo/policy.yaml
Options
- -h, --help
-
help for policy (Default: false)
- -p, --policy
-
Policy configuration as:
-
file (policy.yaml)
-
git reference (github.com/user/repo//default?ref=main), or
-
inline JSON ('{sources: {…}}')")
-
Options inherited from parent commands
- --debug
-
same as verbose but also show function names and line numbers (Default: false)
- --kubeconfig
-
path to the Kubernetes config file to use
- --logfile
-
file to write the logging output. If not specified logging output will be written to stderr
- --quiet
-
less verbose output (Default: false)
- --show-successes
-
(Default: false)
- --timeout
-
max overall execution duration (Default: 5m0s)
- --trace
-
enable trace logging, set one or more comma separated values: none,all,perf,cpu,mem,opa,log (Default: none)
- --verbose
-
more verbose output (Default: false)