Skip to content

Conversation

@brendanjryan
Copy link
Contributor

Changes the output produced by the --ignore-missing-schemas to only print Warning: Set to ignore missing schemas once per invocation instead of once per file provided.

Before:

bin/kubeval --ignore-missing-schemas fixtures/valid.yaml fixtures/valid.yaml
Warning: Set to ignore missing schemas
The file fixtures/valid.yaml contains a valid ReplicationController
Warning: Set to ignore missing schemas
The file fixtures/valid.yaml contains a valid ReplicationController

After:

bin/kubeval --ignore-missing-schemas fixtures/valid.yaml fixtures/valid.yaml 
Warning: Set to ignore missing schemas
The file fixtures/valid.yaml contains a valid ReplicationController
The file fixtures/valid.yaml contains a valid ReplicationController

@brendanjryan
Copy link
Contributor Author

cc @garethr

@garethr
Copy link
Collaborator

garethr commented Aug 13, 2019

Looks like this needs a rebase with master to merge, but thanks for the fix. I'll probably wait for this and docs for #169 and ship a new release with those in.

@brendanjryan brendanjryan changed the title donly logs missing schema warning once Only logs missing schema warning once Aug 13, 2019
# Conflicts:
#	kubeval/kubeval.go
@brendanjryan
Copy link
Contributor Author

Thank YOU. It should be good to go now

@garethr garethr merged commit ecd0802 into instrumenta:master Aug 13, 2019
@brendanjryan brendanjryan deleted the bjr-single-warning branch August 14, 2019 19:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants