You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
portainer/app/kubernetes/pod/payloads/affinities.js

30 lines
810 B

export function KubernetesPodNodeAffinityPayload() {
return {
requiredDuringSchedulingIgnoredDuringExecution: {
nodeSelectorTerms: [], // []KubernetesNodeSelectorTermPayload
},
preferredDuringSchedulingIgnoredDuringExecution: [], // []KubernetesPreferredSchedulingTermPayload
};
}
export function KubernetesPreferredSchedulingTermPayload() {
return {
weight: 1,
preference: {}, // KubernetesNodeSelectorTermPayload
};
}
export function KubernetesNodeSelectorTermPayload() {
return {
matchExpressions: [], // []KubernetesNodeSelectorRequirementPayload
};
}
export function KubernetesNodeSelectorRequirementPayload() {
return {
key: '', // string
operator: '', // KubernetesPodNodeAffinityNodeSelectorRequirementOperators
values: [], // []string
};
}