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
text: "field Ref is marked as required, should not be a pointer"
171
+
172
+
# Audit the entire hook types + builtins from a serialization point of view when bumping the API (this is not a CRD)
173
+
- path: "api/runtime/hooks/v1alpha1/*"
174
+
text: "optionalfields"
175
+
linters:
176
+
- kubeapilinter
177
+
178
+
# KAL does not handle omitzero correctly yet: https://github.com/kubernetes-sigs/kube-api-linter/pull/115
179
+
- path: "api/.*"
180
+
text: "optionalfields: field Status is optional and should (be a pointer|have the omitempty tag)"
181
+
linters:
182
+
- kubeapilinter
183
+
- path: "api/bootstrap/kubeadm/v1beta2/*"
184
+
text: "optionalfields: field (Spec|NodeRegistration|LocalAPIEndpoint|Etcd|APIServer|ControllerManager|Scheduler|DNS|Discovery|ObjectMeta) is optional and should (be a pointer|have the omitempty tag)"
185
+
linters:
186
+
- kubeapilinter
187
+
- path: "api/controlplane/kubeadm/v1beta2/*"
188
+
text: "optionalfields: field (Spec|ObjectMeta|KubeadmConfigSpec) is optional and should (be a pointer|have the omitempty tag)"
189
+
linters:
190
+
- kubeapilinter
191
+
- path: "api/core/v1beta2/cluster_types.go"
192
+
text: "optionalfields: field (ControlPlaneEndpoint|ControlPlane|Metadata) is optional and should (be a pointer|have the omitempty tag)"
193
+
linters:
194
+
- kubeapilinter
195
+
- path: "api/core/v1beta2/clusterclass_types.go"
196
+
text: "optionalfields: field (Workers|Metadata|ControlPlane|Infrastructure|DeprecatedV1Beta1Metadata) is optional and should (be a pointer|have the omitempty tag)"
0 commit comments