Closed rahulchheda closed 4 years ago
Looks good @rahulchheda . Wondering if we should rename this file to a more generic appFilterCheck over annotationCheck - considering we now have the option to skip appinfo completely OR run w/ annotationCheck disabled
Signed-off-by: Rahul M Chheda rchheda@infracloud.io
What this PR does / why we need it:
Which issue this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close that issue when PR gets merged): fixes #Special notes for your reviewer:
How does this PR help?
So, for example, a contributor wants to add a function for the validation of namespace.
Steps needed to be performed:
func namespaceValidation(ce *crv1alpha1.ChaosEngine) error
is to be defined.err = wh.CollectValidationErrors(&chaosEngine, wh.ValidateChaosTarget, wh.namespaceValidation)
Checklist:
documentation
tagbreaking-changes
tagrequires-upgrade
tag