1
0
mirror of https://github.com/rancher/rke.git synced 2025-09-03 16:04:26 +00:00

Fix ingress' HTTPS port validation

This commit is contained in:
Mateusz Kwiatkowski
2022-07-28 12:58:14 +02:00
parent b2cb35d58d
commit f07ce63a14

View File

@@ -377,7 +377,7 @@ func validateIngressOptions(c *Cluster) error {
}
if c.Ingress.NetworkMode == "hostPort" {
if !(c.Ingress.HTTPPort >= 0 && c.Ingress.HTTPPort <= 65535) {
if !(c.Ingress.HTTPSPort >= 0 && c.Ingress.HTTPSPort <= 65535) {
return fmt.Errorf("https port is invalid. Needs to be within 0 to 65535")
}
if !(c.Ingress.HTTPPort >= 0 && c.Ingress.HTTPPort <= 65535) {