mirror of
https://github.com/portainer/portainer.git
synced 2025-07-23 23:39:41 +02:00
fix(kube): ingress path duplication issue [EE-6649] (#11087)
Some checks are pending
/ triage (push) Waiting to run
Lint / Run linters (push) Waiting to run
Test / test-server (map[arch:amd64 platform:linux]) (push) Waiting to run
Test / test-client (push) Waiting to run
Test / test-server (map[arch:amd64 platform:windows version:1809]) (push) Waiting to run
Test / test-server (map[arch:amd64 platform:windows version:ltsc2022]) (push) Waiting to run
Test / test-server (map[arch:arm64 platform:linux]) (push) Waiting to run
Some checks are pending
/ triage (push) Waiting to run
Lint / Run linters (push) Waiting to run
Test / test-server (map[arch:amd64 platform:linux]) (push) Waiting to run
Test / test-client (push) Waiting to run
Test / test-server (map[arch:amd64 platform:windows version:1809]) (push) Waiting to run
Test / test-server (map[arch:amd64 platform:windows version:ltsc2022]) (push) Waiting to run
Test / test-server (map[arch:arm64 platform:linux]) (push) Waiting to run
This commit is contained in:
parent
f6085ffad7
commit
1c5458f0d4
1 changed files with 1 additions and 0 deletions
|
@ -281,6 +281,7 @@ func (kcl *KubeClient) UpdateIngress(namespace string, info models.K8sIngressInf
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ingress.Spec.Rules = make([]netv1.IngressRule, 0)
|
||||||
for rule, paths := range rules {
|
for rule, paths := range rules {
|
||||||
ingress.Spec.Rules = append(ingress.Spec.Rules, netv1.IngressRule{
|
ingress.Spec.Rules = append(ingress.Spec.Rules, netv1.IngressRule{
|
||||||
Host: rule,
|
Host: rule,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue