suppor k8s node etcd

This commit is contained in:
magicsong
2019-09-02 16:54:34 +08:00
parent f22e8ea90e
commit 82f5309a1c
18 changed files with 232 additions and 14 deletions

View File

@@ -0,0 +1,3 @@
package provider
// +kubebuilder:rbac:groups="crd.projectcalico.org",resources=globalfelixconfigs;felixconfigurations;ippools;ipamblocks;globalnetworkpolicies;globalnetworksets;networkpolicies;networksets;clusterinformations;hostendpoints,verbs=get;list;watch;create;patch;update;delete

View File

@@ -14,18 +14,16 @@ import (
"kubesphere.io/kubesphere/pkg/controller/network/provider"
)
type CalicoDataStoreType string
const (
certPath = "/calicocerts"
KubernetesDataStore CalicoDataStoreType = "k8s"
EtcdDataStore CalicoDataStoreType = "etcd"
KubernetesDataStore = "k8s"
EtcdDataStore = "etcd"
)
type RunOption struct {
ProviderName string
DataStoreType CalicoDataStoreType
DataStoreType string
EtcdEndpoints string
AllowInsecureEtcd bool
}