Skip to content

Commit

Permalink
UDN: allow multiple conditions of different types to co-exist in the
Browse files Browse the repository at this point in the history
status.

Signed-off-by: Nadia Pinaeva <[email protected]>
  • Loading branch information
npinaeva committed Aug 29, 2024
1 parent 1179e4d commit a95e101
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dist/templates/k8s.ovn.org_userdefinednetworks.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,9 @@ spec:
- type
type: object
type: array
x-kubernetes-list-map-keys:
- type
x-kubernetes-list-type: map
type: object
required:
- spec
Expand Down
2 changes: 2 additions & 0 deletions go-controller/pkg/crd/userdefinednetwork/v1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -225,5 +225,7 @@ type UserDefinedNetworkList struct {

// UserDefinedNetworkStatus contains the observed status of the UserDefinedNetwork.
type UserDefinedNetworkStatus struct {
// +listType=map
// +listMapKey=type
Conditions []metav1.Condition `json:"conditions,omitempty"`
}

0 comments on commit a95e101

Please sign in to comment.