Commit e7fc7a4e authored by Matt Butcher's avatar Matt Butcher Committed by GitHub

Merge pull request #1849 from iamzhout/master

fix(helm) add missing manifest header for `helm init --dry-run --debug`
parents 33ccd6b2 b6b1459b
...@@ -109,12 +109,15 @@ func (i *initCmd) run() error { ...@@ -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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment