diff options
author | baude <bbaude@redhat.com> | 2018-11-13 10:53:18 -0600 |
---|---|---|
committer | baude <bbaude@redhat.com> | 2018-11-19 09:05:24 -0600 |
commit | f11a74e7150c2929a0ed18732ee0c4895f7e75be (patch) | |
tree | 779c097e2b02134d60986dc8950a76695202a8b7 /cmd/podman/kube.go | |
parent | 47ffaae840157dba421b018738416a3e4cc56a04 (diff) | |
download | podman-f11a74e7150c2929a0ed18732ee0c4895f7e75be.tar.gz podman-f11a74e7150c2929a0ed18732ee0c4895f7e75be.tar.bz2 podman-f11a74e7150c2929a0ed18732ee0c4895f7e75be.zip |
output libpod container to kubernetes yaml
scope out new kube subcommand where we can add generate. you can now generate kubernetes
YAML that will allow you to run the container in a kubernetes environment. When
The YAML description will always "wrap" a container in a simple v1.Pod description.
Tests and further documentation will be added in additional PRs.
This function should be considered very much "under heavy development" at
this point.
Signed-off-by: baude <bbaude@redhat.com>
Diffstat (limited to 'cmd/podman/kube.go')
-rw-r--r-- | cmd/podman/kube.go | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/cmd/podman/kube.go b/cmd/podman/kube.go new file mode 100644 index 000000000..ced87e2bd --- /dev/null +++ b/cmd/podman/kube.go @@ -0,0 +1,22 @@ +package main + +import ( + "github.com/urfave/cli" +) + +var ( + kubeSubCommands = []cli.Command{ + containerKubeCommand, + } + + kubeDescription = "Work with Kubernetes objects" + kubeCommand = cli.Command{ + Name: "kube", + Usage: "Import and export Kubernetes objections from and to Podman", + Description: containerDescription, + ArgsUsage: "", + Subcommands: kubeSubCommands, + UseShortOptionHandling: true, + OnUsageError: usageErrorHandler, + } +) |