diff options
author | Boaz Shuster <boaz.shuster.github@gmail.com> | 2021-11-07 13:21:25 +0200 |
---|---|---|
committer | Boaz Shuster <boaz.shuster.github@gmail.com> | 2021-11-07 16:33:38 +0200 |
commit | f3fab1e17ce9a6eb68b84c887b120abeacedc78a (patch) | |
tree | 4f0182891c1dd134b3ce9cb3228d6377381f41e5 /pkg | |
parent | abbd6c167e8163a711680db80137a0731e06e564 (diff) | |
download | podman-f3fab1e17ce9a6eb68b84c887b120abeacedc78a.tar.gz podman-f3fab1e17ce9a6eb68b84c887b120abeacedc78a.tar.bz2 podman-f3fab1e17ce9a6eb68b84c887b120abeacedc78a.zip |
podman-generate-kube - remove empty structs from YAML
[NO NEW TESTS NEEDED]
Signed-off-by: Boaz Shuster <boaz.shuster.github@gmail.com>
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/domain/infra/abi/generate.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/pkg/domain/infra/abi/generate.go b/pkg/domain/infra/abi/generate.go index 081a2464b..a4d6bcf86 100644 --- a/pkg/domain/infra/abi/generate.go +++ b/pkg/domain/infra/abi/generate.go @@ -124,8 +124,7 @@ func (ic *ContainerEngine) GenerateKube(ctx context.Context, nameOrIDs []string, if err != nil { return nil, err } - - b, err := generateKubeYAML(po) + b, err := generateKubeYAML(libpod.ConvertV1PodToYAMLPod(po)) if err != nil { return nil, err } |