You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: YAML rendering of structs embedded in rules (#481)
## 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.
This fixes it by adding the YAML tags.
Signed-off-by: Matt Welke <matt.welke@spectrocloud.com>
0 commit comments