1
0
mirror of https://github.com/rancher/rke.git synced 2025-08-31 14:36:32 +00:00

add weave-net network plugin support

This commit is contained in:
kyamazawa
2017-11-30 20:35:31 +09:00
parent 05336dddfd
commit f5797c6ba3
4 changed files with 124 additions and 1 deletions

View File

@@ -46,7 +46,7 @@ func validateAuthOptions(c *Cluster) error {
}
func validateNetworkOptions(c *Cluster) error {
if c.Network.Plugin != FlannelNetworkPlugin && c.Network.Plugin != CalicoNetworkPlugin && c.Network.Plugin != CanalNetworkPlugin {
if c.Network.Plugin != FlannelNetworkPlugin && c.Network.Plugin != CalicoNetworkPlugin && c.Network.Plugin != CanalNetworkPlugin && c.Network.Plugin != WeaveNetworkPlugin {
return fmt.Errorf("Network plugin [%s] is not supported", c.Network.Plugin)
}
return nil