Class Initializer

java.lang.Object
io.github.pod4dev.java.service.Initializer

public final class Initializer extends Object
  • Method Details

    • createPodK8s

      public static Player createPodK8s(URI podmanUri, String yamlPath) throws PodmanException
      Creates player with specified paths for socket file and k8s YAML specification.
      Parameters:
      podmanUri - host address.
      yamlPath - path to k8s YAML specification.
      Throws:
      PodmanException - if yamlPath is empty or error during initialization is happened.
    • createPodK8s

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