-
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
Can't validate multiple Objects in a Single Manifest #123
Comments
I think you should replace this: kubectl-validate/pkg/utils/yaml.go Lines 14 to 26 in 69421c1
by something like this: func SplitYamlDocuments(fileBytes Document) ([]Document, error) {
var documents [][]byte
decoder := utilyaml.NewDocumentDecoder(ioutil.NopCloser(bytes.NewReader(fileBytes)))
for {
document, err := decoder.Read([]byte{})
...
} |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
/remove-lifecycle stale |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
/remove-lifecycle stale |
What happened?
I can't validate multiple Objects in a Single Manifest
What did you expect to happen?
It should fail if one of the objects in a manifest file is invalid
How can we reproduce it (as minimally and precisely as possible)?
Using a
manifest.yaml
file with multiple Objects:and running
kubectl-validate manifest.yaml
, it return:but it should fail with this error message:
Anything else we need to know?
No response
Kubernetes version
Using kubectl-validate 0.0.3
The text was updated successfully, but these errors were encountered: