From 8d4a59187f29da0946e6f28f28de23d9499e075f Mon Sep 17 00:00:00 2001 From: Martin Schuppert Date: Tue, 3 Dec 2024 13:42:54 +0100 Subject: [PATCH] Add missing tags to []conditions which got reported by crd checker Adds the task which got reported by the crd checker recently added as a pre-commit validation. In a follow up, we should integrate the new ObservedGeneration for a condition [1]. The observedGeneration represents the .metadata.generation that the condition was set based upon. [1] https://github.com/kubernetes/apimachinery/blob/release-1.29/pkg/apis/meta/v1/types.go#L1518 Signed-off-by: Martin Schuppert --- modules/common/condition/types.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/common/condition/types.go b/modules/common/condition/types.go index 11c05959..0a6a7310 100644 --- a/modules/common/condition/types.go +++ b/modules/common/condition/types.go @@ -76,6 +76,10 @@ type Condition struct { } // Conditions provide observations of the operational state of a API resource. +// +patchMergeKey=type +// +patchStrategy=merge +// +listType=map +// +listMapKey=type type Conditions []Condition // conditionGroup defines a group of conditions with the same status and severity,