mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-09-06 15:47:48 +00:00
The "podman kube play" command is designed to be a replacement for the "podman play kube" command. It performs the same function as "play kube" while also still working with the same flags and options. The "podman play kube" command is still functional as an alias of "kube play". Closes #12475 Signed-off-by: Niall Crowe <nicrowe@redhat.com> Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
27 lines
736 B
Go
27 lines
736 B
Go
package play
|
|
|
|
import (
|
|
"context"
|
|
"io"
|
|
|
|
"github.com/containers/podman/v4/pkg/bindings/kube"
|
|
"github.com/containers/podman/v4/pkg/domain/entities"
|
|
)
|
|
|
|
type KubeOptions = kube.PlayOptions
|
|
|
|
func Kube(ctx context.Context, path string, options *KubeOptions) (*entities.PlayKubeReport, error) {
|
|
return kube.Play(ctx, path, options)
|
|
}
|
|
|
|
func KubeWithBody(ctx context.Context, body io.Reader, options *KubeOptions) (*entities.PlayKubeReport, error) {
|
|
return kube.PlayWithBody(ctx, body, options)
|
|
}
|
|
|
|
func Down(ctx context.Context, path string) (*entities.PlayKubeReport, error) {
|
|
return kube.Down(ctx, path)
|
|
}
|
|
|
|
func DownWithBody(ctx context.Context, body io.Reader) (*entities.PlayKubeReport, error) {
|
|
return kube.DownWithBody(ctx, body)
|
|
}
|