summaryrefslogtreecommitdiff
path: root/cmd/podman/generate.go
diff options
context:
space:
mode:
authorbaude <bbaude@redhat.com>2018-11-21 16:00:50 -0600
committerbaude <bbaude@redhat.com>2018-12-04 08:03:49 -0600
commitc8436b4912656766df79c37aed3479afe72ca111 (patch)
tree290ddb53830a866a9893e0a80faff9ea766240d1 /cmd/podman/generate.go
parent5f6ad82524ca7a3281c8464c84b4f9be4ff90aef (diff)
downloadpodman-c8436b4912656766df79c37aed3479afe72ca111.tar.gz
podman-c8436b4912656766df79c37aed3479afe72ca111.tar.bz2
podman-c8436b4912656766df79c37aed3479afe72ca111.zip
generate kube
add the ability to generate kubernetes pod and service yaml representations of libpod containers and pods. Signed-off-by: baude <bbaude@redhat.com>
Diffstat (limited to 'cmd/podman/generate.go')
-rw-r--r--cmd/podman/generate.go23
1 files changed, 23 insertions, 0 deletions
diff --git a/cmd/podman/generate.go b/cmd/podman/generate.go
new file mode 100644
index 000000000..765d0ee70
--- /dev/null
+++ b/cmd/podman/generate.go
@@ -0,0 +1,23 @@
+package main
+
+import (
+ "github.com/urfave/cli"
+)
+
+var (
+ generateSubCommands = []cli.Command{
+ containerKubeCommand,
+ }
+
+ generateDescription = "generate structured data based for a containers and pods"
+ kubeCommand = cli.Command{
+ Name: "generate",
+ Usage: "generated structured data",
+ Description: generateDescription,
+ ArgsUsage: "",
+ Subcommands: generateSubCommands,
+ UseShortOptionHandling: true,
+ OnUsageError: usageErrorHandler,
+ Hidden: true,
+ }
+)