Commit b6b1459b authored by z00358552's avatar z00358552

fix(helm) add missing manifest header for helm init --dry-run --debug

parent 7389b341
......@@ -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 {
......
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