struct Kubernetes::AllocationResult

Overview

AllocationResult contains attributes of an allocated resource.

Included Modules

Defined in:

generated/models/io_k8s_api_resource_v1.cr
generated/models/io_k8s_api_resource_v1beta1.cr
generated/models/io_k8s_api_resource_v1beta2.cr

Constructors

Macro Summary

Instance Method Summary

Constructor Detail

def self.new(ctx : YAML::ParseContext, node : YAML::Nodes::Node) #

def self.new(pull : ::JSON::PullParser) #

def self.new(*, __pull_for_json_serializable pull : ::JSON::PullParser) #

def self.new(*, __context_for_yaml_serializable ctx : YAML::ParseContext, __node_for_yaml_serializable node : YAML::Nodes::Node) #

Macro Detail

macro field(name, type = nil, **options, &block) #

Helper macro for defining fields with automatic camelCase conversion


Instance Method Detail

def allocation_timestamp : Time | Nil #

AllocationTimestamp stores the time when the resources were allocated. This field is not guaranteed to be set, in which case that time is unknown. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gate.


def allocation_timestamp=(allocation_timestamp : Time | Nil) #

AllocationTimestamp stores the time when the resources were allocated. This field is not guaranteed to be set, in which case that time is unknown. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gate.


def devices : DeviceAllocationResult | Nil #

Devices is the result of allocating devices.


def devices=(devices : DeviceAllocationResult | Nil) #

Devices is the result of allocating devices.


def node_selector : NodeSelector | Nil #

NodeSelector defines where the allocated resources are available. If unset, they are available everywhere.


def node_selector=(node_selector : NodeSelector | Nil) #

NodeSelector defines where the allocated resources are available. If unset, they are available everywhere.