// Validator replaces apimachinery validation in tests.
// Can be set to fail or succeed to test error handling.
// Can confirm if run or not run by surrounding code.
Validator replaces apimachinery validation in tests.
Can be set to fail or succeed to test error handling.
Can confirm if run or not run by surrounding code.
// Validator replaces apimachinery validation in tests . // Can be set to fail or succeed to test error handling . // Can confirm if run or not run by surrounding code .
func (v *FakeValidator) Validator(_ map[string]string) error {
	v.called = true
	if v.happy {
		return nil
	}
	return errors.New(SAD)
}
func ( v * FakeValidator ) Validator ( _ map [ string ] string ) error { v . called = true if v . happy { return nil } return errors . New ( SAD ) }
Validator replaces apimachinery validation in tests.
Validator replaces apimachinery validation in tests .