v1

package
v1.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 16, 2026 License: Apache-2.0 Imports: 7 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AggregateApplyConfiguration

type AggregateApplyConfiguration struct {
	// Name is the name of the aggregate.
	Name *string `json:"name,omitempty"`
	// UUID is the unique identifier of the aggregate.
	UUID *string `json:"uuid,omitempty"`
	// Metadata is the metadata of the aggregate as key-value pairs.
	Metadata map[string]string `json:"metadata,omitempty"`
}

AggregateApplyConfiguration represents a declarative configuration of the Aggregate type for use with apply.

Aggregate represents an OpenStack aggregate with its name and UUID.

func Aggregate

func Aggregate() *AggregateApplyConfiguration

AggregateApplyConfiguration constructs a declarative configuration of the Aggregate type for use with apply.

func (*AggregateApplyConfiguration) WithMetadata added in v1.1.0

WithMetadata puts the entries into the Metadata field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, the entries provided by each call will be put on the Metadata field, overwriting an existing map entries in Metadata field with the same key.

func (*AggregateApplyConfiguration) WithName

WithName sets the Name field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Name field is set to the value of the last call.

func (*AggregateApplyConfiguration) WithUUID

WithUUID sets the UUID field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the UUID field is set to the value of the last call.

type AggregateGroupApplyConfiguration added in v1.2.0

type AggregateGroupApplyConfiguration struct {
	Name     *string           `json:"name,omitempty"`
	UUID     *string           `json:"uuid,omitempty"`
	Metadata map[string]string `json:"metadata,omitempty"`
}

AggregateGroupApplyConfiguration represents a declarative configuration of the AggregateGroup type for use with apply.

AggregateGroup represents an administrative grouping, such as an OpenStack host aggregate.

func AggregateGroup added in v1.2.0

func AggregateGroup() *AggregateGroupApplyConfiguration

AggregateGroupApplyConfiguration constructs a declarative configuration of the AggregateGroup type for use with apply.

func (*AggregateGroupApplyConfiguration) WithMetadata added in v1.2.0

WithMetadata puts the entries into the Metadata field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, the entries provided by each call will be put on the Metadata field, overwriting an existing map entries in Metadata field with the same key.

func (*AggregateGroupApplyConfiguration) WithName added in v1.2.0

WithName sets the Name field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Name field is set to the value of the last call.

func (*AggregateGroupApplyConfiguration) WithUUID added in v1.2.0

WithUUID sets the UUID field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the UUID field is set to the value of the last call.

type CapabilitiesApplyConfiguration

type CapabilitiesApplyConfiguration struct {
	// The hosts CPU architecture (not the guests).
	HostCpuArch *string `json:"cpuArch,omitempty"`
	// Total host memory available as a sum of memory over all numa cells.
	HostMemory *resource.Quantity `json:"memory,omitempty"`
	// Total host cpus available as a sum of cpus over all numa cells.
	HostCpus *resource.Quantity `json:"cpus,omitempty"`
}

CapabilitiesApplyConfiguration represents a declarative configuration of the Capabilities type for use with apply.

Capabilities of the hypervisor as reported by libvirt.

func Capabilities

func Capabilities() *CapabilitiesApplyConfiguration

CapabilitiesApplyConfiguration constructs a declarative configuration of the Capabilities type for use with apply.

func (*CapabilitiesApplyConfiguration) WithHostCpuArch

WithHostCpuArch sets the HostCpuArch field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the HostCpuArch field is set to the value of the last call.

func (*CapabilitiesApplyConfiguration) WithHostCpus

WithHostCpus sets the HostCpus field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the HostCpus field is set to the value of the last call.

func (*CapabilitiesApplyConfiguration) WithHostMemory

WithHostMemory sets the HostMemory field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the HostMemory field is set to the value of the last call.

type CellApplyConfiguration

type CellApplyConfiguration struct {
	// Cell ID.
	CellID *uint64 `json:"cellID,omitempty"`
	// Auto-discovered resource allocation of all hosted VMs in this cell.
	Allocation map[apiv1.ResourceName]resource.Quantity `json:"allocation,omitempty"`
	// Auto-discovered capacity of this cell.
	//
	// Note that this capacity does not include the applied overcommit ratios,
	// and represents the actual capacity of the cell. Use the effective capacity
	// field to get the capacity considering the applied overcommit ratios.
	//
	Capacity map[apiv1.ResourceName]resource.Quantity `json:"capacity,omitempty"`
	// Auto-discovered capacity of this cell, considering the
	// applied overcommit ratios.
	//
	// In case no overcommit ratio is specified for a resource type, the default
	// overcommit ratio of 1 should be applied, meaning the effective capacity
	// is the same as the actual capacity.
	//
	// If the overcommit ratio results in a fractional effective capacity, the
	// effective capacity is expected to be rounded down.
	//
	EffectiveCapacity map[apiv1.ResourceName]resource.Quantity `json:"effectiveCapacity,omitempty"`
}

CellApplyConfiguration represents a declarative configuration of the Cell type for use with apply.

Cell represents a NUMA cell on the hypervisor.

func Cell

func Cell() *CellApplyConfiguration

CellApplyConfiguration constructs a declarative configuration of the Cell type for use with apply.

func (*CellApplyConfiguration) WithAllocation

WithAllocation puts the entries into the Allocation field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, the entries provided by each call will be put on the Allocation field, overwriting an existing map entries in Allocation field with the same key.

func (*CellApplyConfiguration) WithCapacity

WithCapacity puts the entries into the Capacity field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, the entries provided by each call will be put on the Capacity field, overwriting an existing map entries in Capacity field with the same key.

func (*CellApplyConfiguration) WithCellID

WithCellID sets the CellID field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the CellID field is set to the value of the last call.

func (*CellApplyConfiguration) WithEffectiveCapacity

func (b *CellApplyConfiguration) WithEffectiveCapacity(entries map[apiv1.ResourceName]resource.Quantity) *CellApplyConfiguration

