Class KubePlayer

java.lang.Object
io.github.pod4dev.java.KubePlayer
All Implemented Interfaces:
GenericContainer, AutoCloseable

public class KubePlayer extends Object implements GenericContainer
Work with /kube/play API.
  • Constructor Details

    • KubePlayer

      public KubePlayer(String yamlPath) throws PodmanException
      Creates player with specified path for k8s YAML specification. The socket path is autodetected via PODMAN_SOCKET environment variable.
      Parameters:
      yamlPath - path to k8s YAML specification.
      Throws:
      PodmanException - if yamlPath is empty or error during initialization is happened.
    • KubePlayer

      public KubePlayer(String socketPath, String yamlPath) throws PodmanException
      Creates player with specified paths for socket file and k8s YAML specification. The socket path is autodetected via PODMAN_SOCKET environment variable.
      Parameters:
      socketPath - path to socket file.
      yamlPath - path to k8s YAML specification.
      Throws:
      PodmanException - if yamlPath is empty or error during initialization is happened.
  • Method Details