a20addd05e
fleet, flannel, and etcd all generate dropins from config. To reduce code duplication, factor out a helper to do that.
10 lines
387 B
Go
10 lines
387 B
Go
package config
|
|
|
|
type Flannel struct {
|
|
EtcdEndpoint string `yaml:"etcd-endpoint" env:"FLANNELD_ETCD_ENDPOINT"`
|
|
EtcdPrefix string `yaml:"etcd-prefix" env:"FLANNELD_ETCD_PREFIX"`
|
|
IPMasq string `yaml:"ip-masq" env:"FLANNELD_IP_MASQ"`
|
|
SubnetFile string `yaml:"subnet-file" env:"FLANNELD_SUBNET_FILE"`
|
|
Iface string `yaml:"interface" env:"FLANNELD_IFACE"`
|
|
}
|