mirror of https://github.com/portainer/portainer
fix edit namespace resource quota issue (#10063)
parent
3ea6d2b9d9
commit
360969c93e
|
@ -16,7 +16,7 @@ import { FeatureId } from '@/react/portainer/feature-flags/enums';
|
||||||
import { updateIngressControllerClassMap, getIngressControllerClassMap } from '@/react/kubernetes/cluster/ingressClass/utils';
|
import { updateIngressControllerClassMap, getIngressControllerClassMap } from '@/react/kubernetes/cluster/ingressClass/utils';
|
||||||
import { confirmUpdate } from '@@/modals/confirm';
|
import { confirmUpdate } from '@@/modals/confirm';
|
||||||
import { confirmUpdateNamespace } from '@/react/kubernetes/namespaces/ItemView/ConfirmUpdateNamespace';
|
import { confirmUpdateNamespace } from '@/react/kubernetes/namespaces/ItemView/ConfirmUpdateNamespace';
|
||||||
import { getMetricsForAllNodes, getMetricsForAllPods } from '@/react/kubernetes/services/service.ts';
|
import { getMetricsForAllPods } from '@/react/kubernetes/services/service.ts';
|
||||||
|
|
||||||
class KubernetesResourcePoolController {
|
class KubernetesResourcePoolController {
|
||||||
/* #region CONSTRUCTOR */
|
/* #region CONSTRUCTOR */
|
||||||
|
@ -36,7 +36,8 @@ class KubernetesResourcePoolController {
|
||||||
KubernetesApplicationService,
|
KubernetesApplicationService,
|
||||||
KubernetesIngressService,
|
KubernetesIngressService,
|
||||||
KubernetesVolumeService,
|
KubernetesVolumeService,
|
||||||
KubernetesNamespaceService
|
KubernetesNamespaceService,
|
||||||
|
KubernetesNodeService
|
||||||
) {
|
) {
|
||||||
Object.assign(this, {
|
Object.assign(this, {
|
||||||
$async,
|
$async,
|
||||||
|
@ -54,6 +55,7 @@ class KubernetesResourcePoolController {
|
||||||
KubernetesIngressService,
|
KubernetesIngressService,
|
||||||
KubernetesVolumeService,
|
KubernetesVolumeService,
|
||||||
KubernetesNamespaceService,
|
KubernetesNamespaceService,
|
||||||
|
KubernetesNodeService,
|
||||||
});
|
});
|
||||||
|
|
||||||
this.IngressClassTypes = KubernetesIngressClassTypes;
|
this.IngressClassTypes = KubernetesIngressClassTypes;
|
||||||
|
@ -366,7 +368,7 @@ class KubernetesResourcePoolController {
|
||||||
|
|
||||||
const name = this.$state.params.id;
|
const name = this.$state.params.id;
|
||||||
|
|
||||||
const [nodes, pools] = await Promise.all([getMetricsForAllNodes, this.KubernetesResourcePoolService.get('', { getQuota: true })]);
|
const [nodes, pools] = await Promise.all([this.KubernetesNodeService.get(), this.KubernetesResourcePoolService.get('', { getQuota: true })]);
|
||||||
|
|
||||||
this.ingressControllers = [];
|
this.ingressControllers = [];
|
||||||
if (this.state.ingressAvailabilityPerNamespace) {
|
if (this.state.ingressAvailabilityPerNamespace) {
|
||||||
|
|
Loading…
Reference in New Issue