v1

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2022 License: Apache-2.0 Imports: 11 Imported by: 3

Documentation

Overview

+k8s:deepcopy-gen=package +groupName=rancheros.cattle.io

+k8s:deepcopy-gen=package +groupName=rancheros.cattle.io

+k8s:deepcopy-gen=package +groupName=rancheros.cattle.io

Index

Constants

This section is empty.

Variables

View Source
var (
	MachineInventoryResourceName        = "machineinventories"
	MachineRegistrationResourceName     = "machineregistrations"
	ManagedOSImageResourceName          = "managedosimages"
	ManagedOSVersionResourceName        = "managedosversions"
	ManagedOSVersionChannelResourceName = "managedosversionchannels"
)
View Source
var (
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	AddToScheme   = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: rancheros.GroupName, Version: "v1"}

SchemeGroupVersion is group version used to register these objects

Functions

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns back a Group qualified GroupKind

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type ContainerImage

type ContainerImage struct {
	Metadata
	TargetUpgradeImage string `json:"targetUpgradeImage,omitempty"`
}

ContainerImage is the metadata for ManagedOSVersions which carries over information about the upgrade

func (*ContainerImage) DeepCopy

func (in *ContainerImage) DeepCopy() *ContainerImage

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ContainerImage.

func (*ContainerImage) DeepCopyInto

func (in *ContainerImage) DeepCopyInto(out *ContainerImage)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ISO

type ISO struct {
	Metadata
	URL      string `json:"isoURL,omitempty"`
	Checksum string `json:"isoChecksum,omitempty"`
}

TODO: Copy from harvester for minimum efforts during transitioning ISO is a ISO upgrade strategy

func (*ISO) DeepCopy

func (in *ISO) DeepCopy() *ISO

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ISO.

func (*ISO) DeepCopyInto

func (in *ISO) DeepCopyInto(out *ISO)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MachineInventory

type MachineInventory struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   MachineInventorySpec   `json:"spec"`
	Status MachineInventoryStatus `json:"status"`
}

func NewMachineInventory

func NewMachineInventory(namespace, name string, obj MachineInventory) *MachineInventory

func (*MachineInventory) DeepCopy

func (in *MachineInventory) DeepCopy() *MachineInventory

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineInventory.

func (*MachineInventory) DeepCopyInto

func (in *MachineInventory) DeepCopyInto(out *MachineInventory)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*MachineInventory) DeepCopyObject

func (in *MachineInventory) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type MachineInventoryList

type MachineInventoryList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []MachineInventory `json:"items"`
}

MachineInventoryList is a list of MachineInventory resources

func (*MachineInventoryList) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineInventoryList.

func (*MachineInventoryList) DeepCopyInto

func (in *MachineInventoryList) DeepCopyInto(out *MachineInventoryList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*MachineInventoryList) DeepCopyObject

func (in *MachineInventoryList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type MachineInventorySpec

type MachineInventorySpec struct {
	TPMHash                string               `json:"tpmHash,omitempty"`
	SMBIOS                 *fleet.GenericMap    `json:"smbios,omitempty"`
	ClusterName            string               `json:"clusterName"`
	MachineTokenSecretName string               `json:"machineTokenSecretName,omitempty"`
	Config                 MachineRuntimeConfig `json:"config,omitempty"`
}

func (*MachineInventorySpec) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineInventorySpec.

func (*MachineInventorySpec) DeepCopyInto

func (in *MachineInventorySpec) DeepCopyInto(out *MachineInventorySpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MachineInventoryStatus

type MachineInventoryStatus struct {
	ClusterRegistrationTokenNamespace string `json:"clusterRegistrationTokenNamespace,omitempty"`
	ClusterRegistrationTokenName      string `json:"clusterRegistrationTokenName,omitempty"`
}

func (*MachineInventoryStatus) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineInventoryStatus.

func (*MachineInventoryStatus) DeepCopyInto

func (in *MachineInventoryStatus) DeepCopyInto(out *MachineInventoryStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MachineRegistration

type MachineRegistration struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   MachineRegistrationSpec   `json:"spec"`
	Status MachineRegistrationStatus `json:"status"`
}

func NewMachineRegistration

func NewMachineRegistration(namespace, name string, obj MachineRegistration) *MachineRegistration

func (*MachineRegistration) DeepCopy

func (in *MachineRegistration) DeepCopy() *MachineRegistration

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineRegistration.

func (*MachineRegistration) DeepCopyInto

func (in *MachineRegistration) DeepCopyInto(out *MachineRegistration)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*MachineRegistration) DeepCopyObject

func (in *MachineRegistration) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type MachineRegistrationList

type MachineRegistrationList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []MachineRegistration `json:"items"`
}

MachineRegistrationList is a list of MachineRegistration resources

func (*MachineRegistrationList) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineRegistrationList.

func (*MachineRegistrationList) DeepCopyInto

func (in *MachineRegistrationList) DeepCopyInto(out *MachineRegistrationList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*MachineRegistrationList) DeepCopyObject

