Skip to content

Commit f35d93f

Browse files
authored
add list annotations to Conditions array (#111)
1 parent 0be9b58 commit f35d93f

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

api/v1beta2/appwrapper_types.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,11 @@ type AppWrapperStatus struct {
100100
// - DeletingResources: The contained resources are in the process of being deleted from the cluster
101101
//
102102
//+optional
103-
Conditions []metav1.Condition `json:"conditions,omitempty"`
103+
//+patchMergeKey=type
104+
//+patchStrategy=merge
105+
//+listType=map
106+
//+listMapKey=type
107+
Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"`
104108
}
105109

106110
// AppWrapperPhase is the phase of the appwrapper

config/crd/bases/workload.codeflare.dev_appwrappers.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,9 @@ spec:
246246
- type
247247
type: object
248248
type: array
249+
x-kubernetes-list-map-keys:
250+
- type
251+
x-kubernetes-list-type: map
249252
phase:
250253
description: Phase of the AppWrapper object
251254
type: string

0 commit comments

Comments
 (0)