mirror of
https://github.com/onepanelio/onepanel.git
synced 2025-10-27 15:30:20 +08:00
Formatting feedback and fix.
This commit is contained in:
@@ -391,12 +391,14 @@ func ensureWorkflowRunsOnDedicatedNode(wf *wfv1.Workflow, config SystemConfig) (
|
|||||||
wf.Spec.Affinity = &corev1.Affinity{
|
wf.Spec.Affinity = &corev1.Affinity{
|
||||||
PodAntiAffinity: &corev1.PodAntiAffinity{
|
PodAntiAffinity: &corev1.PodAntiAffinity{
|
||||||
RequiredDuringSchedulingIgnoredDuringExecution: []corev1.PodAffinityTerm{
|
RequiredDuringSchedulingIgnoredDuringExecution: []corev1.PodAffinityTerm{
|
||||||
{LabelSelector: &metav1.LabelSelector{
|
{
|
||||||
|
LabelSelector: &metav1.LabelSelector{
|
||||||
MatchExpressions: []metav1.LabelSelectorRequirement{
|
MatchExpressions: []metav1.LabelSelectorRequirement{
|
||||||
{Key: antiAffinityLabelKey, Operator: "In", Values: []string{nodeSelectorVal}},
|
{Key: antiAffinityLabelKey, Operator: "In", Values: []string{nodeSelectorVal}},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
TopologyKey: "kubernetes.io/hostname"},
|
TopologyKey: "kubernetes.io/hostname",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user