Merge pull request #1379 from aiordache/kube_hack

Kube backend updates from Hack days
This commit is contained in:
Anca Iordache 2021-03-04 18:17:06 +01:00 committed by GitHub
commit b3025ca4fe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 272 additions and 40 deletions

View file

@ -116,7 +116,7 @@ func runConvert(ctx context.Context, opts convertOptions, services []string) err
}
var out io.Writer = os.Stdout
if opts.Output != "" {
if opts.Output != "" && len(json) > 0 {
file, err := os.Create(opts.Output)
if err != nil {
return err