-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
added overlay-schema to readme.md #93
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -76,6 +76,15 @@ If the version is not recognized, `kubectl-validate` will attempt to look up | |
the schemas for the selected version in the official upstream Kubernetes repository | ||
on GitHub. | ||
|
||
## overlay-schemas | ||
|
||
The ```--overlay-schemas``` option enables users to apply JSON patches onto resource schemas before they undergo validation. This feature allows for customizing the behavior of schema validation according to specific requirements. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @alexzielenski I'll let you review the line, you know the usage better than I do. |
||
|
||
```sh | ||
kubectl-validate --overlay-schemas <patch_file> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think the command is correct, aren't you supposed to specify some files you want to validate? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @apelisse yes we are suppose to provide a file to validate this is exactly why I have written patch file in the < > so user can specify it by themselves |
||
``` | ||
|
||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Extra empty line There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Extra empty line |
||
## CRD | ||
|
||
`kubectl-validate` is also capable of validating CRDs. To do that, it needs to be | ||
|
@@ -186,6 +195,7 @@ jobs: | |
run: kubectl-validate ./k8s-manifest/ --version 1.23 | ||
``` | ||
|
||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remove the extra empty line. |
||
## Docker | ||
|
||
This project doesn't have a native docker image (yet), but you can use the given Dockerfile to build one. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Turn this into a title rather than a slug?