func (in *MachineRegistrationList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type MachineRegistrationSpec

type MachineRegistrationSpec struct {
	MachineName                 string            `json:"machineName,omitempty"`
	MachineInventoryLabels      map[string]string `json:"machineInventoryLabels,omitempty"`
	MachineInventoryAnnotations map[string]string `json:"machineInventoryAnnotations,omitempty"`
	CloudConfig                 *fleet.GenericMap `json:"cloudConfig,omitempty"`
}

func (*MachineRegistrationSpec) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineRegistrationSpec.

func (*MachineRegistrationSpec) DeepCopyInto

func (in *MachineRegistrationSpec) DeepCopyInto(out *MachineRegistrationSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MachineRegistrationStatus

type MachineRegistrationStatus struct {
	Conditions        []genericcondition.GenericCondition `json:"conditions,omitempty"`
	RegistrationURL   string                              `json:"registrationURL,omitempty"`
	RegistrationToken string                              `json:"registrationToken,omitempty"`
}

func (*MachineRegistrationStatus) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineRegistrationStatus.

func (*MachineRegistrationStatus) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MachineRuntimeConfig

type MachineRuntimeConfig struct {
	Role            string            `json:"role"`
	NodeName        string            `json:"nodeName,omitempty"`
	Address         string            `json:"address,omitempty"`
	InternalAddress string            `json:"internalAddress,omitempty"`
	Taints          []corev1.Taint    `json:"taints,omitempty"`
	Labels          map[string]string `json:"labels"`
}

func (*MachineRuntimeConfig) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineRuntimeConfig.

func (*MachineRuntimeConfig) DeepCopyInto

func (in *MachineRuntimeConfig) DeepCopyInto(out *MachineRuntimeConfig)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ManagedOSImage

type ManagedOSImage struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   ManagedOSImageSpec   `json:"spec"`
	Status ManagedOSImageStatus `json:"status"`
}

func NewManagedOSImage

func NewManagedOSImage(namespace, name string, obj ManagedOSImage) *ManagedOSImage

func (*ManagedOSImage) DeepCopy

func (in *ManagedOSImage) DeepCopy() *ManagedOSImage

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ManagedOSImage.

func (*ManagedOSImage) DeepCopyInto

func (in *ManagedOSImage) DeepCopyInto(out *ManagedOSImage)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ManagedOSImage) DeepCopyObject

func (in *ManagedOSImage) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ManagedOSImageList

type ManagedOSImageList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []ManagedOSImage `json:"items"`
}

ManagedOSImageList is a list of ManagedOSImage resources

func (*ManagedOSImageList) DeepCopy

func (in *ManagedOSImageList) DeepCopy() *ManagedOSImageList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ManagedOSImageList.

func (*ManagedOSImageList) DeepCopyInto

func (in *ManagedOSImageList) DeepCopyInto(out *ManagedOSImageList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ManagedOSImageList) DeepCopyObject

func (in *ManagedOSImageList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ManagedOSImageSpec

type ManagedOSImageSpec struct {
	OSImage      string                `json:"osImage,omitempty"`
	CloudConfig  *fleet.GenericMap     `json:"cloudConfig,omitempty"`
	NodeSelector *metav1.LabelSelector `json:"nodeSelector,omitempty"`
	Concurrency  *int64                `json:"concurrency,omitempty"`

	Prepare              *upgradev1.ContainerSpec `json:"prepare,omitempty"`
	Cordon               *bool                    `json:"cordon,omitempty"`
	Drain                *upgradev1.DrainSpec     `json:"drain,omitempty"`
	UpgradeContainer     *upgradev1.ContainerSpec `json:"upgradeContainer,omitempty"`
	ManagedOSVersionName string                   `json:"managedOSVersionName,omitempty"`

	ClusterRolloutStrategy *fleet.RolloutStrategy `json:"clusterRolloutStrategy,omitempty"`
	Targets                []fleet.BundleTarget   `json:"clusterTargets,omitempty"`
}

func (*ManagedOSImageSpec) DeepCopy

func (in *ManagedOSImageSpec) DeepCopy() *ManagedOSImageSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ManagedOSImageSpec.

func (*ManagedOSImageSpec) DeepCopyInto

func (in *ManagedOSImageSpec) DeepCopyInto(out *ManagedOSImageSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ManagedOSImageStatus

type ManagedOSImageStatus struct {
	fleet.BundleStatus
}

func (*ManagedOSImageStatus) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ManagedOSImageStatus.

func (*ManagedOSImageStatus) DeepCopyInto

func (in *ManagedOSImageStatus) DeepCopyInto(out *ManagedOSImageStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ManagedOSVersion

type ManagedOSVersion struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   ManagedOSVersionSpec   `json:"spec"`
	Status ManagedOSVersionStatus `json:"status"`
}

func NewManagedOSVersion

func NewManagedOSVersion(namespace, name string, obj ManagedOSVersion) *ManagedOSVersion

func (*ManagedOSVersion) ContainerImageMetadata

func (g *ManagedOSVersion) ContainerImageMetadata() (*ContainerImage, error)

ContainerImageMetadata returns a ContainerImageMetadata struct from the underlaying metadata

func (*ManagedOSVersion) DeepCopy

func (in *ManagedOSVersion) DeepCopy() *ManagedOSVersion

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ManagedOSVersion.

func (*ManagedOSVersion) DeepCopyInto

func (in *ManagedOSVersion) DeepCopyInto(out *ManagedOSVersion)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ManagedOSVersion) DeepCopyObject

func (in *ManagedOSVersion) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*ManagedOSVersion) IsContainerImage

