Class V1WorkloadReference

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

@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen") public class V1WorkloadReference extends Object
WorkloadReference identifies the Workload object and PodGroup membership that a Pod belongs to. The scheduler uses this information to apply workload-aware scheduling semantics.
  • Field Details

  • Constructor Details

    • V1WorkloadReference

      public V1WorkloadReference(String name, String podGroup)
  • Method Details

    • getName

      public String getName()
      Name defines the name of the Workload object this Pod belongs to. Workload must be in the same namespace as the Pod. If it doesn't match any existing Workload, the Pod will remain unschedulable until a Workload object is created and observed by the kube-scheduler. It must be a DNS subdomain.
      Returns:
      the name property value
    • setName

      public void setName(String name)
      Set the name property value
      Parameters:
      name - property value to set
    • name

      public V1WorkloadReference name(String name)
      Set name in a chainable fashion.
      Returns:
      The same instance of V1WorkloadReference for chaining.
    • getPodGroup

      public String getPodGroup()
      PodGroup is the name of the PodGroup within the Workload that this Pod belongs to. If it doesn't match any existing PodGroup within the Workload, the Pod will remain unschedulable until the Workload object is recreated and observed by the kube-scheduler. It must be a DNS label.
      Returns:
      the podGroup property value
    • setPodGroup

      public void setPodGroup(String podGroup)
      Set the podGroup property value
      Parameters:
      podGroup - property value to set
    • podGroup

      public V1WorkloadReference podGroup(String podGroup)
      Set podGroup in a chainable fashion.
      Returns:
      The same instance of V1WorkloadReference for chaining.
    • getPodGroupReplicaKey

      public String getPodGroupReplicaKey()
      PodGroupReplicaKey specifies the replica key of the PodGroup to which this Pod belongs. It is used to distinguish pods belonging to different replicas of the same pod group. The pod group policy is applied separately to each replica. When set, it must be a DNS label.
      Returns:
      the podGroupReplicaKey property value
    • setPodGroupReplicaKey

      public void setPodGroupReplicaKey(String podGroupReplicaKey)
      Set the podGroupReplicaKey property value
      Parameters:
      podGroupReplicaKey - property value to set
    • podGroupReplicaKey

      public V1WorkloadReference podGroupReplicaKey(String podGroupReplicaKey)
      Set podGroupReplicaKey in a chainable fashion.
      Returns:
      The same instance of V1WorkloadReference 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