Class V1ResourceSliceSpec
ResourceSliceSpec contains the information published by the driver in one
ResourceSlice.
Inheritance
V1ResourceSliceSpec
Assembly: KubernetesClient.dll
Syntax
public record V1ResourceSliceSpec : IEquatable<V1ResourceSliceSpec>
Constructors
View Source
V1ResourceSliceSpec()
Declaration
public V1ResourceSliceSpec()
View Source
V1ResourceSliceSpec(V1ResourceSliceSpec)
Declaration
protected V1ResourceSliceSpec(V1ResourceSliceSpec original)
Parameters
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
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<V1Device> Devices { get; set; }
Property Value
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
View Source
EqualityContract
Declaration
protected virtual Type EqualityContract { get; }
Property Value
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
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
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
View Source
Pool
Pool describes the pool that this ResourceSlice belongs to.
Declaration
[JsonPropertyName("pool")]
public V1ResourcePool Pool { get; set; }
Property Value
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 counters in all sets is 32.
Declaration
[JsonPropertyName("sharedCounters")]
public IList<V1CounterSet> SharedCounters { get; set; }
Property Value
Methods
View Source
Equals(object?)
Declaration
public override bool Equals(object? obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
|
Returns
Overrides
View Source
Equals(V1ResourceSliceSpec?)
Declaration
public virtual bool Equals(V1ResourceSliceSpec? other)
Parameters
Returns
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
View Source
PrintMembers(StringBuilder)
Declaration
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
Returns
View Source
ToString()
Declaration
public override string ToString()
Returns
Overrides
Operators
View Source
operator ==(V1ResourceSliceSpec?, V1ResourceSliceSpec?)
Declaration
public static bool operator ==(V1ResourceSliceSpec? left, V1ResourceSliceSpec? right)
Parameters
Returns
View Source
operator !=(V1ResourceSliceSpec?, V1ResourceSliceSpec?)
Declaration
public static bool operator !=(V1ResourceSliceSpec? left, V1ResourceSliceSpec? right)
Parameters
Returns
Implements