WithEffectiveCapacity puts the entries into the EffectiveCapacity field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, the entries provided by each call will be put on the EffectiveCapacity field, overwriting an existing map entries in EffectiveCapacity field with the same key.

type DomainCapabilitiesApplyConfiguration

type DomainCapabilitiesApplyConfiguration struct {
	// The available domain cpu architecture.
	Arch *string `json:"arch,omitempty"`
	// The supported type of virtualization for domains, such as "ch".
	HypervisorType *string `json:"hypervisorType,omitempty"`
	// Supported devices for domains.
	//
	// The format of this list is the device type, and if specified, a specific
	// model. For example, take the following xml domain device definition:
	//
	// <video supported='yes'>
	// <enum name='modelType'>
	// <value>nvidia</value>
	// </enum>
	// </video>
	//
	// The corresponding entries in this list would be "video" and "video/nvidia".
	//
	SupportedDevices []string `json:"supportedDevices,omitempty"`
	// Supported cpu modes for domains.
	//
	// The format of this list is cpu mode, and if specified, a specific
	// submode. For example, take the following xml domain cpu definition:
	//
	// <mode name='host-passthrough' supported='yes'>
	// <enum name='hostPassthroughMigratable'/>
	// </mode>
	//
	// The corresponding entries in this list would be "host-passthrough" and
	// "host-passthrough/migratable".
	//
	SupportedCpuModes []string `json:"supportedCpuModes,omitempty"`
	// Supported features for domains, such as "sev" or "sgx".
	//
	// This is a flat list of supported features, meaning the following xml:
	//
	// <features>
	// <sev supported='no'/>
	// <sgx supported='no'/>
	// </features>
	//
	// Would correspond to the entries "sev" and "sgx" in this list.
	//
	SupportedFeatures []string `json:"supportedFeatures,omitempty"`
}

DomainCapabilitiesApplyConfiguration represents a declarative configuration of the DomainCapabilities type for use with apply.

Domain capabilities of the hypervisor as reported by libvirt. These details are relevant to check if a VM can be scheduled on the hypervisor.

func DomainCapabilities

func DomainCapabilities() *DomainCapabilitiesApplyConfiguration

DomainCapabilitiesApplyConfiguration constructs a declarative configuration of the DomainCapabilities type for use with apply.

func (*DomainCapabilitiesApplyConfiguration) WithArch

WithArch sets the Arch field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Arch field is set to the value of the last call.

func (*DomainCapabilitiesApplyConfiguration) WithHypervisorType

WithHypervisorType sets the HypervisorType field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the HypervisorType field is set to the value of the last call.

func (*DomainCapabilitiesApplyConfiguration) WithSupportedCpuModes

WithSupportedCpuModes adds the given value to the SupportedCpuModes field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the SupportedCpuModes field.

func (*DomainCapabilitiesApplyConfiguration) WithSupportedDevices

WithSupportedDevices adds the given value to the SupportedDevices field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the SupportedDevices field.

func (*DomainCapabilitiesApplyConfiguration) WithSupportedFeatures

WithSupportedFeatures adds the given value to the SupportedFeatures field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the SupportedFeatures field.

type DomainInfoApplyConfiguration

type DomainInfoApplyConfiguration struct {
	Name        *string                      `json:"name,omitempty"`
	UUID        *string                      `json:"uuid,omitempty"`
	Allocation  map[string]resource.Quantity `json:"allocation,omitempty"`
	MemoryCells []int                        `json:"memoryCells,omitempty"`
	CpuCells    []int                        `json:"cpuCells,omitempty"`
}

DomainInfoApplyConfiguration represents a declarative configuration of the DomainInfo type for use with apply.

func DomainInfo

func DomainInfo() *DomainInfoApplyConfiguration

DomainInfoApplyConfiguration constructs a declarative configuration of the DomainInfo type for use with apply.

func (*DomainInfoApplyConfiguration) WithAllocation

WithAllocation puts the entries into the Allocation field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, the entries provided by each call will be put on the Allocation field, overwriting an existing map entries in Allocation field with the same key.

func (*DomainInfoApplyConfiguration) WithCpuCells

WithCpuCells adds the given value to the CpuCells field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the CpuCells field.

func (*DomainInfoApplyConfiguration) WithMemoryCells

func (b *DomainInfoApplyConfiguration) WithMemoryCells(values ...int) *DomainInfoApplyConfiguration

WithMemoryCells adds the given value to the MemoryCells field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the MemoryCells field.

func (*DomainInfoApplyConfiguration) WithName

WithName sets the Name field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Name field is set to the value of the last call.

func (*DomainInfoApplyConfiguration) WithUUID

WithUUID sets the UUID field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the UUID field is set to the value of the last call.

type EvictionApplyConfiguration

type EvictionApplyConfiguration struct {
	metav1.TypeMetaApplyConfiguration    `json:""`
	*metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
	Spec                                 *EvictionSpecApplyConfiguration   `json:"spec,omitempty"`
	Status                               *EvictionStatusApplyConfiguration `json:"status,omitempty"`
}

EvictionApplyConfiguration represents a declarative configuration of the Eviction type for use with apply.

Eviction is the Schema for the evictions API

func Eviction

func Eviction(name string) *EvictionApplyConfiguration

Eviction constructs a declarative configuration of the Eviction type for use with apply.

func ExtractEviction added in v1.3.0

func ExtractEviction(eviction *apiv1.Eviction, fieldManager string) (*EvictionApplyConfiguration, error)

ExtractEviction extracts the applied configuration owned by fieldManager from eviction. If no managedFields are found in eviction for fieldManager, a EvictionApplyConfiguration is returned with only the Name, Namespace (if applicable), APIVersion and Kind populated. It is possible that no managed fields were found for because other field managers have taken ownership of all the fields previously owned by fieldManager, or because the fieldManager never owned fields any fields. eviction must be a unmodified Eviction API object that was retrieved from the Kubernetes API. ExtractEviction provides a way to perform a extract/modify-in-place/apply workflow. Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously applied if another fieldManager has updated or force applied any of the previously applied fields.

