write krm metadata to Krmfile instead of Kustomization

This commit is contained in:
Phillip Wittrock
2020-05-28 12:27:14 -07:00
committed by Phillip Wittrock
parent c1a2bf14da
commit 0e5e2648b3
10 changed files with 335 additions and 42 deletions

View File

@@ -126,13 +126,9 @@ func (r *ListSettersRunner) ListSubstitutions(c *cobra.Command, args []string) e
s.Name, s.Pattern, setters})
}
if len(r.List.Substitutions) == 0 {
// exit non-0 if no matching substitutions are found
if ExitOnError {
os.Exit(1)
}
} else {
table.Render()
return nil
}
table.Render()
return nil
}