Skip to content

Commit

Permalink
removed the configmap support - the client is bloated
Browse files Browse the repository at this point in the history
  • Loading branch information
HeavyHorst committed Oct 20, 2016
1 parent 0423d37 commit 36646d9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 62 deletions.
47 changes: 0 additions & 47 deletions backends/configmap/config.go

This file was deleted.

27 changes: 12 additions & 15 deletions config.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import (
"sync"

"github.com/HeavyHorst/remco/backends"
"github.com/HeavyHorst/remco/backends/configmap"
"github.com/HeavyHorst/remco/backends/consul"
"github.com/HeavyHorst/remco/backends/env"
"github.com/HeavyHorst/remco/backends/etcd"
Expand All @@ -34,13 +33,12 @@ type tomlConf struct {
Resource []struct {
Template []*template.ProcessConfig
Backend struct {
Etcd *etcd.Config
File *file.Config
Env *env.Config
Consul *consul.Config
Vault *vault.Config
Redis *redis.Config
Configmap *configmap.Config
Etcd *etcd.Config
File *file.Config
Env *env.Config
Consul *consul.Config
Vault *vault.Config
Redis *redis.Config
}
}
}
Expand Down Expand Up @@ -89,13 +87,12 @@ func (c *tomlConf) run(stop chan bool) {
for _, v := range c.Resource {
var backendList []template.Backend
backendConfigMap := map[string]template.BackendConfig{
"etcd": v.Backend.Etcd,
"file": v.Backend.File,
"env": v.Backend.Env,
"consul": v.Backend.Consul,
"vault": v.Backend.Vault,
"redis": v.Backend.Redis,
"configmap": v.Backend.Configmap,
"etcd": v.Backend.Etcd,
"file": v.Backend.File,
"env": v.Backend.Env,
"consul": v.Backend.Consul,
"vault": v.Backend.Vault,
"redis": v.Backend.Redis,
}

for name, config := range backendConfigMap {
Expand Down

0 comments on commit 36646d9

Please sign in to comment.