func ExtractEvictionFrom added in v1.3.0

func ExtractEvictionFrom(eviction *apiv1.Eviction, fieldManager string, subresource string) (*EvictionApplyConfiguration, error)

ExtractEvictionFrom extracts the applied configuration owned by fieldManager from eviction for the specified subresource. Pass an empty string for subresource to extract the main resource. Common subresources include "status", "scale", etc. eviction must be a unmodified Eviction API object that was retrieved from the Kubernetes API. ExtractEvictionFrom provides a way to perform a extract/modify-in-place/apply workflow. Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously applied if another fieldManager has updated or force applied any of the previously applied fields.

func ExtractEvictionStatus added in v1.3.0

func ExtractEvictionStatus(eviction *apiv1.Eviction, fieldManager string) (*EvictionApplyConfiguration, error)

ExtractEvictionStatus extracts the applied configuration owned by fieldManager from eviction for the status subresource.

func (*EvictionApplyConfiguration) GetAPIVersion

func (b *EvictionApplyConfiguration) GetAPIVersion() *string

GetAPIVersion retrieves the value of the APIVersion field in the declarative configuration.

func (*EvictionApplyConfiguration) GetKind

func (b *EvictionApplyConfiguration) GetKind() *string

GetKind retrieves the value of the Kind field in the declarative configuration.

func (*EvictionApplyConfiguration) GetName

func (b *EvictionApplyConfiguration) GetName() *string

GetName retrieves the value of the Name field in the declarative configuration.

func (*EvictionApplyConfiguration) GetNamespace

func (b *EvictionApplyConfiguration) GetNamespace() *string

GetNamespace retrieves the value of the Namespace field in the declarative configuration.

func (EvictionApplyConfiguration) IsApplyConfiguration

func (b EvictionApplyConfiguration) IsApplyConfiguration()

func (*EvictionApplyConfiguration) WithAPIVersion

WithAPIVersion sets the APIVersion field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the APIVersion field is set to the value of the last call.

func (*EvictionApplyConfiguration) WithAnnotations

func (b *EvictionApplyConfiguration) WithAnnotations(entries map[string]string) *EvictionApplyConfiguration

WithAnnotations puts the entries into the Annotations field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, the entries provided by each call will be put on the Annotations field, overwriting an existing map entries in Annotations field with the same key.

func (*EvictionApplyConfiguration) WithCreationTimestamp

