mirror of
https://github.com/rancher/rke.git
synced 2025-09-01 06:56:29 +00:00
Add CanalControllers to support Canal v3.14.0+
Signed-off-by: Chris Kim <oats87g@gmail.com>
This commit is contained in:
@@ -230,18 +230,19 @@ func (c *Cluster) doCanalDeploy(ctx context.Context, data map[string]interface{}
|
||||
|
||||
clientConfig := pki.GetConfigPath(pki.KubeNodeCertName)
|
||||
canalConfig := map[string]interface{}{
|
||||
ClientCertPath: pki.GetCertPath(pki.KubeNodeCertName),
|
||||
APIRoot: "https://127.0.0.1:6443",
|
||||
ClientKeyPath: pki.GetKeyPath(pki.KubeNodeCertName),
|
||||
ClientCAPath: pki.GetCertPath(pki.CACertName),
|
||||
KubeCfg: clientConfig,
|
||||
ClusterCIDR: c.ClusterCIDR,
|
||||
NodeImage: c.SystemImages.CanalNode,
|
||||
CNIImage: c.SystemImages.CanalCNI,
|
||||
CanalFlannelImg: c.SystemImages.CanalFlannel,
|
||||
RBACConfig: c.Authorization.Mode,
|
||||
CanalInterface: c.Network.Options[CanalIface],
|
||||
FlexVolImg: c.SystemImages.CanalFlexVol,
|
||||
ClientCertPath: pki.GetCertPath(pki.KubeNodeCertName),
|
||||
APIRoot: "https://127.0.0.1:6443",
|
||||
ClientKeyPath: pki.GetKeyPath(pki.KubeNodeCertName),
|
||||
ClientCAPath: pki.GetCertPath(pki.CACertName),
|
||||
KubeCfg: clientConfig,
|
||||
ClusterCIDR: c.ClusterCIDR,
|
||||
NodeImage: c.SystemImages.CanalNode,
|
||||
CNIImage: c.SystemImages.CanalCNI,
|
||||
ControllersImage: c.SystemImages.CanalControllers,
|
||||
CanalFlannelImg: c.SystemImages.CanalFlannel,
|
||||
RBACConfig: c.Authorization.Mode,
|
||||
CanalInterface: c.Network.Options[CanalIface],
|
||||
FlexVolImg: c.SystemImages.CanalFlexVol,
|
||||
FlannelBackend: map[string]interface{}{
|
||||
"Type": c.Network.Options[CanalFlannelBackendType],
|
||||
"VNI": flannelVni,
|
||||
|
Reference in New Issue
Block a user