From 09dcffe2b64d9c25e32a638a98f04cf5f4fdb43c Mon Sep 17 00:00:00 2001 From: vallard Date: Tue, 20 Dec 2016 16:24:43 -0800 Subject: [PATCH] whoops.. now it works. --- plugin.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/plugin.go b/plugin.go index ecbb4be..ee33c30 100644 --- a/plugin.go +++ b/plugin.go @@ -98,8 +98,10 @@ func (p Plugin) Exec() error { if e != nil { log.Fatal("Error decoding yaml file to json", e) } - // create a deployment - dr, err := clientset.ExtensionsV1beta1().Deployments(p.Config.Namespace).Update(&dep) + // create a deployment, ignore the deployment that it comes back with, just report the + // error. + _, err := clientset.ExtensionsV1beta1().Deployments(p.Config.Namespace).Update(&dep) + //err = listDeployments(clientset, p) return err }