Skip to content

Commit 20a1532

Browse files
authored
Merge pull request #3223 from Nordix/lentzi90/kal-conflictingmarkers
🌱 Enable conflictingmarkers linter and fix issues
2 parents a9e6c9e + 658edb0 commit 20a1532

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)