From e7e9ea0229e99632f19e50e6e66f469f7d2603d1 Mon Sep 17 00:00:00 2001 From: Justin Scott Date: Tue, 20 Jun 2017 17:28:07 -0700 Subject: [PATCH] Add comment to explain dropping the opening json object delimiter. --- cmd/helm/init.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/helm/init.go b/cmd/helm/init.go index 518a74610..11cf9d66a 100644 --- a/cmd/helm/init.go +++ b/cmd/helm/init.go @@ -206,6 +206,7 @@ func (i *initCmd) run() error { const tm = `{"apiVersion":"extensions/v1beta1","kind":"Deployment",` buf := bytes.NewBuffer(make([]byte, 0, len(tm)+len(jsonb)-1)) buf.WriteString(tm) + // Drop the opening object delimiter ('{'). buf.Write(jsonb[1:]) if err := json.Indent(&out, buf.Bytes(), "", " "); err != nil { return err