From 92d3dd52c22e177dbc857876badddd1648d6da4d 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 bd94a959d..8973bcda3 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