Class V1ExecAction

java.lang.Object
io.kubernetes.client.openapi.models.V1ExecAction

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1ExecAction extends Object
ExecAction describes a \"run in container\" action.
  • Field Details

  • Constructor Details

    • V1ExecAction

      public V1ExecAction()
  • Method Details

    • command

      public V1ExecAction command(List<String> command)
    • addCommandItem

      public V1ExecAction addCommandItem(String commandItem)
    • getCommand

      @Nullable public List<String> getCommand()
      Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.
      Returns:
      command
    • setCommand

      public void setCommand(List<String> command)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object