Skip to content

Commit

Permalink
Merge pull request ovn-kubernetes#4664 from npinaeva/udn-status
Browse files Browse the repository at this point in the history
UDN: allow multiple conditions from different fieldManagers to co-exist in the status.
  • Loading branch information
tssurya authored Aug 29, 2024
2 parents da1386b + a95e101 commit 28b1db4
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 28b1db4

Please sign in to comment.