|
|
@ -21,6 +21,7 @@ import (
|
|
|
|
"fmt"
|
|
|
|
"fmt"
|
|
|
|
"io"
|
|
|
|
"io"
|
|
|
|
"os"
|
|
|
|
"os"
|
|
|
|
|
|
|
|
"strings"
|
|
|
|
|
|
|
|
|
|
|
|
"github.com/spf13/cobra"
|
|
|
|
"github.com/spf13/cobra"
|
|
|
|
apierrors "k8s.io/apimachinery/pkg/api/errors"
|
|
|
|
apierrors "k8s.io/apimachinery/pkg/api/errors"
|
|
|
@ -194,7 +195,7 @@ func (i *initCmd) run() error {
|
|
|
|
if body, err = installer.DeploymentManifest(&i.opts); err != nil {
|
|
|
|
if body, err = installer.DeploymentManifest(&i.opts); err != nil {
|
|
|
|
return err
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
}
|
|
|
|
switch i.opts.Output {
|
|
|
|
switch strings.ToLower(i.opts.Output) {
|
|
|
|
case "json":
|
|
|
|
case "json":
|
|
|
|
jsonb, err := yaml.ToJSON([]byte(body))
|
|
|
|
jsonb, err := yaml.ToJSON([]byte(body))
|
|
|
|
if err != nil {
|
|
|
|
if err != nil {
|
|
|
|