Show / Hide Table of Contents

Class V1beta1ResourceSliceSpec

ResourceSliceSpec contains the information published by the driver in one ResourceSlice.

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

Constructors

View Source

V1beta1ResourceSliceSpec()

Declaration
public V1beta1ResourceSliceSpec()
View Source

V1beta1ResourceSliceSpec(V1beta1ResourceSliceSpec)

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

Properties

View Source

AllNodes

AllNodes indicates that all nodes have access to the resources in the pool.

Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set.

Declaration
[JsonPropertyName("allNodes")]
public bool? AllNodes { get; set; }
Property Value
Type Description
bool?
View Source

Devices

Devices lists some or all of the devices in this pool.

Must not have more than 128 entries.

Declaration
[JsonPropertyName("devices")]
public IList<V1beta1Device> Devices { get; set; }
Property Value
Type Description
IList<V1beta1Device>
View Source

Driver

Driver identifies the DRA driver providing the capacity information. A field selector can be used to list only ResourceSlice objects with a certain driver name.

Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver. This field is immutable.

Declaration
[JsonPropertyName("driver")]
public string Driver { get; set; }
Property Value
Type Description
string
View Source

EqualityContract

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

NodeName

NodeName identifies the node which provides the resources in this pool. A field selector can be used to list only ResourceSlice objects belonging to a certain node.

This field can be used to limit access from nodes to ResourceSlices with the same node name. It also indicates to autoscalers that adding new nodes of the same type as some old node might also make new resources available.

Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set. This field is immutable.

Declaration
[JsonPropertyName("nodeName")]
public string NodeName { get; set; }
Property Value
Type Description
string
View Source

NodeSelector

NodeSelector defines which nodes have access to the resources in the pool, when that pool is not limited to a single node.

Must use exactly one term.

Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set.

Declaration
[JsonPropertyName("nodeSelector")]
public V1NodeSelector NodeSelector { get; set; }
Property Value
Type Description
V1NodeSelector
View Source

PerDeviceNodeSelection

PerDeviceNodeSelection defines whether the access from nodes to resources in the pool is set on the ResourceSlice level or on each device. If it is set to true, every device defined the ResourceSlice must specify this individually.

Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set.

Declaration
[JsonPropertyName("perDeviceNodeSelection")]
public bool? PerDeviceNodeSelection { get; set; }
Property Value
Type Description
bool?
View Source

Pool

Pool describes the pool that this ResourceSlice belongs to.

Declaration
[JsonPropertyName("pool")]
public V1beta1ResourcePool Pool { get; set; }
Property Value
Type Description
V1beta1ResourcePool
View Source

SharedCounters

SharedCounters defines a list of counter sets, each of which has a name and a list of counters available.

The names of the SharedCounters must be unique in the ResourceSlice.

The maximum number of SharedCounters is 32.

Declaration
[JsonPropertyName("sharedCounters")]
public IList<V1beta1CounterSet> SharedCounters { get; set; }
Property Value
Type Description
IList<V1beta1CounterSet>

Methods

View Source

Equals(object?)

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

Equals(V1beta1ResourceSliceSpec?)

Declaration
public virtual bool Equals(V1beta1ResourceSliceSpec? other)
Parameters
Type Name Description
V1beta1ResourceSliceSpec other
Returns
Type Description
bool
View Source

GetHashCode()

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

PrintMembers(StringBuilder)

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

ToString()

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

Operators

View Source

operator ==(V1beta1ResourceSliceSpec?, V1beta1ResourceSliceSpec?)

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

operator !=(V1beta1ResourceSliceSpec?, V1beta1ResourceSliceSpec?)

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

Implements

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