mirror of
https://github.com/portainer/portainer.git
synced 2025-07-22 06:49:40 +02:00
* feat(k8s/application): create application with placement preferences/constraints * feat(k8s/application): edit application placement preferences/constraints
29 lines
810 B
JavaScript
29 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
|
|
};
|
|
}
|