Documentation
¶
Index ¶
- type AggregateApplyConfiguration
- type AggregateGroupApplyConfiguration
- func (b *AggregateGroupApplyConfiguration) WithMetadata(entries map[string]string) *AggregateGroupApplyConfiguration
- func (b *AggregateGroupApplyConfiguration) WithName(value string) *AggregateGroupApplyConfiguration
- func (b *AggregateGroupApplyConfiguration) WithUUID(value string) *AggregateGroupApplyConfiguration
- type CapabilitiesApplyConfiguration
- func (b *CapabilitiesApplyConfiguration) WithHostCpuArch(value string) *CapabilitiesApplyConfiguration
- func (b *CapabilitiesApplyConfiguration) WithHostCpus(value resource.Quantity) *CapabilitiesApplyConfiguration
- func (b *CapabilitiesApplyConfiguration) WithHostMemory(value resource.Quantity) *CapabilitiesApplyConfiguration
- type CellApplyConfiguration
- func (b *CellApplyConfiguration) WithAllocation(entries map[apiv1.ResourceName]resource.Quantity) *CellApplyConfiguration
- func (b *CellApplyConfiguration) WithCapacity(entries map[apiv1.ResourceName]resource.Quantity) *CellApplyConfiguration
- func (b *CellApplyConfiguration) WithCellID(value uint64) *CellApplyConfiguration
- func (b *CellApplyConfiguration) WithEffectiveCapacity(entries map[apiv1.ResourceName]resource.Quantity) *CellApplyConfiguration
- type DomainCapabilitiesApplyConfiguration
- func (b *DomainCapabilitiesApplyConfiguration) WithArch(value string) *DomainCapabilitiesApplyConfiguration
- func (b *DomainCapabilitiesApplyConfiguration) WithHypervisorType(value string) *DomainCapabilitiesApplyConfiguration
- func (b *DomainCapabilitiesApplyConfiguration) WithSupportedCpuModes(values ...string) *DomainCapabilitiesApplyConfiguration
- func (b *DomainCapabilitiesApplyConfiguration) WithSupportedDevices(values ...string) *DomainCapabilitiesApplyConfiguration
- func (b *DomainCapabilitiesApplyConfiguration) WithSupportedFeatures(values ...string) *DomainCapabilitiesApplyConfiguration
- type DomainInfoApplyConfiguration
- func (b *DomainInfoApplyConfiguration) WithAllocation(entries map[string]resource.Quantity) *DomainInfoApplyConfiguration
- func (b *DomainInfoApplyConfiguration) WithCpuCells(values ...int) *DomainInfoApplyConfiguration
- func (b *DomainInfoApplyConfiguration) WithMemoryCells(values ...int) *DomainInfoApplyConfiguration
- func (b *DomainInfoApplyConfiguration) WithName(value string) *DomainInfoApplyConfiguration
- func (b *DomainInfoApplyConfiguration) WithUUID(value string) *DomainInfoApplyConfiguration
- type EvictionApplyConfiguration
- func Eviction(name string) *EvictionApplyConfiguration
- func ExtractEviction(eviction *apiv1.Eviction, fieldManager string) (*EvictionApplyConfiguration, error)
- func ExtractEvictionFrom(eviction *apiv1.Eviction, fieldManager string, subresource string) (*EvictionApplyConfiguration, error)
- func ExtractEvictionStatus(eviction *apiv1.Eviction, fieldManager string) (*EvictionApplyConfiguration, error)
- func (b *EvictionApplyConfiguration) GetAPIVersion() *string
- func (b *EvictionApplyConfiguration) GetKind() *string
- func (b *EvictionApplyConfiguration) GetName() *string
- func (b *EvictionApplyConfiguration) GetNamespace() *string
- func (b EvictionApplyConfiguration) IsApplyConfiguration()
- func (b *EvictionApplyConfiguration) WithAPIVersion(value string) *EvictionApplyConfiguration
- func (b *EvictionApplyConfiguration) WithAnnotations(entries map[string]string) *EvictionApplyConfiguration
- func (b *EvictionApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *EvictionApplyConfiguration
- func (b *EvictionApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *EvictionApplyConfiguration
- func (b *EvictionApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *EvictionApplyConfiguration
- func (b *EvictionApplyConfiguration) WithFinalizers(values ...string) *EvictionApplyConfiguration
- func (b *EvictionApplyConfiguration) WithGenerateName(value string) *EvictionApplyConfiguration
- func (b *EvictionApplyConfiguration) WithGeneration(value int64) *EvictionApplyConfiguration
- func (b *EvictionApplyConfiguration) WithKind(value string) *EvictionApplyConfiguration
- func (b *EvictionApplyConfiguration) WithLabels(entries map[string]string) *EvictionApplyConfiguration
- func (b *EvictionApplyConfiguration) WithName(value string) *EvictionApplyConfiguration
- func (b *EvictionApplyConfiguration) WithNamespace(value string) *EvictionApplyConfiguration
- func (b *EvictionApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *EvictionApplyConfiguration
- func (b *EvictionApplyConfiguration) WithResourceVersion(value string) *EvictionApplyConfiguration
- func (b *EvictionApplyConfiguration) WithSpec(value *EvictionSpecApplyConfiguration) *EvictionApplyConfiguration
- func (b *EvictionApplyConfiguration) WithStatus(value *EvictionStatusApplyConfiguration) *EvictionApplyConfiguration
- func (b *EvictionApplyConfiguration) WithUID(value types.UID) *EvictionApplyConfiguration
- type EvictionSpecApplyConfiguration
- type EvictionStatusApplyConfiguration
- func (b *EvictionStatusApplyConfiguration) WithConditions(values ...*metav1.ConditionApplyConfiguration) *EvictionStatusApplyConfiguration
- func (b *EvictionStatusApplyConfiguration) WithHypervisorServiceId(value string) *EvictionStatusApplyConfiguration
- func (b *EvictionStatusApplyConfiguration) WithOutstandingInstances(values ...string) *EvictionStatusApplyConfiguration
- func (b *EvictionStatusApplyConfiguration) WithOutstandingRamMb(value int64) *EvictionStatusApplyConfiguration
- type GroupApplyConfiguration
- type HyperVisorUpdateStatusApplyConfiguration
- func (b *HyperVisorUpdateStatusApplyConfiguration) WithInProgress(value bool) *HyperVisorUpdateStatusApplyConfiguration
- func (b *HyperVisorUpdateStatusApplyConfiguration) WithInstalled(value string) *HyperVisorUpdateStatusApplyConfiguration
- func (b *HyperVisorUpdateStatusApplyConfiguration) WithRetry(value int) *HyperVisorUpdateStatusApplyConfiguration
- type HypervisorApplyConfiguration
- func ExtractHypervisor(hypervisor *apiv1.Hypervisor, fieldManager string) (*HypervisorApplyConfiguration, error)
- func ExtractHypervisorFrom(hypervisor *apiv1.Hypervisor, fieldManager string, subresource string) (*HypervisorApplyConfiguration, error)
- func ExtractHypervisorStatus(hypervisor *apiv1.Hypervisor, fieldManager string) (*HypervisorApplyConfiguration, error)
- func Hypervisor(name string) *HypervisorApplyConfiguration
- func (b *HypervisorApplyConfiguration) GetAPIVersion() *string
- func (b *HypervisorApplyConfiguration) GetKind() *string
- func (b *HypervisorApplyConfiguration) GetName() *string
- func (b *HypervisorApplyConfiguration) GetNamespace() *string
- func (b HypervisorApplyConfiguration) IsApplyConfiguration()
- func (b *HypervisorApplyConfiguration) WithAPIVersion(value string) *HypervisorApplyConfiguration
- func (b *HypervisorApplyConfiguration) WithAnnotations(entries map[string]string) *HypervisorApplyConfiguration
- func (b *HypervisorApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *HypervisorApplyConfiguration
- func (b *HypervisorApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *HypervisorApplyConfiguration
- func (b *HypervisorApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *HypervisorApplyConfiguration
- func (b *HypervisorApplyConfiguration) WithFinalizers(values ...string) *HypervisorApplyConfiguration
- func (b *HypervisorApplyConfiguration) WithGenerateName(value string) *HypervisorApplyConfiguration
- func (b *HypervisorApplyConfiguration) WithGeneration(value int64) *HypervisorApplyConfiguration
- func (b *HypervisorApplyConfiguration) WithKind(value string) *HypervisorApplyConfiguration
- func (b *HypervisorApplyConfiguration) WithLabels(entries map[string]string) *HypervisorApplyConfiguration
- func (b *HypervisorApplyConfiguration) WithName(value string) *HypervisorApplyConfiguration
- func (b *HypervisorApplyConfiguration) WithNamespace(value string) *HypervisorApplyConfiguration
- func (b *HypervisorApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *HypervisorApplyConfiguration
- func (b *HypervisorApplyConfiguration) WithResourceVersion(value string) *HypervisorApplyConfiguration
- func (b *HypervisorApplyConfiguration) WithSpec(value *HypervisorSpecApplyConfiguration) *HypervisorApplyConfiguration
- func (b *HypervisorApplyConfiguration) WithStatus(value *HypervisorStatusApplyConfiguration) *HypervisorApplyConfiguration
- func (b *HypervisorApplyConfiguration) WithUID(value types.UID) *HypervisorApplyConfiguration
- type HypervisorSpecApplyConfiguration
- func (b *HypervisorSpecApplyConfiguration) WithAggregates(values ...string) *HypervisorSpecApplyConfiguration
- func (b *HypervisorSpecApplyConfiguration) WithAllowedProjects(values ...string) *HypervisorSpecApplyConfiguration
- func (b *HypervisorSpecApplyConfiguration) WithCreateCertManagerCertificate(value bool) *HypervisorSpecApplyConfiguration
- func (b *HypervisorSpecApplyConfiguration) WithCustomTraits(values ...string) *HypervisorSpecApplyConfiguration
- func (b *HypervisorSpecApplyConfiguration) WithEvacuateOnReboot(value bool) *HypervisorSpecApplyConfiguration
- func (b *HypervisorSpecApplyConfiguration) WithGroups(values ...*GroupApplyConfiguration) *HypervisorSpecApplyConfiguration
- func (b *HypervisorSpecApplyConfiguration) WithHighAvailability(value bool) *HypervisorSpecApplyConfiguration
- func (b *HypervisorSpecApplyConfiguration) WithInstallCertificate(value bool) *HypervisorSpecApplyConfiguration
- func (b *HypervisorSpecApplyConfiguration) WithLifecycleEnabled(value bool) *HypervisorSpecApplyConfiguration
- func (b *HypervisorSpecApplyConfiguration) WithMaintenance(value string) *HypervisorSpecApplyConfiguration
- func (b *HypervisorSpecApplyConfiguration) WithMaintenanceReason(value string) *HypervisorSpecApplyConfiguration
- func (b *HypervisorSpecApplyConfiguration) WithOperatingSystemVersion(value string) *HypervisorSpecApplyConfiguration
- func (b *HypervisorSpecApplyConfiguration) WithOvercommit(entries map[apiv1.ResourceName]float64) *HypervisorSpecApplyConfiguration
- func (b *HypervisorSpecApplyConfiguration) WithReboot(value bool) *HypervisorSpecApplyConfiguration
- func (b *HypervisorSpecApplyConfiguration) WithSkipTests(value bool) *HypervisorSpecApplyConfiguration
- type HypervisorStatusApplyConfiguration
- func (b *HypervisorStatusApplyConfiguration) WithAggregates(values ...*AggregateApplyConfiguration) *HypervisorStatusApplyConfiguration
- func (b *HypervisorStatusApplyConfiguration) WithAllocation(entries map[apiv1.ResourceName]resource.Quantity) *HypervisorStatusApplyConfiguration
- func (b *HypervisorStatusApplyConfiguration) WithCapabilities(value *CapabilitiesApplyConfiguration) *HypervisorStatusApplyConfiguration
- func (b *HypervisorStatusApplyConfiguration) WithCapacity(entries map[apiv1.ResourceName]resource.Quantity) *HypervisorStatusApplyConfiguration
- func (b *HypervisorStatusApplyConfiguration) WithCells(values ...*CellApplyConfiguration) *HypervisorStatusApplyConfiguration
- func (b *HypervisorStatusApplyConfiguration) WithConditions(values ...*metav1.ConditionApplyConfiguration) *HypervisorStatusApplyConfiguration
- func (b *HypervisorStatusApplyConfiguration) WithDomainCapabilities(value *DomainCapabilitiesApplyConfiguration) *HypervisorStatusApplyConfiguration
- func (b *HypervisorStatusApplyConfiguration) WithEffectiveCapacity(entries map[apiv1.ResourceName]resource.Quantity) *HypervisorStatusApplyConfiguration
- func (b *HypervisorStatusApplyConfiguration) WithEvicted(value bool) *HypervisorStatusApplyConfiguration
- func (b *HypervisorStatusApplyConfiguration) WithHypervisorID(value string) *HypervisorStatusApplyConfiguration
- func (b *HypervisorStatusApplyConfiguration) WithHypervisorVersion(value string) *HypervisorStatusApplyConfiguration
- func (b *HypervisorStatusApplyConfiguration) WithInstances(values ...*InstanceApplyConfiguration) *HypervisorStatusApplyConfiguration
- func (b *HypervisorStatusApplyConfiguration) WithInternalIP(value string) *HypervisorStatusApplyConfiguration
- func (b *HypervisorStatusApplyConfiguration) WithLibVirtVersion(value string) *HypervisorStatusApplyConfiguration
- func (b *HypervisorStatusApplyConfiguration) WithNumInstances(value int) *HypervisorStatusApplyConfiguration
- func (b *HypervisorStatusApplyConfiguration) WithOperatingSystem(value *OperatingSystemStatusApplyConfiguration) *HypervisorStatusApplyConfiguration
- func (b *HypervisorStatusApplyConfiguration) WithServiceID(value string) *HypervisorStatusApplyConfiguration
- func (b *HypervisorStatusApplyConfiguration) WithSpecHash(value string) *HypervisorStatusApplyConfiguration
- func (b *HypervisorStatusApplyConfiguration) WithTraits(values ...string) *HypervisorStatusApplyConfiguration
- func (b *HypervisorStatusApplyConfiguration) WithUpdate(value *HyperVisorUpdateStatusApplyConfiguration) *HypervisorStatusApplyConfiguration
- type InstanceApplyConfiguration
- type OperatingSystemStatusApplyConfiguration
- func (b *OperatingSystemStatusApplyConfiguration) WithFirmwareDate(value metav1.Time) *OperatingSystemStatusApplyConfiguration
- func (b *OperatingSystemStatusApplyConfiguration) WithFirmwareVendor(value string) *OperatingSystemStatusApplyConfiguration
- func (b *OperatingSystemStatusApplyConfiguration) WithFirmwareVersion(value string) *OperatingSystemStatusApplyConfiguration
- func (b *OperatingSystemStatusApplyConfiguration) WithGardenLinuxCommitID(value string) *OperatingSystemStatusApplyConfiguration
- func (b *OperatingSystemStatusApplyConfiguration) WithGardenLinuxFeatures(values ...string) *OperatingSystemStatusApplyConfiguration
- func (b *OperatingSystemStatusApplyConfiguration) WithHardwareModel(value string) *OperatingSystemStatusApplyConfiguration
- func (b *OperatingSystemStatusApplyConfiguration) WithHardwareSerial(value string) *OperatingSystemStatusApplyConfiguration
- func (b *OperatingSystemStatusApplyConfiguration) WithHardwareVendor(value string) *OperatingSystemStatusApplyConfiguration
- func (b *OperatingSystemStatusApplyConfiguration) WithKernelCommandLine(value string) *OperatingSystemStatusApplyConfiguration
- func (b *OperatingSystemStatusApplyConfiguration) WithKernelName(value string) *OperatingSystemStatusApplyConfiguration
- func (b *OperatingSystemStatusApplyConfiguration) WithKernelRelease(value string) *OperatingSystemStatusApplyConfiguration
- func (b *OperatingSystemStatusApplyConfiguration) WithKernelVersion(value string) *OperatingSystemStatusApplyConfiguration
- func (b *OperatingSystemStatusApplyConfiguration) WithPrettyVersion(value string) *OperatingSystemStatusApplyConfiguration
- func (b *OperatingSystemStatusApplyConfiguration) WithVariantID(value string) *OperatingSystemStatusApplyConfiguration
- func (b *OperatingSystemStatusApplyConfiguration) WithVersion(value string) *OperatingSystemStatusApplyConfiguration
- type TraitGroupApplyConfiguration
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
func (b *AggregateApplyConfiguration) WithMetadata(entries map[string]string) *AggregateApplyConfiguration
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 ¶
func (b *AggregateApplyConfiguration) WithName(value string) *AggregateApplyConfiguration
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 ¶
func (b *AggregateApplyConfiguration) WithUUID(value string) *AggregateApplyConfiguration
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
func (b *AggregateGroupApplyConfiguration) WithMetadata(entries map[string]string) *AggregateGroupApplyConfiguration
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
func (b *AggregateGroupApplyConfiguration) WithName(value string) *AggregateGroupApplyConfiguration
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
func (b *AggregateGroupApplyConfiguration) WithUUID(value string) *AggregateGroupApplyConfiguration
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 ¶
func (b *CapabilitiesApplyConfiguration) WithHostCpuArch(value string) *CapabilitiesApplyConfiguration
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 ¶
func (b *CapabilitiesApplyConfiguration) WithHostCpus(value resource.Quantity) *CapabilitiesApplyConfiguration
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 ¶
func (b *CapabilitiesApplyConfiguration) WithHostMemory(value resource.Quantity) *CapabilitiesApplyConfiguration
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 ¶
func (b *CellApplyConfiguration) WithAllocation(entries map[apiv1.ResourceName]resource.Quantity) *CellApplyConfiguration
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 ¶
func (b *CellApplyConfiguration) WithCapacity(entries map[apiv1.ResourceName]resource.Quantity) *CellApplyConfiguration
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 ¶
func (b *CellApplyConfiguration) WithCellID(value uint64) *CellApplyConfiguration
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 ¶
func (b *DomainCapabilitiesApplyConfiguration) WithArch(value string) *DomainCapabilitiesApplyConfiguration
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 ¶
func (b *DomainCapabilitiesApplyConfiguration) WithHypervisorType(value string) *DomainCapabilitiesApplyConfiguration
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 ¶
func (b *DomainCapabilitiesApplyConfiguration) WithSupportedCpuModes(values ...string) *DomainCapabilitiesApplyConfiguration
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 ¶
func (b *DomainCapabilitiesApplyConfiguration) WithSupportedDevices(values ...string) *DomainCapabilitiesApplyConfiguration
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 ¶
func (b *DomainCapabilitiesApplyConfiguration) WithSupportedFeatures(values ...string) *DomainCapabilitiesApplyConfiguration
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 ¶
func (b *DomainInfoApplyConfiguration) WithAllocation(entries map[string]resource.Quantity) *DomainInfoApplyConfiguration
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 ¶
func (b *DomainInfoApplyConfiguration) WithCpuCells(values ...int) *DomainInfoApplyConfiguration
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 ¶
func (b *DomainInfoApplyConfiguration) WithName(value string) *DomainInfoApplyConfiguration
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 ¶
func (b *DomainInfoApplyConfiguration) WithUUID(value string) *DomainInfoApplyConfiguration
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 ¶
func (b *EvictionApplyConfiguration) WithAPIVersion(value string) *EvictionApplyConfiguration
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 ¶
func (b *EvictionApplyConfiguration) WithGeneration(value int64) *EvictionApplyConfiguration
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 ¶
func (b *EvictionApplyConfiguration) WithKind(value string) *EvictionApplyConfiguration
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 ¶
func (b *EvictionApplyConfiguration) WithLabels(entries map[string]string) *EvictionApplyConfiguration
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 ¶
func (b *EvictionApplyConfiguration) WithName(value string) *EvictionApplyConfiguration
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 ¶
func (b *EvictionApplyConfiguration) WithNamespace(value string) *EvictionApplyConfiguration
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 ¶
func (b *EvictionApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *EvictionApplyConfiguration
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 ¶
func (b *EvictionApplyConfiguration) WithSpec(value *EvictionSpecApplyConfiguration) *EvictionApplyConfiguration
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 ¶
func (b *EvictionApplyConfiguration) WithStatus(value *EvictionStatusApplyConfiguration) *EvictionApplyConfiguration
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 ¶
func (b *EvictionApplyConfiguration) WithUID(value types.UID) *EvictionApplyConfiguration
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 ¶
func (b *EvictionSpecApplyConfiguration) WithHypervisor(value string) *EvictionSpecApplyConfiguration
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 ¶
func (b *EvictionSpecApplyConfiguration) WithReason(value string) *EvictionSpecApplyConfiguration
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 ¶
func (b *EvictionStatusApplyConfiguration) WithConditions(values ...*metav1.ConditionApplyConfiguration) *EvictionStatusApplyConfiguration
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 ¶
func (b *EvictionStatusApplyConfiguration) WithHypervisorServiceId(value string) *EvictionStatusApplyConfiguration
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 ¶
func (b *EvictionStatusApplyConfiguration) WithOutstandingRamMb(value int64) *EvictionStatusApplyConfiguration
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
func (b *GroupApplyConfiguration) WithAggregate(value *AggregateGroupApplyConfiguration) *GroupApplyConfiguration
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
func (b *GroupApplyConfiguration) WithTrait(value *TraitGroupApplyConfiguration) *GroupApplyConfiguration
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 ¶
func (b *HyperVisorUpdateStatusApplyConfiguration) WithInProgress(value bool) *HyperVisorUpdateStatusApplyConfiguration
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 ¶
func (b *HyperVisorUpdateStatusApplyConfiguration) WithInstalled(value string) *HyperVisorUpdateStatusApplyConfiguration
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 ¶
func (b *HyperVisorUpdateStatusApplyConfiguration) WithRetry(value int) *HyperVisorUpdateStatusApplyConfiguration
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 ¶
func (b *HypervisorApplyConfiguration) WithAPIVersion(value string) *HypervisorApplyConfiguration
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 ¶
func (b *HypervisorApplyConfiguration) WithAnnotations(entries map[string]string) *HypervisorApplyConfiguration
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 ¶
func (b *HypervisorApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *HypervisorApplyConfiguration
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 ¶
func (b *HypervisorApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *HypervisorApplyConfiguration
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 ¶
func (b *HypervisorApplyConfiguration) WithFinalizers(values ...string) *HypervisorApplyConfiguration
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 ¶
func (b *HypervisorApplyConfiguration) WithGenerateName(value string) *HypervisorApplyConfiguration
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 ¶
func (b *HypervisorApplyConfiguration) WithGeneration(value int64) *HypervisorApplyConfiguration
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 ¶
func (b *HypervisorApplyConfiguration) WithKind(value string) *HypervisorApplyConfiguration
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 ¶
func (b *HypervisorApplyConfiguration) WithLabels(entries map[string]string) *HypervisorApplyConfiguration
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 ¶
func (b *HypervisorApplyConfiguration) WithName(value string) *HypervisorApplyConfiguration
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 ¶
func (b *HypervisorApplyConfiguration) WithNamespace(value string) *HypervisorApplyConfiguration
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 ¶
func (b *HypervisorApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *HypervisorApplyConfiguration
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 ¶
func (b *HypervisorApplyConfiguration) WithSpec(value *HypervisorSpecApplyConfiguration) *HypervisorApplyConfiguration
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 ¶
func (b *HypervisorApplyConfiguration) WithStatus(value *HypervisorStatusApplyConfiguration) *HypervisorApplyConfiguration
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 ¶
func (b *HypervisorApplyConfiguration) WithUID(value types.UID) *HypervisorApplyConfiguration
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 ¶
func (b *HypervisorSpecApplyConfiguration) WithAggregates(values ...string) *HypervisorSpecApplyConfiguration
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 ¶
func (b *HypervisorSpecApplyConfiguration) WithAllowedProjects(values ...string) *HypervisorSpecApplyConfiguration
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 ¶
func (b *HypervisorSpecApplyConfiguration) WithCustomTraits(values ...string) *HypervisorSpecApplyConfiguration
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 ¶
func (b *HypervisorSpecApplyConfiguration) WithEvacuateOnReboot(value bool) *HypervisorSpecApplyConfiguration
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
func (b *HypervisorSpecApplyConfiguration) WithGroups(values ...*GroupApplyConfiguration) *HypervisorSpecApplyConfiguration
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 ¶
func (b *HypervisorSpecApplyConfiguration) WithHighAvailability(value bool) *HypervisorSpecApplyConfiguration
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 ¶
func (b *HypervisorSpecApplyConfiguration) WithInstallCertificate(value bool) *HypervisorSpecApplyConfiguration
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 ¶
func (b *HypervisorSpecApplyConfiguration) WithLifecycleEnabled(value bool) *HypervisorSpecApplyConfiguration
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 ¶
func (b *HypervisorSpecApplyConfiguration) WithMaintenance(value string) *HypervisorSpecApplyConfiguration
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 ¶
func (b *HypervisorSpecApplyConfiguration) WithMaintenanceReason(value string) *HypervisorSpecApplyConfiguration
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 ¶
func (b *HypervisorSpecApplyConfiguration) WithOvercommit(entries map[apiv1.ResourceName]float64) *HypervisorSpecApplyConfiguration
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 ¶
func (b *HypervisorSpecApplyConfiguration) WithReboot(value bool) *HypervisorSpecApplyConfiguration
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 ¶
func (b *HypervisorSpecApplyConfiguration) WithSkipTests(value bool) *HypervisorSpecApplyConfiguration
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 ¶
func (b *HypervisorStatusApplyConfiguration) WithAggregates(values ...*AggregateApplyConfiguration) *HypervisorStatusApplyConfiguration
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 ¶
func (b *HypervisorStatusApplyConfiguration) WithAllocation(entries map[apiv1.ResourceName]resource.Quantity) *HypervisorStatusApplyConfiguration
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 ¶
func (b *HypervisorStatusApplyConfiguration) WithCapabilities(value *CapabilitiesApplyConfiguration) *HypervisorStatusApplyConfiguration
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 ¶
func (b *HypervisorStatusApplyConfiguration) WithCapacity(entries map[apiv1.ResourceName]resource.Quantity) *HypervisorStatusApplyConfiguration
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 ¶
func (b *HypervisorStatusApplyConfiguration) WithCells(values ...*CellApplyConfiguration) *HypervisorStatusApplyConfiguration
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 ¶
func (b *HypervisorStatusApplyConfiguration) WithConditions(values ...*metav1.ConditionApplyConfiguration) *HypervisorStatusApplyConfiguration
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 ¶
func (b *HypervisorStatusApplyConfiguration) WithDomainCapabilities(value *DomainCapabilitiesApplyConfiguration) *HypervisorStatusApplyConfiguration
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 ¶
func (b *HypervisorStatusApplyConfiguration) WithEffectiveCapacity(entries map[apiv1.ResourceName]resource.Quantity) *HypervisorStatusApplyConfiguration
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 ¶
func (b *HypervisorStatusApplyConfiguration) WithEvicted(value bool) *HypervisorStatusApplyConfiguration
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 ¶
func (b *HypervisorStatusApplyConfiguration) WithHypervisorID(value string) *HypervisorStatusApplyConfiguration
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 ¶
func (b *HypervisorStatusApplyConfiguration) WithHypervisorVersion(value string) *HypervisorStatusApplyConfiguration
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 ¶
func (b *HypervisorStatusApplyConfiguration) WithInstances(values ...*InstanceApplyConfiguration) *HypervisorStatusApplyConfiguration
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 ¶
func (b *HypervisorStatusApplyConfiguration) WithInternalIP(value string) *HypervisorStatusApplyConfiguration
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 ¶
func (b *HypervisorStatusApplyConfiguration) WithLibVirtVersion(value string) *HypervisorStatusApplyConfiguration
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 ¶
func (b *HypervisorStatusApplyConfiguration) WithNumInstances(value int) *HypervisorStatusApplyConfiguration
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 ¶
func (b *HypervisorStatusApplyConfiguration) WithOperatingSystem(value *OperatingSystemStatusApplyConfiguration) *HypervisorStatusApplyConfiguration
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 ¶
func (b *HypervisorStatusApplyConfiguration) WithServiceID(value string) *HypervisorStatusApplyConfiguration
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 ¶
func (b *HypervisorStatusApplyConfiguration) WithSpecHash(value string) *HypervisorStatusApplyConfiguration
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 ¶
func (b *HypervisorStatusApplyConfiguration) WithTraits(values ...string) *HypervisorStatusApplyConfiguration
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 ¶
func (b *HypervisorStatusApplyConfiguration) WithUpdate(value *HyperVisorUpdateStatusApplyConfiguration) *HypervisorStatusApplyConfiguration
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 ¶
func (b *InstanceApplyConfiguration) WithActive(value bool) *InstanceApplyConfiguration
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 ¶
func (b *InstanceApplyConfiguration) WithID(value string) *InstanceApplyConfiguration
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 ¶
func (b *InstanceApplyConfiguration) WithName(value string) *InstanceApplyConfiguration
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 ¶
func (b *OperatingSystemStatusApplyConfiguration) WithFirmwareDate(value metav1.Time) *OperatingSystemStatusApplyConfiguration
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 ¶
func (b *OperatingSystemStatusApplyConfiguration) WithFirmwareVendor(value string) *OperatingSystemStatusApplyConfiguration
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 ¶
func (b *OperatingSystemStatusApplyConfiguration) WithFirmwareVersion(value string) *OperatingSystemStatusApplyConfiguration
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 ¶
func (b *OperatingSystemStatusApplyConfiguration) WithGardenLinuxCommitID(value string) *OperatingSystemStatusApplyConfiguration
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 ¶
func (b *OperatingSystemStatusApplyConfiguration) WithGardenLinuxFeatures(values ...string) *OperatingSystemStatusApplyConfiguration
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 ¶
func (b *OperatingSystemStatusApplyConfiguration) WithHardwareModel(value string) *OperatingSystemStatusApplyConfiguration
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 ¶
func (b *OperatingSystemStatusApplyConfiguration) WithHardwareSerial(value string) *OperatingSystemStatusApplyConfiguration
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 ¶
func (b *OperatingSystemStatusApplyConfiguration) WithHardwareVendor(value string) *OperatingSystemStatusApplyConfiguration
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 ¶
func (b *OperatingSystemStatusApplyConfiguration) WithKernelCommandLine(value string) *OperatingSystemStatusApplyConfiguration
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 ¶
func (b *OperatingSystemStatusApplyConfiguration) WithKernelName(value string) *OperatingSystemStatusApplyConfiguration
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 ¶
func (b *OperatingSystemStatusApplyConfiguration) WithKernelRelease(value string) *OperatingSystemStatusApplyConfiguration
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 ¶
func (b *OperatingSystemStatusApplyConfiguration) WithKernelVersion(value string) *OperatingSystemStatusApplyConfiguration
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 ¶
func (b *OperatingSystemStatusApplyConfiguration) WithPrettyVersion(value string) *OperatingSystemStatusApplyConfiguration
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 ¶
func (b *OperatingSystemStatusApplyConfiguration) WithVariantID(value string) *OperatingSystemStatusApplyConfiguration
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 ¶
func (b *OperatingSystemStatusApplyConfiguration) WithVersion(value string) *OperatingSystemStatusApplyConfiguration
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
func (b *TraitGroupApplyConfiguration) WithName(value string) *TraitGroupApplyConfiguration
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.