summaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorBoaz Shuster <boaz.shuster.github@gmail.com>2021-11-07 13:21:25 +0200
committerMatthew Heon <matthew.heon@pm.me>2021-11-12 11:08:25 -0500
commitcedf1a3d43fbb1f0c40cd286ee6c50863560e627 (patch)
tree3f103bea98d64b7a5c523cf255ab71f5314d0b1e /pkg
parente456873c02e023db1dc012fbf64e45a76ebc467f (diff)
downloadpodman-cedf1a3d43fbb1f0c40cd286ee6c50863560e627.tar.gz
podman-cedf1a3d43fbb1f0c40cd286ee6c50863560e627.tar.bz2
podman-cedf1a3d43fbb1f0c40cd286ee6c50863560e627.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.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
}