Skip to content

Commit e9e6359

Browse files
committed
feat: add exclusion for pacemaker required conditions
Signed-off-by: ehila <ehila@redhat.com>
1 parent 3f0cd07 commit e9e6359

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.golangci.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,12 @@ linters:
111111
# Silence norefs lint for `Ref` field in ClusterAPI as it refers to an OCI image reference, not a kube object reference.
112112
path: operator/v1alpha1/types_clusterapi.go
113113
text: "noreferences: naming convention \"no-references\": field ClusterAPIInstallerComponentImage.Ref: field names should not contain reference-related words"
114+
- linters:
115+
- kubeapilinter
116+
# PacemakerCluster intentionally marks Conditions as required with XValidation rules
117+
# to enforce specific condition types are always present.
118+
path: etcd/v1/types_pacemakercluster.go
119+
text: "conditions: Conditions field in (PacemakerClusterStatus|PacemakerClusterNodeStatus|PacemakerClusterFencingAgentStatus|PacemakerClusterResourceStatus) is missing the following markers: optional"
114120
- linters:
115121
- kubeapilinter
116122
path: features|payload-command/*.go

0 commit comments

Comments
 (0)