From b6b1459b90deda77d1027310bc1831d10c5844a8 Mon Sep 17 00:00:00 2001 From: z00358552 Date: Sat, 21 Jan 2017 11:40:26 +0800 Subject: [PATCH] fix(helm) add missing manifest header for helm init --dry-run --debug --- cmd/helm/init.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/cmd/helm/init.go b/cmd/helm/init.go index 5e8c47dc8..766cb8e62 100644 --- a/cmd/helm/init.go +++ b/cmd/helm/init.go @@ -109,12 +109,15 @@ func (i *initCmd) run() error { if err != nil { return err } - fmt.Fprintln(i.out, dm) + fm := fmt.Sprintf("apiVersion: extensions/v1beta1\nkind: Deployment\n%s", dm) + fmt.Fprintln(i.out, fm) + sm, err := installer.ServiceManifest(i.namespace) if err != nil { return err } - fmt.Fprintln(i.out, sm) + fm = fmt.Sprintf("apiVersion: v1\nkind: Service\n%s", sm) + fmt.Fprintln(i.out, fm) } if i.dryRun {