Skip to content

Commit

Permalink
print parsed config file
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard87 committed Nov 3, 2023
1 parent 681b198 commit 7597e30
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cmd/validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
"github.com/equinor/radix-operator/pkg/apis/utils"
"github.com/pkg/errors"
"github.com/spf13/cobra"
"gopkg.in/yaml.v2"
"gopkg.in/yaml.v3"
)

// logoutCmd represents the logout command
Expand Down Expand Up @@ -55,7 +55,8 @@ var validateCmd = &cobra.Command{
}

if printfile {
_ = yaml.NewEncoder(os.Stdout).Encode(ra.Spec)
_ = yaml.NewEncoder(os.Stdout).Encode(ra)
fmt.Println("")
}

err = radixvalidators.IsRadixApplicationValid(ra)
Expand Down

0 comments on commit 7597e30

Please sign in to comment.