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

pull/1849/head
z00358552 8 years ago
parent 7389b341c7
commit b6b1459b90

@ -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 {

Loading…
Cancel
Save