Skip to content

Commit 8d4a591

Browse files
committed
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 <[email protected]>
1 parent 6dc9fd0 commit 8d4a591

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

modules/common/condition/types.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,10 @@ type Condition struct {
7676
}
7777

7878
// Conditions provide observations of the operational state of a API resource.
79+
// +patchMergeKey=type
80+
// +patchStrategy=merge
81+
// +listType=map
82+
// +listMapKey=type
7983
type Conditions []Condition
8084

8185
// conditionGroup defines a group of conditions with the same status and severity,

0 commit comments

Comments
 (0)