From 13687151bf50e1cc06ef625498775cf485ed8ca1 Mon Sep 17 00:00:00 2001 From: fibonacci1729 Date: Mon, 22 Jan 2018 09:17:08 -0700 Subject: [PATCH] update draftd storage setup for configmaps --- cmd/draftd/start.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/draftd/start.go b/cmd/draftd/start.go index d93634d..190ea96 100644 --- a/cmd/draftd/start.go +++ b/cmd/draftd/start.go @@ -126,7 +126,8 @@ func (c *startCmd) run() (err error) { } switch c.storageEngine { case "configmaps": - cfg.Storage = cfgmaps.NewStore(cfg.Kube, "default") + const namespace = "default" + cfg.Storage = cfgmaps.NewConfigMaps(cfg.Kube.CoreV1().ConfigMaps(namespace)) case "inprocess": cfg.Storage = inprocess.NewStore() default: