Show / Hide Table of Contents

Class V1alpha2PodGroupResourceClaim

PodGroupResourceClaim references exactly one ResourceClaim, either directly or by naming a ResourceClaimTemplate which is then turned into a ResourceClaim for the PodGroup.

It adds a name to it that uniquely identifies the ResourceClaim inside the PodGroup. Pods that need access to the ResourceClaim define a matching reference in its own Spec.ResourceClaims. The Pod's claim must match all fields of the PodGroup's claim exactly.

Inheritance
object
V1alpha2PodGroupResourceClaim
Implements
IEquatable<V1alpha2PodGroupResourceClaim>
Inherited Members
object.GetType()
object.MemberwiseClone()
object.Equals(object, object)
object.ReferenceEquals(object, object)
Namespace: k8s.Models
Assembly: KubernetesClient.dll
Syntax
public record V1alpha2PodGroupResourceClaim : IEquatable<V1alpha2PodGroupResourceClaim>

Constructors

V1alpha2PodGroupResourceClaim()

Declaration
public V1alpha2PodGroupResourceClaim()

V1alpha2PodGroupResourceClaim(V1alpha2PodGroupResourceClaim)

Declaration
protected V1alpha2PodGroupResourceClaim(V1alpha2PodGroupResourceClaim original)
Parameters
Type Name Description
V1alpha2PodGroupResourceClaim original

Properties

EqualityContract

Declaration
protected virtual Type EqualityContract { get; }
Property Value
Type Description
Type

Name

Name uniquely identifies this resource claim inside the PodGroup. This must be a DNS_LABEL.

Declaration
[JsonPropertyName("name")]
public string Name { get; set; }
Property Value
Type Description
string

ResourceClaimName

ResourceClaimName is the name of a ResourceClaim object in the same namespace as this PodGroup. The ResourceClaim will be reserved for the PodGroup instead of its individual pods.

Exactly one of ResourceClaimName and ResourceClaimTemplateName must be set.

Declaration
[JsonPropertyName("resourceClaimName")]
public string ResourceClaimName { get; set; }
Property Value
Type Description
string

ResourceClaimTemplateName

ResourceClaimTemplateName is the name of a ResourceClaimTemplate object in the same namespace as this PodGroup.

The template will be used to create a new ResourceClaim, which will be bound to this PodGroup. When this PodGroup is deleted, the ResourceClaim will also be deleted. The PodGroup name and resource name, along with a generated component, will be used to form a unique name for the ResourceClaim, which will be recorded in podgroup.status.resourceClaimStatuses.

This field is immutable and no changes will be made to the corresponding ResourceClaim by the control plane after creating the ResourceClaim.

Exactly one of ResourceClaimName and ResourceClaimTemplateName must be set.

Declaration
[JsonPropertyName("resourceClaimTemplateName")]
public string ResourceClaimTemplateName { get; set; }
Property Value
Type Description
string

Methods

Equals(object?)

Declaration
public override bool Equals(object? obj)
Parameters
Type Name Description
object obj
Returns
Type Description
bool
Overrides
object.Equals(object)

Equals(V1alpha2PodGroupResourceClaim?)

Declaration
public virtual bool Equals(V1alpha2PodGroupResourceClaim? other)
Parameters
Type Name Description
V1alpha2PodGroupResourceClaim other
Returns
Type Description
bool

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
int
Overrides
object.GetHashCode()

PrintMembers(StringBuilder)

Declaration
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
Type Name Description
StringBuilder builder
Returns
Type Description
bool

ToString()

Declaration
public override string ToString()
Returns
Type Description
string
Overrides
object.ToString()

Operators

operator ==(V1alpha2PodGroupResourceClaim?, V1alpha2PodGroupResourceClaim?)

Declaration
public static bool operator ==(V1alpha2PodGroupResourceClaim? left, V1alpha2PodGroupResourceClaim? right)
Parameters
Type Name Description
V1alpha2PodGroupResourceClaim left
V1alpha2PodGroupResourceClaim right
Returns
Type Description
bool

operator !=(V1alpha2PodGroupResourceClaim?, V1alpha2PodGroupResourceClaim?)

Declaration
public static bool operator !=(V1alpha2PodGroupResourceClaim? left, V1alpha2PodGroupResourceClaim? right)
Parameters
Type Name Description
V1alpha2PodGroupResourceClaim left
V1alpha2PodGroupResourceClaim right
Returns
Type Description
bool

Implements

IEquatable<T>
In this article
Back to top Generated by DocFX