func (g *ManagedOSVersion) IsContainerImage() bool

IsContainerImage returns true if the metadata attached to the version is refered to a upgrade via container strategy

func (*ManagedOSVersion) Metadata

func (g *ManagedOSVersion) Metadata() (*Metadata, error)

Metadata returns the underlaying basic metadata required to handle upgrades

func (*ManagedOSVersion) MetadataObject

func (g *ManagedOSVersion) MetadataObject(v interface{}) error

MetadataObject converts the Metadata in the ManagedOSVersionSpec to a concrete object

type ManagedOSVersionChannel

type ManagedOSVersionChannel struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   ManagedOSVersionChannelSpec       `json:"spec"`
	Status ManagedOSVersionChannelSpecStatus `json:"status"`
}

func NewManagedOSVersionChannel

func NewManagedOSVersionChannel(namespace, name string, obj ManagedOSVersionChannel) *ManagedOSVersionChannel

func (*ManagedOSVersionChannel) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ManagedOSVersionChannel.

func (*ManagedOSVersionChannel) DeepCopyInto

func (in *ManagedOSVersionChannel) DeepCopyInto(out *ManagedOSVersionChannel)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ManagedOSVersionChannel) DeepCopyObject

func (in *ManagedOSVersionChannel) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ManagedOSVersionChannelList

type ManagedOSVersionChannelList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []ManagedOSVersionChannel `json:"items"`
}

ManagedOSVersionChannelList is a list of ManagedOSVersionChannel resources

func (*ManagedOSVersionChannelList) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ManagedOSVersionChannelList.

func (*ManagedOSVersionChannelList) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ManagedOSVersionChannelList) DeepCopyObject

func (in *ManagedOSVersionChannelList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ManagedOSVersionChannelSpec

type ManagedOSVersionChannelSpec struct {
	Type             string                   `json:"type,omitempty"`
	Options          *fleet.GenericMap        `json:"options,omitempty"`
	UpgradeContainer *upgradev1.ContainerSpec `json:"upgradeContainer,omitempty"`
}

func (*ManagedOSVersionChannelSpec) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ManagedOSVersionChannelSpec.

func (*ManagedOSVersionChannelSpec) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ManagedOSVersionChannelSpecStatus

type ManagedOSVersionChannelSpecStatus struct {
	Status string `json:"status,omitempty"`
}

func (*ManagedOSVersionChannelSpecStatus) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ManagedOSVersionChannelSpecStatus.

func (*ManagedOSVersionChannelSpecStatus) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ManagedOSVersionList

type ManagedOSVersionList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []ManagedOSVersion `json:"items"`
}

ManagedOSVersionList is a list of ManagedOSVersion resources

func (*ManagedOSVersionList) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ManagedOSVersionList.

func (*ManagedOSVersionList) DeepCopyInto

func (in *ManagedOSVersionList) DeepCopyInto(out *ManagedOSVersionList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ManagedOSVersionList) DeepCopyObject

func (in *ManagedOSVersionList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ManagedOSVersionSpec

type ManagedOSVersionSpec struct {
	Version          string                   `json:"version,omitempty"`
	Type             string                   `json:"type,omitempty"`
	MinVersion       string                   `json:"minVersion,omitempty"`
	Metadata         *fleet.GenericMap        `json:"metadata,omitempty"`
	UpgradeContainer *upgradev1.ContainerSpec `json:"upgradeContainer,omitempty"`
}

func (*ManagedOSVersionSpec) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ManagedOSVersionSpec.

func (*ManagedOSVersionSpec) DeepCopyInto

func (in *ManagedOSVersionSpec) DeepCopyInto(out *ManagedOSVersionSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ManagedOSVersionStatus

type ManagedOSVersionStatus struct {
	fleet.BundleStatus
}

func (*ManagedOSVersionStatus) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ManagedOSVersionStatus.

func (*ManagedOSVersionStatus) DeepCopyInto

func (in *ManagedOSVersionStatus) DeepCopyInto(out *ManagedOSVersionStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Metadata

type Metadata struct {
	ImageURI string `json:"upgradeImage,omitempty"`
}

Metadata is the basic set of data required to construct objects needed to perform upgrades via Kubernetes

func (*Metadata) DeepCopy

func (in *Metadata) DeepCopy() *Metadata

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Metadata.

func (*Metadata) DeepCopyInto

func (in *Metadata) DeepCopyInto(out *Metadata)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

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