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