Commit 883c0bf
Matt Welke
fix: YAML rendering of structs embedded in rules (#351)
## 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>1 parent e45ddc9 commit 883c0bf
1 file changed
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
| 73 | + | |
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | | - | |
| 101 | + | |
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
131 | | - | |
| 131 | + | |
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
148 | | - | |
| 148 | + | |
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
| |||
0 commit comments