mirror of
https://github.com/portainer/portainer.git
synced 2025-07-23 07:19:41 +02:00
fix(ingress): fixed hostname field when having multiple ingresses EE-1072 (#5273)
This commit is contained in:
parent
340805f880
commit
d48f6bd02c
5 changed files with 10 additions and 5 deletions
|
@ -274,7 +274,7 @@ class KubernetesApplicationHelper {
|
|||
/* #endregion */
|
||||
|
||||
/* #region PUBLISHED PORTS FV <> PUBLISHED PORTS */
|
||||
static generatePublishedPortsFormValuesFromPublishedPorts(serviceType, publishedPorts) {
|
||||
static generatePublishedPortsFormValuesFromPublishedPorts(serviceType, publishedPorts, ingress) {
|
||||
const generatePort = (port, rule) => {
|
||||
const res = new KubernetesApplicationPublishedPortFormValue();
|
||||
res.IsNew = false;
|
||||
|
@ -282,6 +282,7 @@ class KubernetesApplicationHelper {
|
|||
res.IngressName = rule.IngressName;
|
||||
res.IngressRoute = rule.Path;
|
||||
res.IngressHost = rule.Host;
|
||||
res.IngressHosts = ingress.find((i) => i.Name === rule.IngressName).Hosts;
|
||||
}
|
||||
res.Protocol = port.Protocol;
|
||||
res.ContainerPort = port.TargetPort;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue