Merge pull request #1849 from iamzhout/master

fix(helm) add missing manifest header for `helm init --dry-run --debug`
pull/1914/head
Matt Butcher 8 years ago committed by GitHub
commit e7fc7a4efa

@ -109,12 +109,15 @@ func (i *initCmd) run() error {
if err != nil { if err != nil {
return err 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) sm, err := installer.ServiceManifest(i.namespace)
if err != nil { if err != nil {
return err 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 { if i.dryRun {

Loading…
Cancel
Save