diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-11-09 19:46:31 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-09 19:46:31 +0100 |
commit | 43bd57c7fb16ff7a6531c260ff3f9838bd20b4aa (patch) | |
tree | def205b3348b2e9a9745424b45aeeda00de3d35f /pkg | |
parent | ad4366ad24eee27957ec04f5dd9a34f4a85541e8 (diff) | |
parent | f3fab1e17ce9a6eb68b84c887b120abeacedc78a (diff) | |
download | podman-43bd57c7fb16ff7a6531c260ff3f9838bd20b4aa.tar.gz podman-43bd57c7fb16ff7a6531c260ff3f9838bd20b4aa.tar.bz2 podman-43bd57c7fb16ff7a6531c260ff3f9838bd20b4aa.zip |
Merge pull request #12195 from boaz0/closes_11998
podman-generate-kube - remove empty structs from YAML
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 } |