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

Commit

Permalink
Fix etcd datastore type to etcdv3
Browse files Browse the repository at this point in the history
  • Loading branch information
mhmxs committed Jun 17, 2020
1 parent d56cbe2 commit 890795a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* Kubernetes cluster up and running

This Kubernetes operator can monitor and scale Calico route refloctor pods based on node number per zone. The operator owns a few environment variables:
* `DATASTORE_TYPE` Calico datastore [`incluster`, `kubernetes`, `etcd`], default `incluster`
* `DATASTORE_TYPE` Calico datastore [`incluster`, `kubernetes`, `etcdv3`], default `incluster`
* `K8S_API_ENDPOINT` Kubernetes API endpoint, default `https://kubernetes.default`
* `ROUTE_REFLECTOR_CLUSTER_ID` Route reflector cluster ID, default `224.0.0.%d`
* `ROUTE_REFLECTOR_MIN` Minimum number of route reflector pods per zone, default `3`
Expand Down
2 changes: 1 addition & 1 deletion config/manager/etcd/envs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ spec:
- name: manager
env:
- name: DATASTORE_TYPE
value: "etcd"
value: "etcdv3"
- name: ETCD_ENDPOINTS
valueFrom:
secretKeyRef:
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ func newCalicoClient(dataStoreType string) (calicoApiConfig.DatastoreType, calic
client, err := calicoClient.NewFromEnv()

return calicoApiConfig.Kubernetes, client, err
case "etcd":
case "etcdv3":
client, err := calicoClient.NewFromEnv()

return calicoApiConfig.EtcdV3, client, err
Expand Down

0 comments on commit 890795a

Please sign in to comment.