func (b *EvictionApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *EvictionApplyConfiguration

WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the CreationTimestamp field is set to the value of the last call.

func (*EvictionApplyConfiguration) WithDeletionGracePeriodSeconds

func (b *EvictionApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *EvictionApplyConfiguration

WithDeletionGracePeriodSeconds sets the DeletionGracePeriodSeconds field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.

func (*EvictionApplyConfiguration) WithDeletionTimestamp

func (b *EvictionApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *EvictionApplyConfiguration

WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the DeletionTimestamp field is set to the value of the last call.

func (*EvictionApplyConfiguration) WithFinalizers

func (b *EvictionApplyConfiguration) WithFinalizers(values ...string) *EvictionApplyConfiguration

WithFinalizers adds the given value to the Finalizers field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the Finalizers field.

func (*EvictionApplyConfiguration) WithGenerateName

func (b *EvictionApplyConfiguration) WithGenerateName(value string) *EvictionApplyConfiguration

WithGenerateName sets the GenerateName field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the GenerateName field is set to the value of the last call.

func (*EvictionApplyConfiguration) WithGeneration

WithGeneration sets the Generation field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Generation field is set to the value of the last call.

func (*EvictionApplyConfiguration) WithKind

WithKind sets the Kind field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Kind field is set to the value of the last call.

func (*EvictionApplyConfiguration) WithLabels

WithLabels puts the entries into the Labels field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, the entries provided by each call will be put on the Labels field, overwriting an existing map entries in Labels field with the same key.

func (*EvictionApplyConfiguration) WithName

WithName sets the Name field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Name field is set to the value of the last call.

func (*EvictionApplyConfiguration) WithNamespace

WithNamespace sets the Namespace field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Namespace field is set to the value of the last call.

func (*EvictionApplyConfiguration) WithOwnerReferences

WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the OwnerReferences field.

func (*EvictionApplyConfiguration) WithResourceVersion

func (b *EvictionApplyConfiguration) WithResourceVersion(value string) *EvictionApplyConfiguration

WithResourceVersion sets the ResourceVersion field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the ResourceVersion field is set to the value of the last call.

func (*EvictionApplyConfiguration) WithSpec

WithSpec sets the Spec field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Spec field is set to the value of the last call.

func (*EvictionApplyConfiguration) WithStatus

WithStatus sets the Status field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Status field is set to the value of the last call.

func (*EvictionApplyConfiguration) WithUID

WithUID sets the UID field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the UID field is set to the value of the last call.

type EvictionSpecApplyConfiguration

type EvictionSpecApplyConfiguration struct {
	// Name of hypervisor to evict
	Hypervisor *string `json:"hypervisor,omitempty"`
	// Reason for eviction, always required
	Reason *string `json:"reason,omitempty"`
}

EvictionSpecApplyConfiguration represents a declarative configuration of the EvictionSpec type for use with apply.

EvictionSpec defines the desired state of Eviction

func EvictionSpec

func EvictionSpec() *EvictionSpecApplyConfiguration

EvictionSpecApplyConfiguration constructs a declarative configuration of the EvictionSpec type for use with apply.

func (*EvictionSpecApplyConfiguration) WithHypervisor

WithHypervisor sets the Hypervisor field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Hypervisor field is set to the value of the last call.

func (*EvictionSpecApplyConfiguration) WithReason

WithReason sets the Reason field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Reason field is set to the value of the last call.

type EvictionStatusApplyConfiguration

type EvictionStatusApplyConfiguration struct {
	HypervisorServiceId  *string  `json:"hypervisorServiceId,omitempty"`
	OutstandingRamMb     *int64   `json:"outstandingRamMb,omitempty"`
	OutstandingInstances []string `json:"outstandingInstances,omitempty"`
	// Conditions is an array of current conditions
	Conditions []metav1.ConditionApplyConfiguration `json:"conditions,omitempty"`
}

EvictionStatusApplyConfiguration represents a declarative configuration of the EvictionStatus type for use with apply.

EvictionStatus defines the observed state of Eviction

func EvictionStatus

func EvictionStatus() *EvictionStatusApplyConfiguration

EvictionStatusApplyConfiguration constructs a declarative configuration of the EvictionStatus type for use with apply.

func (*EvictionStatusApplyConfiguration) WithConditions

WithConditions adds the given value to the Conditions field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the Conditions field.

func (*EvictionStatusApplyConfiguration) WithHypervisorServiceId

WithHypervisorServiceId sets the HypervisorServiceId field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the HypervisorServiceId field is set to the value of the last call.

func (*EvictionStatusApplyConfiguration) WithOutstandingInstances

func (b *EvictionStatusApplyConfiguration) WithOutstandingInstances(values ...string) *EvictionStatusApplyConfiguration

WithOutstandingInstances adds the given value to the OutstandingInstances field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the OutstandingInstances field.

func (*EvictionStatusApplyConfiguration) WithOutstandingRamMb

WithOutstandingRamMb sets the OutstandingRamMb field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the OutstandingRamMb field is set to the value of the last call.

type GroupApplyConfiguration added in v1.2.0

type GroupApplyConfiguration struct {
	Trait     *TraitGroupApplyConfiguration     `json:"trait,omitempty"`
	Aggregate *AggregateGroupApplyConfiguration `json:"aggregate,omitempty"`
}

GroupApplyConfiguration represents a declarative configuration of the Group type for use with apply.

Group is a typed group membership entry for a hypervisor.

This follows the field-presence union pattern (as used by PodSpec.volumes in core Kubernetes): each entry populates exactly one type-specific sub-field, and the populated field identifies the group type.

func Group added in v1.2.0

func Group() *GroupApplyConfiguration

GroupApplyConfiguration constructs a declarative configuration of the Group type for use with apply.

func (*GroupApplyConfiguration) WithAggregate added in v1.2.0

WithAggregate sets the Aggregate field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Aggregate field is set to the value of the last call.

func (*GroupApplyConfiguration) WithTrait added in v1.2.0

WithTrait sets the Trait field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Trait field is set to the value of the last call.

type HyperVisorUpdateStatusApplyConfiguration

type HyperVisorUpdateStatusApplyConfiguration struct {
	// Represents a running Operating System update.
	InProgress *bool `json:"inProgress,omitempty"`
	// Represents the Operating System installed update version.
	Installed *string `json:"installed,omitempty"`
	// Represents the number of retries.
	Retry *int `json:"retry,omitempty"`
}

HyperVisorUpdateStatusApplyConfiguration represents a declarative configuration of the HyperVisorUpdateStatus type for use with apply.

func HyperVisorUpdateStatus

func HyperVisorUpdateStatus() *HyperVisorUpdateStatusApplyConfiguration

HyperVisorUpdateStatusApplyConfiguration constructs a declarative configuration of the HyperVisorUpdateStatus type for use with apply.

func (*HyperVisorUpdateStatusApplyConfiguration) WithInProgress

WithInProgress sets the InProgress field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the InProgress field is set to the value of the last call.

func (*HyperVisorUpdateStatusApplyConfiguration) WithInstalled

WithInstalled sets the Installed field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Installed field is set to the value of the last call.

func (*HyperVisorUpdateStatusApplyConfiguration) WithRetry

WithRetry sets the Retry field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Retry field is set to the value of the last call.

type HypervisorApplyConfiguration

type HypervisorApplyConfiguration struct {
	metav1.TypeMetaApplyConfiguration    `json:""`
	*metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
	Spec                                 *HypervisorSpecApplyConfiguration   `json:"spec,omitempty"`
	Status                               *HypervisorStatusApplyConfiguration `json:"status,omitempty"`
}

HypervisorApplyConfiguration represents a declarative configuration of the Hypervisor type for use with apply.

Hypervisor is the Schema for the hypervisors API

func ExtractHypervisor added in v1.3.0

func ExtractHypervisor(hypervisor *apiv1.Hypervisor, fieldManager string) (*HypervisorApplyConfiguration, error)

ExtractHypervisor extracts the applied configuration owned by fieldManager from hypervisor. If no managedFields are found in hypervisor for fieldManager, a HypervisorApplyConfiguration is returned with only the Name, Namespace (if applicable), APIVersion and Kind populated. It is possible that no managed fields were found for because other field managers have taken ownership of all the fields previously owned by fieldManager, or because the fieldManager never owned fields any fields. hypervisor must be a unmodified Hypervisor API object that was retrieved from the Kubernetes API. ExtractHypervisor provides a way to perform a extract/modify-in-place/apply workflow. Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously applied if another fieldManager has updated or force applied any of the previously applied fields.

func ExtractHypervisorFrom added in v1.3.0

func ExtractHypervisorFrom(hypervisor *apiv1.Hypervisor, fieldManager string, subresource string) (*HypervisorApplyConfiguration, error)

ExtractHypervisorFrom extracts the applied configuration owned by fieldManager from hypervisor for the specified subresource. Pass an empty string for subresource to extract the main resource. Common subresources include "status", "scale", etc. hypervisor must be a unmodified Hypervisor API object that was retrieved from the Kubernetes API. ExtractHypervisorFrom provides a way to perform a extract/modify-in-place/apply workflow. Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously applied if another fieldManager has updated or force applied any of the previously applied fields.

func ExtractHypervisorStatus added in v1.3.0

func ExtractHypervisorStatus(hypervisor *apiv1.Hypervisor, fieldManager string) (*HypervisorApplyConfiguration, error)

ExtractHypervisorStatus extracts the applied configuration owned by fieldManager from hypervisor for the status subresource.

func Hypervisor

func Hypervisor(name string) *HypervisorApplyConfiguration

Hypervisor constructs a declarative configuration of the Hypervisor type for use with apply.

func (*HypervisorApplyConfiguration) GetAPIVersion

func (b *HypervisorApplyConfiguration) GetAPIVersion() *string

GetAPIVersion retrieves the value of the APIVersion field in the declarative configuration.

func (*HypervisorApplyConfiguration) GetKind

func (b *HypervisorApplyConfiguration) GetKind() *string

GetKind retrieves the value of the Kind field in the declarative configuration.

func (*HypervisorApplyConfiguration) GetName

func (b *HypervisorApplyConfiguration) GetName() *string

GetName retrieves the value of the Name field in the declarative configuration.

func (*HypervisorApplyConfiguration) GetNamespace

func (b *HypervisorApplyConfiguration) GetNamespace() *string

GetNamespace retrieves the value of the Namespace field in the declarative configuration.

func (HypervisorApplyConfiguration) IsApplyConfiguration

func (b HypervisorApplyConfiguration) IsApplyConfiguration()

func (*HypervisorApplyConfiguration) WithAPIVersion

WithAPIVersion sets the APIVersion field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the APIVersion field is set to the value of the last call.

func (*HypervisorApplyConfiguration) WithAnnotations

WithAnnotations puts the entries into the Annotations field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, the entries provided by each call will be put on the Annotations field, overwriting an existing map entries in Annotations field with the same key.

func (*HypervisorApplyConfiguration) WithCreationTimestamp

WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the CreationTimestamp field is set to the value of the last call.

func (*HypervisorApplyConfiguration) WithDeletionGracePeriodSeconds

func (b *HypervisorApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *HypervisorApplyConfiguration

WithDeletionGracePeriodSeconds sets the DeletionGracePeriodSeconds field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.

func (*HypervisorApplyConfiguration) WithDeletionTimestamp

WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the DeletionTimestamp field is set to the value of the last call.

func (*HypervisorApplyConfiguration) WithFinalizers

WithFinalizers adds the given value to the Finalizers field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the Finalizers field.

func (*HypervisorApplyConfiguration) WithGenerateName

WithGenerateName sets the GenerateName field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the GenerateName field is set to the value of the last call.

func (*HypervisorApplyConfiguration) WithGeneration

WithGeneration sets the Generation field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Generation field is set to the value of the last call.

func (*HypervisorApplyConfiguration) WithKind

WithKind sets the Kind field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Kind field is set to the value of the last call.

func (*HypervisorApplyConfiguration) WithLabels

WithLabels puts the entries into the Labels field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, the entries provided by each call will be put on the Labels field, overwriting an existing map entries in Labels field with the same key.

func (*HypervisorApplyConfiguration) WithName

WithName sets the Name field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Name field is set to the value of the last call.

func (*HypervisorApplyConfiguration) WithNamespace

WithNamespace sets the Namespace field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Namespace field is set to the value of the last call.

func (*HypervisorApplyConfiguration) WithOwnerReferences

WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the OwnerReferences field.

func (*HypervisorApplyConfiguration) WithResourceVersion

func (b *HypervisorApplyConfiguration) WithResourceVersion(value string) *HypervisorApplyConfiguration

WithResourceVersion sets the ResourceVersion field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the ResourceVersion field is set to the value of the last call.

func (*HypervisorApplyConfiguration) WithSpec

WithSpec sets the Spec field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Spec field is set to the value of the last call.

func (*HypervisorApplyConfiguration) WithStatus

WithStatus sets the Status field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Status field is set to the value of the last call.

func (*HypervisorApplyConfiguration) WithUID

WithUID sets the UID field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the UID field is set to the value of the last call.

type HypervisorSpecApplyConfiguration

type HypervisorSpecApplyConfiguration struct {
	// OperatingSystemVersion represents the desired operating system version.
	OperatingSystemVersion *string `json:"version,omitempty"`
	// Reboot requests a reboot after successful installation of an upgrade.
	Reboot *bool `json:"reboot,omitempty"`
	// EvacuateOnReboot requests an evacuation of all instances before reboot.
	EvacuateOnReboot *bool `json:"evacuateOnReboot,omitempty"`
	// LifecycleEnabled enables the lifecycle management of the hypervisor via hypervisor-operator.
	LifecycleEnabled *bool `json:"lifecycleEnabled,omitempty"`
	// SkipTests skips the tests during the onboarding process.
	SkipTests *bool `json:"skipTests,omitempty"`
	// CustomTraits are used to apply custom traits to the hypervisor.
	CustomTraits []string `json:"customTraits,omitempty"`
	// Aggregates are used to apply aggregates to the hypervisor.
	Aggregates []string `json:"aggregates,omitempty"`
	// Groups defines typed group memberships for this hypervisor.
	//
	// Both traits and aggregates are forms of grouping: traits group
	// hypervisors by capability, aggregates group them by administrative
	// assignment. Each entry follows the field-presence union pattern
	// (as used by PodSpec.volumes in core Kubernetes): exactly one
	// type-specific sub-field must be populated per entry.
	//
	// The Cortex Placement shim and scheduler read group memberships
	// directly from this field.
	//
	// Note: uniqueness of trait names and aggregate UUIDs is not enforced
	// via CEL because the required O(n^2) comparison exceeds the
	// Kubernetes CEL cost budget. Enforce uniqueness in the consuming
	// controller or via a validating webhook if needed.
	//
	Groups []GroupApplyConfiguration `json:"groups,omitempty"`
	// AllowedProjects defines which openstack projects are allowed to schedule
	// instances on this hypervisor. The values of this list should be project
	// uuids. If left empty, all projects are allowed.
	AllowedProjects []string `json:"allowedProjects,omitempty"`
	// HighAvailability is used to enable the high availability handling of the hypervisor.
	HighAvailability *bool `json:"highAvailability,omitempty"`
	// CreateCertManagerCertificate requests that a certificate be issued from
	// cert-manager for the hypervisor, to be used for secure communication
	// with the libvirt API.
	CreateCertManagerCertificate *bool `json:"createCertManagerCertificate,omitempty"`
	// InstallCertificate enables installation of certificates via kvm-node-agent.
	InstallCertificate *bool `json:"installCertificate,omitempty"`
	// Maintenance indicates whether the hypervisor is in maintenance mode.
	Maintenance *string `json:"maintenance,omitempty"`
	// MaintenanceReason provides the reason for manual maintenance mode.
	MaintenanceReason *string `json:"maintenanceReason,omitempty"`
	// Overcommit specifies the desired overcommit ratio by resource type.
	//
	// If no overcommit is specified for a resource type, the default overcommit
	// ratio of 1.0 should be applied, i.e. the effective capacity is the same
	// as the actual capacity.
	//
	// If the overcommit ratio results in a fractional effective capacity,
	// the effective capacity is expected to be rounded down. This allows
	// gradually adjusting the hypervisor capacity.
	//
	//
	// It is validated that all overcommit ratios are greater than or equal to
	// 1.0, if specified. For this we don't need extra validating webhooks.
	// See: https://kubernetes.io/blog/2022/09/23/crd-validation-rules-beta/#crd-transition-rules
	Overcommit map[apiv1.ResourceName]float64 `json:"overcommit,omitempty"`
}

HypervisorSpecApplyConfiguration represents a declarative configuration of the HypervisorSpec type for use with apply.

HypervisorSpec defines the desired state of Hypervisor

func HypervisorSpec

func HypervisorSpec() *HypervisorSpecApplyConfiguration

HypervisorSpecApplyConfiguration constructs a declarative configuration of the HypervisorSpec type for use with apply.

func (*HypervisorSpecApplyConfiguration) WithAggregates

WithAggregates adds the given value to the Aggregates field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the Aggregates field.

func (*HypervisorSpecApplyConfiguration) WithAllowedProjects

WithAllowedProjects adds the given value to the AllowedProjects field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the AllowedProjects field.

func (*HypervisorSpecApplyConfiguration) WithCreateCertManagerCertificate

func (b *HypervisorSpecApplyConfiguration) WithCreateCertManagerCertificate(value bool) *HypervisorSpecApplyConfiguration

WithCreateCertManagerCertificate sets the CreateCertManagerCertificate field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the CreateCertManagerCertificate field is set to the value of the last call.

func (*HypervisorSpecApplyConfiguration) WithCustomTraits

WithCustomTraits adds the given value to the CustomTraits field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the CustomTraits field.

func (*HypervisorSpecApplyConfiguration) WithEvacuateOnReboot

WithEvacuateOnReboot sets the EvacuateOnReboot field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the EvacuateOnReboot field is set to the value of the last call.

func (*HypervisorSpecApplyConfiguration) WithGroups added in v1.2.0

WithGroups adds the given value to the Groups field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the Groups field.

func (*HypervisorSpecApplyConfiguration) WithHighAvailability

WithHighAvailability sets the HighAvailability field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the HighAvailability field is set to the value of the last call.

func (*HypervisorSpecApplyConfiguration) WithInstallCertificate

WithInstallCertificate sets the InstallCertificate field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the InstallCertificate field is set to the value of the last call.

func (*HypervisorSpecApplyConfiguration) WithLifecycleEnabled

WithLifecycleEnabled sets the LifecycleEnabled field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the LifecycleEnabled field is set to the value of the last call.

func (*HypervisorSpecApplyConfiguration) WithMaintenance

WithMaintenance sets the Maintenance field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Maintenance field is set to the value of the last call.

func (*HypervisorSpecApplyConfiguration) WithMaintenanceReason

WithMaintenanceReason sets the MaintenanceReason field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the MaintenanceReason field is set to the value of the last call.

func (*HypervisorSpecApplyConfiguration) WithOperatingSystemVersion

func (b *HypervisorSpecApplyConfiguration) WithOperatingSystemVersion(value string) *HypervisorSpecApplyConfiguration

WithOperatingSystemVersion sets the OperatingSystemVersion field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the OperatingSystemVersion field is set to the value of the last call.

func (*HypervisorSpecApplyConfiguration) WithOvercommit

WithOvercommit puts the entries into the Overcommit field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, the entries provided by each call will be put on the Overcommit field, overwriting an existing map entries in Overcommit field with the same key.

func (*HypervisorSpecApplyConfiguration) WithReboot

WithReboot sets the Reboot field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Reboot field is set to the value of the last call.

func (*HypervisorSpecApplyConfiguration) WithSkipTests

WithSkipTests sets the SkipTests field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the SkipTests field is set to the value of the last call.

type HypervisorStatusApplyConfiguration

type HypervisorStatusApplyConfiguration struct {
	// Represents the LibVirt version.
	LibVirtVersion *string `json:"libVirtVersion,omitempty"`
	// Represents the Hypervisor version
	HypervisorVersion *string `json:"hypervisorVersion,omitempty"`
	// Represents the Operating System status.
	OperatingSystem *OperatingSystemStatusApplyConfiguration `json:"operatingSystem,omitempty"`
	// Represents the Hypervisor update status.
	Update *HyperVisorUpdateStatusApplyConfiguration `json:"updateStatus,omitempty"`
	// Represents the Hypervisor hosted Virtual Machines
	Instances []InstanceApplyConfiguration `json:"instances,omitempty"`
	// Auto-discovered capabilities as reported by libvirt.
	Capabilities *CapabilitiesApplyConfiguration `json:"capabilities,omitempty"`
	// Auto-discovered domain capabilities relevant to check if a VM
	// can be scheduled on the hypervisor.
	DomainCapabilities *DomainCapabilitiesApplyConfiguration `json:"domainCapabilities,omitempty"`
	// Auto-discovered resource allocation of all hosted VMs.
	Allocation map[apiv1.ResourceName]resource.Quantity `json:"allocation,omitempty"`
	// Auto-discovered capacity of the hypervisor.
	//
	// Note that this capacity does not include the applied overcommit ratios,
	// and represents the actual capacity of the hypervisor. Use the
	// effective capacity field to get the capacity considering the applied
	// overcommit ratios.
	//
	Capacity map[apiv1.ResourceName]resource.Quantity `json:"capacity,omitempty"`
	// Auto-discovered capacity of the hypervisor, considering the
	// applied overcommit ratios.
	//
	// In case no overcommit ratio is specified for a resource type, the default
	// overcommit ratio of 1 should be applied, meaning the effective capacity
	// is the same as the actual capacity.
	//
	// If the overcommit ratio results in a fractional effective capacity, the
	// effective capacity is expected to be rounded down.
	//
	EffectiveCapacity map[apiv1.ResourceName]resource.Quantity `json:"effectiveCapacity,omitempty"`
	// Auto-discovered cells on this hypervisor.
	Cells []CellApplyConfiguration `json:"cells,omitempty"`
	// Represents the number of instances running on this hypervisor.
	NumInstances *int `json:"numInstances,omitempty"`
	// HypervisorID is the unique identifier of the hypervisor in OpenStack.
	HypervisorID *string `json:"hypervisorId,omitempty"`
	// ServiceID is the unique identifier of the compute service in OpenStack.
	ServiceID *string `json:"serviceId,omitempty"`
	// Traits are the applied traits of the hypervisor.
	Traits []string `json:"traits,omitempty"`
	// Aggregates are the applied aggregates of the hypervisor with their names and UUIDs.
	Aggregates []AggregateApplyConfiguration `json:"aggregates,omitempty"`
	// InternalIP is the internal IP address of the hypervisor.
	InternalIP *string `json:"internalIp,omitempty"`
	// Evicted indicates whether the hypervisor is evicted. (no instances left with active maintenance mode)
	Evicted *bool `json:"evicted,omitempty"`
	// Represents the Hypervisor node conditions.
	Conditions []metav1.ConditionApplyConfiguration `json:"conditions,omitempty"`
	SpecHash   *string                              `json:"specHash,omitempty"`
}

HypervisorStatusApplyConfiguration represents a declarative configuration of the HypervisorStatus type for use with apply.

HypervisorStatus defines the observed state of Hypervisor

func HypervisorStatus

func HypervisorStatus() *HypervisorStatusApplyConfiguration

HypervisorStatusApplyConfiguration constructs a declarative configuration of the HypervisorStatus type for use with apply.

func (*HypervisorStatusApplyConfiguration) WithAggregates

WithAggregates adds the given value to the Aggregates field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the Aggregates field.

func (*HypervisorStatusApplyConfiguration) WithAllocation

WithAllocation puts the entries into the Allocation field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, the entries provided by each call will be put on the Allocation field, overwriting an existing map entries in Allocation field with the same key.

func (*HypervisorStatusApplyConfiguration) WithCapabilities

WithCapabilities sets the Capabilities field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Capabilities field is set to the value of the last call.

func (*HypervisorStatusApplyConfiguration) WithCapacity

WithCapacity puts the entries into the Capacity field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, the entries provided by each call will be put on the Capacity field, overwriting an existing map entries in Capacity field with the same key.

func (*HypervisorStatusApplyConfiguration) WithCells

WithCells adds the given value to the Cells field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the Cells field.

func (*HypervisorStatusApplyConfiguration) WithConditions

WithConditions adds the given value to the Conditions field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the Conditions field.

func (*HypervisorStatusApplyConfiguration) WithDomainCapabilities

WithDomainCapabilities sets the DomainCapabilities field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the DomainCapabilities field is set to the value of the last call.

func (*HypervisorStatusApplyConfiguration) WithEffectiveCapacity

WithEffectiveCapacity puts the entries into the EffectiveCapacity field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, the entries provided by each call will be put on the EffectiveCapacity field, overwriting an existing map entries in EffectiveCapacity field with the same key.

func (*HypervisorStatusApplyConfiguration) WithEvicted

WithEvicted sets the Evicted field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Evicted field is set to the value of the last call.

func (*HypervisorStatusApplyConfiguration) WithHypervisorID

WithHypervisorID sets the HypervisorID field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the HypervisorID field is set to the value of the last call.

func (*HypervisorStatusApplyConfiguration) WithHypervisorVersion

WithHypervisorVersion sets the HypervisorVersion field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the HypervisorVersion field is set to the value of the last call.

func (*HypervisorStatusApplyConfiguration) WithInstances

WithInstances adds the given value to the Instances field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the Instances field.

func (*HypervisorStatusApplyConfiguration) WithInternalIP

WithInternalIP sets the InternalIP field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the InternalIP field is set to the value of the last call.

func (*HypervisorStatusApplyConfiguration) WithLibVirtVersion

WithLibVirtVersion sets the LibVirtVersion field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the LibVirtVersion field is set to the value of the last call.

func (*HypervisorStatusApplyConfiguration) WithNumInstances

WithNumInstances sets the NumInstances field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the NumInstances field is set to the value of the last call.

func (*HypervisorStatusApplyConfiguration) WithOperatingSystem

WithOperatingSystem sets the OperatingSystem field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the OperatingSystem field is set to the value of the last call.

func (*HypervisorStatusApplyConfiguration) WithServiceID

WithServiceID sets the ServiceID field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the ServiceID field is set to the value of the last call.

func (*HypervisorStatusApplyConfiguration) WithSpecHash

WithSpecHash sets the SpecHash field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the SpecHash field is set to the value of the last call.

func (*HypervisorStatusApplyConfiguration) WithTraits

WithTraits adds the given value to the Traits field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the Traits field.

func (*HypervisorStatusApplyConfiguration) WithUpdate

WithUpdate sets the Update field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Update field is set to the value of the last call.

type InstanceApplyConfiguration

type InstanceApplyConfiguration struct {
	// Represents the instance ID (uuidv4).
	ID *string `json:"id,omitempty"`
	// Represents the instance name.
	Name *string `json:"name,omitempty"`
	// Represents the instance state.
	Active *bool `json:"active,omitempty"`
}

InstanceApplyConfiguration represents a declarative configuration of the Instance type for use with apply.

func Instance

func Instance() *InstanceApplyConfiguration

InstanceApplyConfiguration constructs a declarative configuration of the Instance type for use with apply.

func (*InstanceApplyConfiguration) WithActive

WithActive sets the Active field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Active field is set to the value of the last call.

func (*InstanceApplyConfiguration) WithID

WithID sets the ID field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the ID field is set to the value of the last call.

func (*InstanceApplyConfiguration) WithName

WithName sets the Name field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Name field is set to the value of the last call.

type OperatingSystemStatusApplyConfiguration

type OperatingSystemStatusApplyConfiguration struct {
	// Represents the Operating System version.
	Version *string `json:"version,omitempty"`
	// Identifying a specific variant or edition of the operating system
	VariantID *string `json:"variantID,omitempty"`
	// PrettyVersion
	PrettyVersion *string `json:"prettyVersion,omitempty"`
	// KernelName
	KernelName *string `json:"kernelName,omitempty"`
	// KernelRelease
	KernelRelease *string `json:"kernelRelease,omitempty"`
	// KernelVersion
	KernelVersion *string `json:"kernelVersion,omitempty"`
	// KernelCommandLine contains the raw kernel boot parameters from /proc/cmdline.
	KernelCommandLine *string `json:"kernelCommandLine,omitempty"`
	// HardwareVendor
	HardwareVendor *string `json:"hardwareVendor,omitempty"`
	// HardwareModel
	HardwareModel *string `json:"hardwareModel,omitempty"`
	// HardwareSerial
	HardwareSerial *string `json:"hardwareSerial,omitempty"`
	// FirmwareVersion
	FirmwareVersion *string `json:"firmwareVersion,omitempty"`
	// FirmwareVendor
	FirmwareVendor *string `json:"firmwareVendor,omitempty"`
	// FirmwareDate
	FirmwareDate *metav1.Time `json:"firmwareDate,omitempty"`
	// Represents the Garden Linux build commit id
	GardenLinuxCommitID *string `json:"gardenLinuxCommitID,omitempty"`
	// Represents the Garden Linux Feature Set
	GardenLinuxFeatures []string `json:"gardenLinuxFeatures,omitempty"`
}

OperatingSystemStatusApplyConfiguration represents a declarative configuration of the OperatingSystemStatus type for use with apply.

func OperatingSystemStatus

func OperatingSystemStatus() *OperatingSystemStatusApplyConfiguration

OperatingSystemStatusApplyConfiguration constructs a declarative configuration of the OperatingSystemStatus type for use with apply.

func (*OperatingSystemStatusApplyConfiguration) WithFirmwareDate

WithFirmwareDate sets the FirmwareDate field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the FirmwareDate field is set to the value of the last call.

func (*OperatingSystemStatusApplyConfiguration) WithFirmwareVendor

WithFirmwareVendor sets the FirmwareVendor field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the FirmwareVendor field is set to the value of the last call.

func (*OperatingSystemStatusApplyConfiguration) WithFirmwareVersion

WithFirmwareVersion sets the FirmwareVersion field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the FirmwareVersion field is set to the value of the last call.

func (*OperatingSystemStatusApplyConfiguration) WithGardenLinuxCommitID

WithGardenLinuxCommitID sets the GardenLinuxCommitID field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the GardenLinuxCommitID field is set to the value of the last call.

func (*OperatingSystemStatusApplyConfiguration) WithGardenLinuxFeatures

WithGardenLinuxFeatures adds the given value to the GardenLinuxFeatures field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the GardenLinuxFeatures field.

func (*OperatingSystemStatusApplyConfiguration) WithHardwareModel

WithHardwareModel sets the HardwareModel field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the HardwareModel field is set to the value of the last call.

func (*OperatingSystemStatusApplyConfiguration) WithHardwareSerial

WithHardwareSerial sets the HardwareSerial field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the HardwareSerial field is set to the value of the last call.

func (*OperatingSystemStatusApplyConfiguration) WithHardwareVendor

WithHardwareVendor sets the HardwareVendor field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the HardwareVendor field is set to the value of the last call.

func (*OperatingSystemStatusApplyConfiguration) WithKernelCommandLine

WithKernelCommandLine sets the KernelCommandLine field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the KernelCommandLine field is set to the value of the last call.

func (*OperatingSystemStatusApplyConfiguration) WithKernelName

WithKernelName sets the KernelName field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the KernelName field is set to the value of the last call.

func (*OperatingSystemStatusApplyConfiguration) WithKernelRelease

WithKernelRelease sets the KernelRelease field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the KernelRelease field is set to the value of the last call.

func (*OperatingSystemStatusApplyConfiguration) WithKernelVersion

WithKernelVersion sets the KernelVersion field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the KernelVersion field is set to the value of the last call.

func (*OperatingSystemStatusApplyConfiguration) WithPrettyVersion

WithPrettyVersion sets the PrettyVersion field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the PrettyVersion field is set to the value of the last call.

func (*OperatingSystemStatusApplyConfiguration) WithVariantID

WithVariantID sets the VariantID field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the VariantID field is set to the value of the last call.

func (*OperatingSystemStatusApplyConfiguration) WithVersion

WithVersion sets the Version field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Version field is set to the value of the last call.

type TraitGroupApplyConfiguration added in v1.2.0

type TraitGroupApplyConfiguration struct {
	Name *string `json:"name,omitempty"`
}

TraitGroupApplyConfiguration represents a declarative configuration of the TraitGroup type for use with apply.

TraitGroup represents a capability trait, such as an OpenStack Placement trait (e.g. HW_CPU_X86_AVX2, COMPUTE_STATUS_DISABLED).

func TraitGroup added in v1.2.0

func TraitGroup() *TraitGroupApplyConfiguration

TraitGroupApplyConfiguration constructs a declarative configuration of the TraitGroup type for use with apply.

func (*TraitGroupApplyConfiguration) WithName added in v1.2.0

WithName sets the Name field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Name field is set to the value of the last call.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL