summaryrefslogtreecommitdiff
path: root/pkg/domain/infra
diff options
context:
space:
mode:
authorBoaz Shuster <boaz.shuster.github@gmail.com>2021-11-07 13:21:25 +0200
committerBoaz Shuster <boaz.shuster.github@gmail.com>2021-11-07 16:33:38 +0200
commitf3fab1e17ce9a6eb68b84c887b120abeacedc78a (patch)
tree4f0182891c1dd134b3ce9cb3228d6377381f41e5 /pkg/domain/infra
parentabbd6c167e8163a711680db80137a0731e06e564 (diff)
downloadpodman-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/domain/infra')
-rw-r--r--pkg/domain/infra/abi/generate.go3
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
}