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

Merge pull request #2 from moelsayed/add_network_plugin_support

add network plugin support
This commit is contained in:
Alena Prokharchyk
2017-11-07 16:03:19 -08:00
committed by GitHub
13 changed files with 504 additions and 1 deletions

View File

@@ -22,6 +22,9 @@ type Cluster struct {
KubernetesServiceIP net.IP
Certificates map[string]pki.CertificatePKI
ClusterDomain string
NetworkPlugin string `yaml:"network_plugin"`
ClusterCIDR string
ClusterDnsServer string
}
const (
@@ -65,6 +68,8 @@ func ParseConfig(clusterFile string) (*Cluster, error) {
return nil, fmt.Errorf("Failed to get Kubernetes Service IP: %v", err)
}
c.ClusterDomain = c.Services.Kubelet.ClusterDomain
c.ClusterCIDR = c.Services.KubeController.ClusterCIDR
c.ClusterDnsServer = c.Services.Kubelet.ClusterDnsServer
return c, nil
}