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/models/resource-quota/payloads.js

22 lines
700 B

import { KubernetesCommonMetadataPayload } from 'Kubernetes/models/common/payloads';
import {
KubernetesPortainerResourceQuotaCPURequest,
KubernetesPortainerResourceQuotaMemoryRequest,
KubernetesPortainerResourceQuotaCPULimit,
KubernetesPortainerResourceQuotaMemoryLimit,
} from './models';
export function KubernetesResourceQuotaCreatePayload() {
return {
metadata: new KubernetesCommonMetadataPayload(),
spec: {
hard: {
[KubernetesPortainerResourceQuotaCPURequest]: 0,
[KubernetesPortainerResourceQuotaMemoryRequest]: 0,
[KubernetesPortainerResourceQuotaCPULimit]: 0,
[KubernetesPortainerResourceQuotaMemoryLimit]: 0,
},
},
};
}