Merge pull request #692 from magicsong/nsnp

support calico with k8s storage
This commit is contained in:
KubeSphere CI Bot
2019-09-08 14:13:49 +08:00
committed by GitHub
18 changed files with 233 additions and 15 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
}