mirror of
https://github.com/portainer/portainer.git
synced 2025-07-21 14:29:40 +02:00
parent
ff1f549590
commit
bb61723ba1
3 changed files with 20 additions and 6 deletions
|
@ -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) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue