commit | 62ca64db4d728439fe4c12ac4ab045c6ff561a3a | [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:39:15 2023 +0900 |
tree | f99242f8f9db3e4d1015a8b70611ea25e6ad7279 | |
parent | 14541f5887b57f1694bb4fc5c357476b55f97d0d [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)