mirror of
https://github.com/yannh/kubeconform.git
synced 2026-02-11 05:59:22 +00:00
Update Readme.md to add fullgroup explanation (#220)
This is a follow-up to #219 to add a short description on how to use the `fullgroup` variable.
This commit is contained in:
parent
452f1fe1db
commit
278385f4c9
1 changed files with 5 additions and 1 deletions
|
|
@ -256,12 +256,16 @@ $ python ./scripts/openapi2jsonschema.py https://raw.githubusercontent.com/aws/a
|
|||
JSON schema written to trainingjob_v1.json
|
||||
```
|
||||
|
||||
By default, the file name output format is `{kind}_{version}`. The `FILENAME_FORMAT` environment variable can be used to change the output file name (Available variables: `kind`, `group`, `version`):
|
||||
By default, the file name output format is `{kind}_{version}`. The `FILENAME_FORMAT` environment variable can be used to change the output file name (Available variables: `kind`, `group`, `fullgroup`, `version`):
|
||||
|
||||
```
|
||||
$ export FILENAME_FORMAT='{kind}-{group}-{version}'
|
||||
$ ./scripts/openapi2jsonschema.py https://raw.githubusercontent.com/aws/amazon-sagemaker-operator-for-k8s/master/config/crd/bases/sagemaker.aws.amazon.com_trainingjobs.yaml
|
||||
JSON schema written to trainingjob-sagemaker-v1.json
|
||||
|
||||
$ export FILENAME_FORMAT='{kind}-{fullgroup}-{version}'
|
||||
$ ./scripts/openapi2jsonschema.py https://raw.githubusercontent.com/aws/amazon-sagemaker-operator-for-k8s/master/config/crd/bases/sagemaker.aws.amazon.com_trainingjobs.yaml
|
||||
JSON schema written to trainingjob-sagemaker.aws.amazon.com-v1.json
|
||||
```
|
||||
|
||||
After converting your CRDs to JSON schema files, you can use `kubeconform` to validate your CRs against them:
|
||||
|
|
|
|||
Loading…
Reference in a new issue