summaryrefslogtreecommitdiff
path: root/pkg/domain/infra/tunnel
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2022-08-10 10:23:18 +0000
committerGitHub <noreply@github.com>2022-08-10 10:23:18 +0000
commitaa13c73f7130e7f477a9e1af247b79b39b059923 (patch)
treea1866b6c655a0e1b809ff839bfed3adce7f51d28 /pkg/domain/infra/tunnel
parentc4a35313c93b4384766af914bd1241bb77ebdbe5 (diff)
parent842c6c7c6748f8705698d25a29945f8437f1bed2 (diff)
downloadpodman-aa13c73f7130e7f477a9e1af247b79b39b059923.tar.gz
podman-aa13c73f7130e7f477a9e1af247b79b39b059923.tar.bz2
podman-aa13c73f7130e7f477a9e1af247b79b39b059923.zip
Merge pull request #14926 from cdoern/generateSpec
podman generate spec
Diffstat (limited to 'pkg/domain/infra/tunnel')
-rw-r--r--pkg/domain/infra/tunnel/generate.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkg/domain/infra/tunnel/generate.go b/pkg/domain/infra/tunnel/generate.go
index 235d478ec..ed63d363a 100644
--- a/pkg/domain/infra/tunnel/generate.go
+++ b/pkg/domain/infra/tunnel/generate.go
@@ -2,6 +2,7 @@ package tunnel
import (
"context"
+ "fmt"
"github.com/containers/podman/v4/pkg/bindings/generate"
"github.com/containers/podman/v4/pkg/domain/entities"
@@ -43,3 +44,7 @@ func (ic *ContainerEngine) GenerateKube(ctx context.Context, nameOrIDs []string,
options := new(generate.KubeOptions).WithService(opts.Service)
return generate.Kube(ic.ClientCtx, nameOrIDs, options)
}
+
+func (ic *ContainerEngine) GenerateSpec(ctx context.Context, opts *entities.GenerateSpecOptions) (*entities.GenerateSpecReport, error) {
+ return nil, fmt.Errorf("GenerateSpec is not supported on the remote API")
+}