1
0
mirror of https://github.com/rancher/rke.git synced 2025-09-01 06:56:29 +00:00

Change ingress type to ingress provider

This commit is contained in:
galal-hussein
2018-02-07 02:30:25 +02:00
parent f32d352500
commit dcacd86b32
3 changed files with 7 additions and 7 deletions

View File

@@ -99,8 +99,8 @@ func validateServicesOptions(c *Cluster) error {
func validateIngressOptions(c *Cluster) error {
// Should be changed when adding more ingress types
if c.Ingress.Type != DefaultIngressController && c.Ingress.Type != "none" {
return fmt.Errorf("Ingress controller %s is incorrect", c.Ingress.Type)
if c.Ingress.Provider != DefaultIngressController && c.Ingress.Provider != "none" {
return fmt.Errorf("Ingress controller %s is incorrect", c.Ingress.Provider)
}
return nil
}