v1alpha1

package
v0.0.0-...-b8de061 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AvailablePackageVersionsApplyConfiguration

type AvailablePackageVersionsApplyConfiguration struct {
	Name     *string  `json:"name,omitempty"`
	Versions []string `json:"versions,omitempty"`
}

AvailablePackageVersionsApplyConfiguration represents an declarative configuration of the AvailablePackageVersions type for use with apply.

func AvailablePackageVersions

func AvailablePackageVersions() *AvailablePackageVersionsApplyConfiguration

AvailablePackageVersionsApplyConfiguration constructs an declarative configuration of the AvailablePackageVersions type for use with apply.

func (*AvailablePackageVersionsApplyConfiguration) WithName

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

func (*AvailablePackageVersionsApplyConfiguration) WithVersions

WithVersions adds the given value to the Versions 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 Versions field.

type MachineApplyConfiguration

type MachineApplyConfiguration struct {
	v1.TypeMetaApplyConfiguration    `json:",inline"`
	*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
	Spec                             *MachineSpecApplyConfiguration   `json:"spec,omitempty"`
	Status                           *MachineStatusApplyConfiguration `json:"status,omitempty"`
}

MachineApplyConfiguration represents an declarative configuration of the Machine type for use with apply.

func ExtractMachine

func ExtractMachine(machine *lifecyclev1alpha1.Machine, fieldManager string) (*MachineApplyConfiguration, error)

ExtractMachine extracts the applied configuration owned by fieldManager from machine. If no managedFields are found in machine for fieldManager, a MachineApplyConfiguration 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. machine must be a unmodified Machine API object that was retrieved from the Kubernetes API. ExtractMachine 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. Experimental!

func ExtractMachineStatus

func ExtractMachineStatus(machine *lifecyclev1alpha1.Machine, fieldManager string) (*MachineApplyConfiguration, error)

ExtractMachineStatus is the same as ExtractMachine except that it extracts the status subresource applied configuration. Experimental!

func Machine

func Machine(name, namespace string) *MachineApplyConfiguration

Machine constructs an declarative configuration of the Machine type for use with apply.

func (*MachineApplyConfiguration) WithAPIVersion

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

func (*MachineApplyConfiguration) WithAnnotations

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

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 (*MachineApplyConfiguration) WithCreationTimestamp

func (b *MachineApplyConfiguration) WithCreationTimestamp(value metav1.Time) *MachineApplyConfiguration

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 (*MachineApplyConfiguration) WithDeletionGracePeriodSeconds

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

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 (*MachineApplyConfiguration) WithDeletionTimestamp

