From 91fe744bd2a64f64e68034dd5bd6de3100168385 Mon Sep 17 00:00:00 2001 From: Alex Crawford Date: Tue, 21 Jul 2015 14:20:10 -0700 Subject: [PATCH] config: specific valid values for ETCD_PROXY --- config/etcd2.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/etcd2.go b/config/etcd2.go index 1b809b4..fd3a432 100644 --- a/config/etcd2.go +++ b/config/etcd2.go @@ -39,6 +39,6 @@ type Etcd2 struct { PeerCAFile string `yaml:"peer_ca_file" env:"ETCD_PEER_CA_FILE"` PeerCertFile string `yaml:"peer_cert_file" env:"ETCD_PEER_CERT_FILE"` PeerKeyFile string `yaml:"peer_key_file" env:"ETCD_PEER_KEY_FILE"` - Proxy string `yaml:"proxy" env:"ETCD_PROXY"` + Proxy string `yaml:"proxy" env:"ETCD_PROXY" valid:"^(on|off|readonly)$"` SnapshotCount int `yaml:"snapshot_count" env:"ETCD_SNAPSHOTCOUNT"` }