1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-04 05:15:25 +02:00

feat(ingress): remove ingresses from add and edit application EE-4206 (#7677)

This commit is contained in:
Prabhat Khera 2022-09-23 16:11:35 +12:00 committed by GitHub
parent c384d834f5
commit fcb76f570e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 31 additions and 103 deletions

View file

@ -18,6 +18,7 @@ export default class KubernetesApplicationIngressController {
_.forEach(ingresses, (ingress) => {
_.forEach(ingress.Paths, (path) => {
if (path.ServiceName === service.metadata.name) {
path.Secure = ingress.TLS && ingress.TLS.filter((tls) => tls.hosts && tls.hosts.includes(path.Host)).length > 0;
this.applicationIngress.push(path);
this.hasIngress = true;
}