Skip to content

Commit

Permalink
[diff/env] default output to yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
maorfr committed Dec 20, 2018
1 parent 5b7abe0 commit 65ef4b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/orca/env.go
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ func NewDiffEnvCmd(out io.Writer) *cobra.Command {
f.StringVar(&e.nameRight, "name-right", os.Getenv("ORCA_NAME_RIGHT"), "name of right environment to compare. Overrides $ORCA_NAME_RIGHT")
f.StringVar(&e.kubeContextLeft, "kube-context-left", os.Getenv("ORCA_KUBE_CONTEXT_LEFT"), "name of the left kubeconfig context to use. Overrides $ORCA_KUBE_CONTEXT_LEFT")
f.StringVar(&e.kubeContextRight, "kube-context-right", os.Getenv("ORCA_KUBE_CONTEXT_RIGHT"), "name of the right kubeconfig context to use. Overrides $ORCA_KUBE_CONTEXT_RIGHT")
f.StringVarP(&e.output, "output", "o", os.Getenv("ORCA_OUTPUT"), "output format (yaml, md, table). Overrides $ORCA_OUTPUT")
f.StringVarP(&e.output, "output", "o", utils.GetStringEnvVar("ORCA_OUTPUT", "yaml"), "output format (yaml, table). Overrides $ORCA_OUTPUT")

return cmd
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/utils/chart.go
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ func PrintDiff(o DiffOptions) {
case "table":
printDiffTable(o, diffs)
case "":
printDiffTable(o, diffs)
printDiffYaml(diffs)
}

}
Expand Down

0 comments on commit 65ef4b7

Please sign in to comment.