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:
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user