mirror of
https://github.com/portainer/portainer.git
synced 2025-07-25 08:19:40 +02:00
feat(app): add ingress to app service form [EE-5569] (#9106)
This commit is contained in:
parent
8c16fbb8aa
commit
89c1d0e337
47 changed files with 1929 additions and 1181 deletions
|
@ -82,10 +82,8 @@ export class KubernetesIngressConverter {
|
|||
const ingresses = angular.copy(formValues.OriginalIngresses);
|
||||
application.Services.forEach((service) => {
|
||||
ingresses.forEach((ingress) => {
|
||||
const path = _.find(ingress.Paths, { ServiceName: service.metadata.name });
|
||||
if (path) {
|
||||
_.remove(ingress.Paths, path);
|
||||
}
|
||||
const paths = _.filter(ingress.Paths, { ServiceName: service.metadata.name });
|
||||
paths.forEach((path) => _.remove(ingress.Paths, path));
|
||||
});
|
||||
});
|
||||
return ingresses;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue