commit | 556c9c04c42de61878fa88adb5f112195786be29 | [log] [tgz] |
---|---|---|
author | Jian Li <pyguni@gmail.com> | Wed Aug 23 23:38:12 2023 +0900 |
committer | Jian Li <pyguni@gmail.com> | Wed Aug 23 23:38:12 2023 +0900 |
tree | 635b2ba893249b9834296e521eec2f5db1b55c88 | |
parent | 1bbd500d28ae14f874c05a5fd91195bde5a84f41 [diff] |
Fix: register TopologySpreadConstraint class in kubevirt app Change-Id: Ie343bf294150c63c90301c64e095333f5368f865
diff --git a/apps/kubevirt-networking/app/src/main/java/org/onosproject/kubevirtnetworking/impl/DistributedKubevirtPodStore.java b/apps/kubevirt-networking/app/src/main/java/org/onosproject/kubevirtnetworking/impl/DistributedKubevirtPodStore.java index 86d103c..77ecf1b 100644 --- a/apps/kubevirt-networking/app/src/main/java/org/onosproject/kubevirtnetworking/impl/DistributedKubevirtPodStore.java +++ b/apps/kubevirt-networking/app/src/main/java/org/onosproject/kubevirtnetworking/impl/DistributedKubevirtPodStore.java
@@ -83,6 +83,7 @@ import io.fabric8.kubernetes.api.model.ServiceAccountTokenProjection; import io.fabric8.kubernetes.api.model.TCPSocketAction; import io.fabric8.kubernetes.api.model.Toleration; +import io.fabric8.kubernetes.api.model.TopologySpreadConstraint; import io.fabric8.kubernetes.api.model.Volume; import io.fabric8.kubernetes.api.model.VolumeDevice; import io.fabric8.kubernetes.api.model.VolumeMount; @@ -226,6 +227,7 @@ .register(PreferredSchedulingTerm.class) .register(PodAffinity.class) .register(WeightedPodAffinityTerm.class) + .register(TopologySpreadConstraint.class) .register(PodAffinityTerm.class) .register(LabelSelector.class) .register(LabelSelectorRequirement.class)