Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: YAML rendering of structs embedded in rules (#283)
## Description In previous PRs, we made the plugin rules implement the new `validationrule.Interface` interface. We did not include YAML tags in rules to specify that the new field (`validationrule.ManuallyNamed` or `validationrule.AutomaticallyNamed` depending on the rule) should not be included when the rules are rendered to YAML. The validatorctl CLI renders the rules to YAML as part of what it does, so this caused errors when validatorctl tried to apply validator CRDs it generated to its cluster. Signed-off-by: Matt Welke <matt.welke@spectrocloud.com>
- Loading branch information