Skip to content

SSATags linter suggests SSA markers on field that already has listType on the type #119

Closed
@sbueringer

Description

@sbueringer

Finding

api/core/v1beta2/machine_types.go:534:2: ssatags: Addresses should have a listType marker for proper Server-Side Apply behavior (atomic, set, or map) (kubeapilinter)
        Addresses MachineAddresses `json:"addresses,omitempty"`
        ^

Types

	// addresses is a list of addresses assigned to the machine.
	// This field is copied from the infrastructure provider reference.
	// +optional
	Addresses MachineAddresses `json:"addresses,omitempty"`
// MachineAddresses is a slice of MachineAddress items to be used by infrastructure providers.
// +kubebuilder:validation:MaxItems=32
// +listType=atomic
type MachineAddresses []MachineAddress

controller-gen forces me to put the listType marker on the type, KAL doesn't detect it there

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions