mirror of
https://github.com/portainer/portainer.git
synced 2025-07-24 07:49:41 +02:00
update endpoint angular state (#10950)
Some checks failed
ci / build_images (map[arch:amd64 platform:linux]) (push) Has been cancelled
ci / build_images (map[arch:amd64 platform:windows version:1809]) (push) Has been cancelled
ci / build_images (map[arch:amd64 platform:windows version:ltsc2022]) (push) Has been cancelled
ci / build_images (map[arch:arm64 platform:linux]) (push) Has been cancelled
/ triage (push) Has been cancelled
Lint / Run linters (push) Has been cancelled
Test / test-client (push) Has been cancelled
Test / test-server (map[arch:amd64 platform:linux]) (push) Has been cancelled
Test / test-server (map[arch:amd64 platform:windows version:1809]) (push) Has been cancelled
Test / test-server (map[arch:amd64 platform:windows version:ltsc2022]) (push) Has been cancelled
Test / test-server (map[arch:arm64 platform:linux]) (push) Has been cancelled
ci / build_manifests (push) Has been cancelled
Close Stale Issues / stale (push) Has been cancelled
Nightly Code Security Scan / Client Dependency Check (push) Has been cancelled
Nightly Code Security Scan / Server Dependency Check (push) Has been cancelled
Nightly Code Security Scan / Image Vulnerability Check (push) Has been cancelled
Nightly Code Security Scan / Analyse Scan Results (push) Has been cancelled
Some checks failed
ci / build_images (map[arch:amd64 platform:linux]) (push) Has been cancelled
ci / build_images (map[arch:amd64 platform:windows version:1809]) (push) Has been cancelled
ci / build_images (map[arch:amd64 platform:windows version:ltsc2022]) (push) Has been cancelled
ci / build_images (map[arch:arm64 platform:linux]) (push) Has been cancelled
/ triage (push) Has been cancelled
Lint / Run linters (push) Has been cancelled
Test / test-client (push) Has been cancelled
Test / test-server (map[arch:amd64 platform:linux]) (push) Has been cancelled
Test / test-server (map[arch:amd64 platform:windows version:1809]) (push) Has been cancelled
Test / test-server (map[arch:amd64 platform:windows version:ltsc2022]) (push) Has been cancelled
Test / test-server (map[arch:arm64 platform:linux]) (push) Has been cancelled
ci / build_manifests (push) Has been cancelled
Close Stale Issues / stale (push) Has been cancelled
Nightly Code Security Scan / Client Dependency Check (push) Has been cancelled
Nightly Code Security Scan / Server Dependency Check (push) Has been cancelled
Nightly Code Security Scan / Image Vulnerability Check (push) Has been cancelled
Nightly Code Security Scan / Analyse Scan Results (push) Has been cancelled
This commit is contained in:
parent
cf88570c39
commit
067a7d148f
1 changed files with 8 additions and 1 deletions
|
@ -50,7 +50,9 @@ class KubernetesCreateApplicationController {
|
||||||
KubernetesVolumeService,
|
KubernetesVolumeService,
|
||||||
RegistryService,
|
RegistryService,
|
||||||
StackService,
|
StackService,
|
||||||
KubernetesNodesLimitsService
|
KubernetesNodesLimitsService,
|
||||||
|
EndpointService,
|
||||||
|
StateManager
|
||||||
) {
|
) {
|
||||||
this.$scope = $scope;
|
this.$scope = $scope;
|
||||||
this.$async = $async;
|
this.$async = $async;
|
||||||
|
@ -69,6 +71,8 @@ class KubernetesCreateApplicationController {
|
||||||
this.RegistryService = RegistryService;
|
this.RegistryService = RegistryService;
|
||||||
this.StackService = StackService;
|
this.StackService = StackService;
|
||||||
this.KubernetesNodesLimitsService = KubernetesNodesLimitsService;
|
this.KubernetesNodesLimitsService = KubernetesNodesLimitsService;
|
||||||
|
this.EndpointService = EndpointService;
|
||||||
|
this.StateManager = StateManager;
|
||||||
|
|
||||||
this.ApplicationDeploymentTypes = KubernetesApplicationDeploymentTypes;
|
this.ApplicationDeploymentTypes = KubernetesApplicationDeploymentTypes;
|
||||||
this.ApplicationDataAccessPolicies = KubernetesApplicationDataAccessPolicies;
|
this.ApplicationDataAccessPolicies = KubernetesApplicationDataAccessPolicies;
|
||||||
|
@ -959,6 +963,9 @@ class KubernetesCreateApplicationController {
|
||||||
$onInit() {
|
$onInit() {
|
||||||
return this.$async(async () => {
|
return this.$async(async () => {
|
||||||
try {
|
try {
|
||||||
|
this.endpoint = await this.EndpointService.endpoint(this.endpoint.Id);
|
||||||
|
await this.StateManager.updateEndpointState(this.endpoint);
|
||||||
|
|
||||||
this.storageClasses = this.endpoint.Kubernetes.Configuration.StorageClasses;
|
this.storageClasses = this.endpoint.Kubernetes.Configuration.StorageClasses;
|
||||||
this.state.useLoadBalancer = this.endpoint.Kubernetes.Configuration.UseLoadBalancer;
|
this.state.useLoadBalancer = this.endpoint.Kubernetes.Configuration.UseLoadBalancer;
|
||||||
this.state.useServerMetrics = this.endpoint.Kubernetes.Configuration.UseServerMetrics;
|
this.state.useServerMetrics = this.endpoint.Kubernetes.Configuration.UseServerMetrics;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue