diff --git a/api/v1/eviction_types.go b/api/v1/eviction_types.go index 43ab084..b96ad00 100644 --- a/api/v1/eviction_types.go +++ b/api/v1/eviction_types.go @@ -83,6 +83,8 @@ type EvictionStatus struct { OutstandingInstances []string `json:"outstandingInstances"` // Conditions is an array of current conditions + // +listType=map + // +listMapKey=type Conditions []metav1.Condition `json:"conditions,omitempty"` } diff --git a/api/v1/hypervisor_types.go b/api/v1/hypervisor_types.go index db269b7..34f73b7 100644 --- a/api/v1/hypervisor_types.go +++ b/api/v1/hypervisor_types.go @@ -553,7 +553,9 @@ type HypervisorStatus struct { Evicted bool `json:"evicted,omitempty"` // Represents the Hypervisor node conditions. - Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,1,rep,name=conditions"` + // +listType=map + // +listMapKey=type + Conditions []metav1.Condition `json:"conditions,omitempty"` SpecHash string `json:"specHash,omitempty"` } diff --git a/charts/openstack-hypervisor-operator/crds/kvm.cloud.sap_evictions.yaml b/charts/openstack-hypervisor-operator/crds/kvm.cloud.sap_evictions.yaml index 36e0ab2..a196abd 100644 --- a/charts/openstack-hypervisor-operator/crds/kvm.cloud.sap_evictions.yaml +++ b/charts/openstack-hypervisor-operator/crds/kvm.cloud.sap_evictions.yaml @@ -129,6 +129,9 @@ spec: - type type: object type: array + x-kubernetes-list-map-keys: + - type + x-kubernetes-list-type: map hypervisorServiceId: type: string outstandingInstances: diff --git a/charts/openstack-hypervisor-operator/crds/kvm.cloud.sap_hypervisors.yaml b/charts/openstack-hypervisor-operator/crds/kvm.cloud.sap_hypervisors.yaml index a549142..ef2e978 100644 --- a/charts/openstack-hypervisor-operator/crds/kvm.cloud.sap_hypervisors.yaml +++ b/charts/openstack-hypervisor-operator/crds/kvm.cloud.sap_hypervisors.yaml @@ -468,6 +468,9 @@ spec: - type type: object type: array + x-kubernetes-list-map-keys: + - type + x-kubernetes-list-type: map domainCapabilities: description: |- Auto-discovered domain capabilities relevant to check if a VM