1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-21 14:29:40 +02:00

fix(stacks): check properly if endpoint id is defined in the stacks object EE-6118 (#10302)

This commit is contained in:
matias-portainer 2023-09-21 10:12:43 -03:00 committed by GitHub
parent 2b47b84e5e
commit dfce48cd5e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 2 deletions

View file

@ -1178,6 +1178,11 @@ class KubernetesCreateApplicationController {
if (this.state.isEdit) {
this.nodesLimits.excludesPods(this.application.Pods, this.formValues.CpuLimit, KubernetesResourceReservationHelper.bytesValue(this.formValues.MemoryLimit));
// Workaround for EE-6118
if (this.stack && !this.stack.EndpointId) {
this.stack.EndpointId = this.endpoint.Id;
}
}
this.oldFormValues = angular.copy(this.formValues);