func (b *MachineApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *MachineApplyConfiguration

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 (*MachineApplyConfiguration) WithFinalizers

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

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 (*MachineApplyConfiguration) WithGenerateName

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

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 (*MachineApplyConfiguration) WithGeneration

func (b *MachineApplyConfiguration) WithGeneration(value int64) *MachineApplyConfiguration

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 (*MachineApplyConfiguration) WithKind

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

func (*MachineApplyConfiguration) WithLabels

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

func (*MachineApplyConfiguration) WithName

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

func (*MachineApplyConfiguration) WithNamespace

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

func (*MachineApplyConfiguration) WithOwnerReferences

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

func (*MachineApplyConfiguration) WithResourceVersion

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

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 (*MachineApplyConfiguration) WithSpec

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

func (*MachineApplyConfiguration) WithStatus

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

func (*MachineApplyConfiguration) WithUID

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

type MachineGroupApplyConfiguration

type MachineGroupApplyConfiguration struct {
	Name            *string                             `json:"name,omitempty"`
	MachineSelector *v1.LabelSelectorApplyConfiguration `json:"machineSelector,omitempty"`
	Packages        []PackageVersionApplyConfiguration  `json:"packages,omitempty"`
}

MachineGroupApplyConfiguration represents an declarative configuration of the MachineGroup type for use with apply.

func MachineGroup

func MachineGroup() *MachineGroupApplyConfiguration

MachineGroupApplyConfiguration constructs an declarative configuration of the MachineGroup type for use with apply.

func (*MachineGroupApplyConfiguration) WithMachineSelector

WithMachineSelector sets the MachineSelector 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 MachineSelector field is set to the value of the last call.

func (*MachineGroupApplyConfiguration) WithName

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

func (*MachineGroupApplyConfiguration) WithPackages

WithPackages adds the given value to the Packages 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 Packages field.

type MachineSpecApplyConfiguration

type MachineSpecApplyConfiguration struct {
	MachineTypeRef *v1.LocalObjectReference           `json:"machineTypeRef,omitempty"`
	OOBMachineRef  *v1.LocalObjectReference           `json:"oobMachineRef,omitempty"`
	ScanPeriod     *metav1.Duration                   `json:"scanPeriod,omitempty"`
	Packages       []PackageVersionApplyConfiguration `json:"packages,omitempty"`
}

MachineSpecApplyConfiguration represents an declarative configuration of the MachineSpec type for use with apply.

func MachineSpec

func MachineSpec() *MachineSpecApplyConfiguration

MachineSpecApplyConfiguration constructs an declarative configuration of the MachineSpec type for use with apply.

func (*MachineSpecApplyConfiguration) WithMachineTypeRef

WithMachineTypeRef sets the MachineTypeRef 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 MachineTypeRef field is set to the value of the last call.

func (*MachineSpecApplyConfiguration) WithOOBMachineRef

WithOOBMachineRef sets the OOBMachineRef 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 OOBMachineRef field is set to the value of the last call.

func (*MachineSpecApplyConfiguration) WithPackages

WithPackages adds the given value to the Packages 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 Packages field.

func (*MachineSpecApplyConfiguration) WithScanPeriod

WithScanPeriod sets the ScanPeriod 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 ScanPeriod field is set to the value of the last call.

type MachineStatusApplyConfiguration

type MachineStatusApplyConfiguration struct {
	LastScanTime      *v1.Time                             `json:"lastScanTime,omitempty"`
	LastScanResult    *v1alpha1.ScanResult                 `json:"lastScanResult,omitempty"`
	InstalledPackages []PackageVersionApplyConfiguration   `json:"installedPackages,omitempty"`
	Message           *string                              `json:"message,omitempty"`
	Conditions        []metav1.ConditionApplyConfiguration `json:"conditions,omitempty"`
}

MachineStatusApplyConfiguration represents an declarative configuration of the MachineStatus type for use with apply.

func MachineStatus

func MachineStatus() *MachineStatusApplyConfiguration

MachineStatusApplyConfiguration constructs an declarative configuration of the MachineStatus type for use with apply.

func (*MachineStatusApplyConfiguration) WithConditions

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

func (*MachineStatusApplyConfiguration) WithInstalledPackages

WithInstalledPackages adds the given value to the InstalledPackages 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 InstalledPackages field.

func (*MachineStatusApplyConfiguration) WithLastScanResult

WithLastScanResult sets the LastScanResult 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 LastScanResult field is set to the value of the last call.

func (*MachineStatusApplyConfiguration) WithLastScanTime

WithLastScanTime sets the LastScanTime 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 LastScanTime field is set to the value of the last call.

func (*MachineStatusApplyConfiguration) WithMessage

WithMessage sets the Message 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 Message field is set to the value of the last call.

type MachineTypeApplyConfiguration

type MachineTypeApplyConfiguration struct {
	v1.TypeMetaApplyConfiguration    `json:",inline"`
	*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
	Spec                             *MachineTypeSpecApplyConfiguration   `json:"spec,omitempty"`
	Status                           *MachineTypeStatusApplyConfiguration `json:"status,omitempty"`
}

MachineTypeApplyConfiguration represents an declarative configuration of the MachineType type for use with apply.

func ExtractMachineType

func ExtractMachineType(machineType *lifecyclev1alpha1.MachineType, fieldManager string) (*MachineTypeApplyConfiguration, error)

ExtractMachineType extracts the applied configuration owned by fieldManager from machineType. If no managedFields are found in machineType for fieldManager, a MachineTypeApplyConfiguration 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. machineType must be a unmodified MachineType API object that was retrieved from the Kubernetes API. ExtractMachineType 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. Experimental!

func ExtractMachineTypeStatus

func ExtractMachineTypeStatus(machineType *lifecyclev1alpha1.MachineType, fieldManager string) (*MachineTypeApplyConfiguration, error)

ExtractMachineTypeStatus is the same as ExtractMachineType except that it extracts the status subresource applied configuration. Experimental!

func MachineType

func MachineType(name, namespace string) *MachineTypeApplyConfiguration

MachineType constructs an declarative configuration of the MachineType type for use with apply.

func (*MachineTypeApplyConfiguration) WithAPIVersion

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

func (*MachineTypeApplyConfiguration) WithAnnotations

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

func (*MachineTypeApplyConfiguration) WithCreationTimestamp

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

func (*MachineTypeApplyConfiguration) WithDeletionGracePeriodSeconds

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

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 (*MachineTypeApplyConfiguration) WithDeletionTimestamp

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

func (*MachineTypeApplyConfiguration) WithFinalizers

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

func (*MachineTypeApplyConfiguration) WithGenerateName

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

func (*MachineTypeApplyConfiguration) WithGeneration

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

func (*MachineTypeApplyConfiguration) WithKind

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

func (*MachineTypeApplyConfiguration) WithLabels

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

func (*MachineTypeApplyConfiguration) WithName

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

func (*MachineTypeApplyConfiguration) WithNamespace

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

func (*MachineTypeApplyConfiguration) WithOwnerReferences

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

func (*MachineTypeApplyConfiguration) WithResourceVersion

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 (*MachineTypeApplyConfiguration) WithSpec

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

func (*MachineTypeApplyConfiguration) WithStatus

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

func (*MachineTypeApplyConfiguration) WithUID

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

type MachineTypeSpecApplyConfiguration

type MachineTypeSpecApplyConfiguration struct {
	Manufacturer  *string                          `json:"manufacturer,omitempty"`
	Type          *string                          `json:"type,omitempty"`
	ScanPeriod    *v1.Duration                     `json:"scanPeriod,omitempty"`
	MachineGroups []MachineGroupApplyConfiguration `json:"machineGroups,omitempty"`
}

MachineTypeSpecApplyConfiguration represents an declarative configuration of the MachineTypeSpec type for use with apply.

func MachineTypeSpec

func MachineTypeSpec() *MachineTypeSpecApplyConfiguration

MachineTypeSpecApplyConfiguration constructs an declarative configuration of the MachineTypeSpec type for use with apply.

func (*MachineTypeSpecApplyConfiguration) WithMachineGroups

WithMachineGroups adds the given value to the MachineGroups 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 MachineGroups field.

func (*MachineTypeSpecApplyConfiguration) WithManufacturer

WithManufacturer sets the Manufacturer 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 Manufacturer field is set to the value of the last call.

func (*MachineTypeSpecApplyConfiguration) WithScanPeriod

WithScanPeriod sets the ScanPeriod 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 ScanPeriod field is set to the value of the last call.

func (*MachineTypeSpecApplyConfiguration) WithType

WithType sets the Type 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 Type field is set to the value of the last call.

type MachineTypeStatusApplyConfiguration

type MachineTypeStatusApplyConfiguration struct {
	LastScanTime      *v1.Time                                     `json:"lastScanTime,omitempty"`
	LastScanResult    *v1alpha1.ScanResult                         `json:"lastScanResult,omitempty"`
	AvailablePackages []AvailablePackageVersionsApplyConfiguration `json:"availablePackages,omitempty"`
	Message           *string                                      `json:"message,omitempty"`
}

MachineTypeStatusApplyConfiguration represents an declarative configuration of the MachineTypeStatus type for use with apply.

func MachineTypeStatus

func MachineTypeStatus() *MachineTypeStatusApplyConfiguration

MachineTypeStatusApplyConfiguration constructs an declarative configuration of the MachineTypeStatus type for use with apply.

func (*MachineTypeStatusApplyConfiguration) WithAvailablePackages

WithAvailablePackages adds the given value to the AvailablePackages 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 AvailablePackages field.

func (*MachineTypeStatusApplyConfiguration) WithLastScanResult

WithLastScanResult sets the LastScanResult 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 LastScanResult field is set to the value of the last call.

func (*MachineTypeStatusApplyConfiguration) WithLastScanTime

WithLastScanTime sets the LastScanTime 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 LastScanTime field is set to the value of the last call.

func (*MachineTypeStatusApplyConfiguration) WithMessage

WithMessage sets the Message 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 Message field is set to the value of the last call.

type PackageVersionApplyConfiguration

type PackageVersionApplyConfiguration struct {
	Name    *string `json:"name,omitempty"`
	Version *string `json:"version,omitempty"`
}

PackageVersionApplyConfiguration represents an declarative configuration of the PackageVersion type for use with apply.

func PackageVersion

func PackageVersion() *PackageVersionApplyConfiguration

PackageVersionApplyConfiguration constructs an declarative configuration of the PackageVersion type for use with apply.

func (*PackageVersionApplyConfiguration) WithName

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

func (*PackageVersionApplyConfiguration) WithVersion

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

Jump to

Keyboard shortcuts

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