mirror of https://github.com/portainer/portainer
30 lines
810 B
JavaScript
30 lines
810 B
JavaScript
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
|
|
};
|
|
}
|