Commit 5e2d618
committed
[golanci.yaml.tmpl] disable modernize omitzero plugin with controllergen
This plugin is breaking practically all kubernetes-operators that have
CRDs. The CRDs are generated from golang types, where the omitempty tag
for nested structs has an direct effect on the generated CRD - they just
don't work without omitempty.
```
Error: api/v1/eviction_types.go:91:20: omitzero: Omitempty has no
effect on nested struct fields (modernize)
```1 parent 90760e5 commit 5e2d618
2 files changed
+7
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
157 | 163 | | |
158 | 164 | | |
159 | 165 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
39 | 40 | | |
40 | 41 | | |
0 commit comments