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

apply changes from EE (#9232)

Co-authored-by: testa113 <testa113>
This commit is contained in:
Ali 2023-07-20 13:48:48 +12:00 committed by GitHub
parent ff1f549590
commit bb61723ba1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 20 additions and 6 deletions

View file

@ -1001,9 +1001,11 @@ class KubernetesCreateApplicationController {
if (updatedService.Ingress && numberOfPortsInOldService && numberOfPortsInOldService <= updatedService.Ports.length) {
const updatedOldPorts = updatedService.Ports.slice(0, numberOfPortsInOldService);
const ingressesForService = fullIngresses.filter((ing) => {
const ingServiceNames = ing.Paths.map((path) => path.ServiceName);
if (ingServiceNames.includes(updatedService.Name)) {
return true;
if (ing.Paths) {
const ingServiceNames = ing.Paths.map((path) => path.ServiceName);
if (ingServiceNames.includes(updatedService.Name)) {
return true;
}
}
});
ingressesForService.forEach((ingressForService) => {