mirror of
https://github.com/portainer/portainer.git
synced 2025-07-22 06:49:40 +02:00
fix(app): don't attach all ingresses to app [EE-5686] (#10537)
This commit is contained in:
parent
26036c05f2
commit
47fa1626c6
4 changed files with 9 additions and 9 deletions
|
@ -271,7 +271,7 @@ class KubernetesApplicationHelper {
|
|||
/* #endregion */
|
||||
|
||||
/* #region SERVICES -> SERVICES FORM VALUES */
|
||||
static generateServicesFormValuesFromServices(app) {
|
||||
static generateServicesFormValuesFromServices(app, ingresses) {
|
||||
let services = [];
|
||||
if (app.Services) {
|
||||
app.Services.forEach(function (service) {
|
||||
|
@ -303,7 +303,7 @@ class KubernetesApplicationHelper {
|
|||
svcport.serviceName = service.metadata.name;
|
||||
svcport.ingressPaths = [];
|
||||
|
||||
app.Ingresses.value.forEach((ingress) => {
|
||||
ingresses.forEach((ingress) => {
|
||||
const matchingIngressPaths = ingress.Paths.filter((ingPath) => ingPath.ServiceName === service.metadata.name && ingPath.Port === port.port);
|
||||
// only add ingress info to the port if the ingress serviceport and name matches
|
||||
const newPaths = matchingIngressPaths.map((ingPath) => ({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue