summaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-09-23 04:27:26 -0400
committerGitHub <noreply@github.com>2021-09-23 04:27:26 -0400
commitb0d1c0fe22da27c88a0e5de11de08d63ef861347 (patch)
tree59558e87e15083dd5ca4ac2a01fd21bd5e61e46c /pkg
parent1dba601b56551b301490b36b198477ee0a58d137 (diff)
parent45ee5c5db2d67e17f4271fab5f61b7cafb6aea10 (diff)
downloadpodman-b0d1c0fe22da27c88a0e5de11de08d63ef861347.tar.gz
podman-b0d1c0fe22da27c88a0e5de11de08d63ef861347.tar.bz2
podman-b0d1c0fe22da27c88a0e5de11de08d63ef861347.zip
Merge pull request #11704 from rhatdan/kube
podman generate kube should not include images command
Diffstat (limited to 'pkg')
-rw-r--r--pkg/domain/infra/abi/generate.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/pkg/domain/infra/abi/generate.go b/pkg/domain/infra/abi/generate.go
index 1e614ce58..081a2464b 100644
--- a/pkg/domain/infra/abi/generate.go
+++ b/pkg/domain/infra/abi/generate.go
@@ -107,7 +107,7 @@ func (ic *ContainerEngine) GenerateKube(ctx context.Context, nameOrIDs []string,
// Generate kube pods and services from pods.
if len(pods) >= 1 {
- pos, svcs, err := getKubePods(pods, options.Service)
+ pos, svcs, err := getKubePods(ctx, pods, options.Service)
if err != nil {
return nil, err
}
@@ -120,7 +120,7 @@ func (ic *ContainerEngine) GenerateKube(ctx context.Context, nameOrIDs []string,
// Generate the kube pods from containers.
if len(ctrs) >= 1 {
- po, err := libpod.GenerateForKube(ctrs)
+ po, err := libpod.GenerateForKube(ctx, ctrs)
if err != nil {
return nil, err
}
@@ -153,12 +153,12 @@ func (ic *ContainerEngine) GenerateKube(ctx context.Context, nameOrIDs []string,
}
// getKubePods returns kube pod and service YAML files from podman pods.
-func getKubePods(pods []*libpod.Pod, getService bool) ([][]byte, [][]byte, error) {
+func getKubePods(ctx context.Context, pods []*libpod.Pod, getService bool) ([][]byte, [][]byte, error) {
pos := [][]byte{}
svcs := [][]byte{}
for _, p := range pods {
- po, sp, err := p.GenerateForKube()
+ po, sp, err := p.GenerateForKube(ctx)
if err != nil {
return nil, nil, err
}