mirror of
https://github.com/portainer/portainer.git
synced 2025-07-19 13:29:41 +02:00
* feat(nodes limits)Review the resource assignement when creating a Kubernetes application EE-437 * feat(nodes limits) review feedback EE-437 * feat(nodes limits) workaround for lodash cloneDeep not working in production mode EE-437 * feat(nodes limits) calculate max cpu of slide bar with floor function instead of round function EE-437 * feat(nodes limits) another review feedback EE-437 * feat(nodes limits) cleanup code EE-437 * feat(nodes limits) EE-437 pr feedback update * feat(nodes limits) EE-437 rebase onto develop branch * feat(nodes limits) EE-437 another pr feedback update Co-authored-by: Simon Meng <simon.meng@portainer.io>
21 lines
567 B
JavaScript
21 lines
567 B
JavaScript
import angular from 'angular';
|
|
|
|
angular.module('portainer.kubernetes').factory('KubernetesNodesLimits', KubernetesNodesLimitsFactory);
|
|
|
|
/* @ngInject */
|
|
function KubernetesNodesLimitsFactory($resource, API_ENDPOINT_KUBERNETES, EndpointProvider) {
|
|
const url = API_ENDPOINT_KUBERNETES + '/:endpointId/nodes_limits';
|
|
return $resource(
|
|
url,
|
|
{
|
|
endpointId: EndpointProvider.endpointID,
|
|
},
|
|
{
|
|
get: {
|
|
method: 'GET',
|
|
ignoreLoadingBar: true,
|
|
transformResponse: (data) => ({ data: JSON.parse(data) }),
|
|
},
|
|
}
|
|
);
|
|
}
|