1
0
mirror of https://github.com/rancher/rke.git synced 2025-09-18 16:36:41 +00:00

Merge pull request #2995 from mateuszkwiatkowski/ingress-validations

This commit is contained in:
Jiaqi Luo
2022-10-10 09:36:41 -07:00
committed by GitHub

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) {