Class V1RuntimeClass

java.lang.Object
io.micronaut.kubernetes.client.openapi.model.V1RuntimeClass

@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen") public class V1RuntimeClass extends Object
RuntimeClass defines a class of container runtime supported in the cluster. The RuntimeClass is used to determine which container runtime is used to run all containers in a pod. RuntimeClasses are manually defined by a user or cluster provisioner, and referenced in the PodSpec. The Kubelet is responsible for resolving the RuntimeClassName reference before running the pod. For more details, see https://kubernetes.io/docs/concepts/containers/runtime-class/
  • Field Details

  • Constructor Details

    • V1RuntimeClass

      public V1RuntimeClass(String handler)
  • Method Details

    • getHandler

      public String getHandler()
      handler specifies the underlying runtime and configuration that the CRI implementation will use to handle pods of this class. The possible values are specific to the node & CRI configuration. It is assumed that all handlers are available on every node, and handlers of the same name are equivalent on every node. For example, a handler called \"runc\" might specify that the runc OCI runtime (using native Linux containers) will be used to run the containers in a pod. The Handler must be lowercase, conform to the DNS Label (RFC 1123) requirements, and is immutable.
      Returns:
      the handler property value
    • setHandler

      public void setHandler(String handler)
      Set the handler property value
      Parameters:
      handler - property value to set
    • handler

      public V1RuntimeClass handler(String handler)
      Set handler in a chainable fashion.
      Returns:
      The same instance of V1RuntimeClass for chaining.
    • getApiVersion

      public String getApiVersion()
      APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
      Returns:
      the apiVersion property value
    • setApiVersion

      public void setApiVersion(String apiVersion)
      Set the apiVersion property value
      Parameters:
      apiVersion - property value to set
    • apiVersion

      public V1RuntimeClass apiVersion(String apiVersion)
      Set apiVersion in a chainable fashion.
      Returns:
      The same instance of V1RuntimeClass for chaining.
    • getKind

      public String getKind()
      Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
      Returns:
      the kind property value
    • setKind

      public void setKind(String kind)
      Set the kind property value
      Parameters:
      kind - property value to set
    • kind

      public V1RuntimeClass kind(String kind)
      Set kind in a chainable fashion.
      Returns:
      The same instance of V1RuntimeClass for chaining.
    • getMetadata

      public V1ObjectMeta getMetadata()
      Returns:
      the metadata property value
    • setMetadata

      public void setMetadata(V1ObjectMeta metadata)
      Set the metadata property value
      Parameters:
      metadata - property value to set
    • metadata

      public V1RuntimeClass metadata(V1ObjectMeta metadata)
      Set metadata in a chainable fashion.
      Returns:
      The same instance of V1RuntimeClass for chaining.
    • getOverhead

      public V1Overhead getOverhead()
      Returns:
      the overhead property value
    • setOverhead

      public void setOverhead(V1Overhead overhead)
      Set the overhead property value
      Parameters:
      overhead - property value to set
    • overhead

      public V1RuntimeClass overhead(V1Overhead overhead)
      Set overhead in a chainable fashion.
      Returns:
      The same instance of V1RuntimeClass for chaining.
    • getScheduling

      public V1Scheduling getScheduling()
      Returns:
      the scheduling property value
    • setScheduling

      public void setScheduling(V1Scheduling scheduling)
      Set the scheduling property value
      Parameters:
      scheduling - property value to set
    • scheduling

      public V1RuntimeClass scheduling(V1Scheduling scheduling)
      Set scheduling in a chainable fashion.
      Returns:
      The same instance of V1RuntimeClass for chaining.
    • 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