Skip to content
This repository has been archived by the owner on Feb 19, 2021. It is now read-only.

Commit

Permalink
Add missing datastore type to Calico client config
Browse files Browse the repository at this point in the history
  • Loading branch information
mhmxs committed May 26, 2020
1 parent 0f4c3c5 commit 5ee7579
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Build your own image:

## Roadmap

* Etcd data store support
* Etcd data store support (Currently you have to edit manager's yaml manually)
* Use custom resource instead of environment variables
* Dedicated or preferred node label
* Disallow node label
Expand Down
1 change: 1 addition & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ func initCalicoConfig(dataStoreType string) (calicoClient.Interface, error) {
case "kubernetes":
calicoConfig := calicoApiConfig.NewCalicoAPIConfig()
calicoConfig.Spec = calicoApiConfig.CalicoAPIConfigSpec{
DatastoreType: calicoApiConfig.Kubernetes,
KubeConfig: calicoApiConfig.KubeConfig{
K8sAPIEndpoint: os.Getenv("K8S_API_ENDPOINT"),
K8sCAFile: os.Getenv("K8S_CA_FILE"),
Expand Down

0 comments on commit 5ee7579

Please sign in to comment.