Skip to content

Commit 658edb0

Browse files
committed
Enable conflictingmarkers linter and fix issues
Signed-off-by: Lennart Jern <lennart.jern@est.tech>
1 parent a9e6c9e commit 658edb0

11 files changed

Lines changed: 6 additions & 17 deletions

.golangci-kal.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ linters:
1616
enable:
1717
- "commentstart" # Ensure comments start with the serialized version of the field name.
1818
- "conditions" # Ensure conditions have the correct json tags and markers.
19-
# - "conflictingmarkers" # Ensure there are no conflicting markers.
19+
- "conflictingmarkers" # Ensure there are no conflicting markers.
2020
- "duplicatemarkers" # Ensure there are no exact duplicate markers for types and fields.
2121
# - "forbiddenmarkers" # Ensure that types and fields do not contain any markers that are forbidden.
2222
- "integers" # Ensure only int32 and int64 are used for integers.

api/v1beta2/identity_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ type OpenStackIdentityReference struct {
2323
// type specifies the identity reference type. Defaults to Secret for backward compatibility.
2424
// +kubebuilder:validation:Enum=Secret;ClusterIdentity
2525
// +kubebuilder:default=Secret
26-
// +required
26+
// +optional
2727
Type string `json:"type,omitempty"`
2828

2929
// name is the name of a Secret (type=Secret) in the same namespace as the resource being provisioned,

api/v1beta2/types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -993,7 +993,7 @@ type APIServerLoadBalancer struct {
993993
// API server loadbalancer, omit the APIServerLoadBalancer field in the
994994
// cluster spec instead.
995995
//
996-
// +required
996+
// +optional
997997
// +kubebuilder:default:=true
998998
Enabled *bool `json:"enabled,omitempty"`
999999

cmd/models-schema/zz_generated.openapi.go

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/crd/bases/infrastructure.cluster.x-k8s.io_openstackclusters.yaml

Lines changed: 0 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/crd/bases/infrastructure.cluster.x-k8s.io_openstackclustertemplates.yaml

Lines changed: 0 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/crd/bases/infrastructure.cluster.x-k8s.io_openstackfloatingippools.yaml

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/crd/bases/infrastructure.cluster.x-k8s.io_openstackmachines.yaml

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/crd/bases/infrastructure.cluster.x-k8s.io_openstackmachinetemplates.yaml

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/crd/bases/infrastructure.cluster.x-k8s.io_openstackservers.yaml

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)