Open
Description
We found this while using KAL in Cluster API, xref: kubernetes-sigs/cluster-api#12299 (comment)
The field looks like this
// +optional
// +kubebuilder:validation:MinItems=0
// +kubebuilder:validation:MaxItems=100
Taints *[]corev1.Taint `json:"taints,omitempty"`
And we get this finding
api/bootstrap/kubeadm/v1beta2/kubeadm_types.go:304:2: optionalfields: field Taints is optional but the underlying type does not need to be a pointer. The pointer should be removed. (kubeapilinter)
Taints *[]corev1.Taint `json:"taints,omitempty"`
^
Metadata
Metadata
Assignees
Labels
No labels