v1alpha1

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the kubernetesupgraded v1alpha1 API group +kubebuilder:object:generate=true +groupName=kubernetesupgraded.dimitrikoshkin.com

Index

Constants

View Source
const (
	// MachineImagePhaseBuilding is the phase when the image is being built.
	MachineImagePhaseBuilding = MachineImagePhase("Building")

	// MachineImagePhaseCreated is the phase when the image has been built.
	MachineImagePhaseCreated = MachineImagePhase("Created")

	// MachineImagePhaseFailed is the phase when the image build has failed.
	MachineImagePhaseFailed = MachineImagePhase("Failed")
)
View Source
const (
	// PlanPhaseNoSuitableMachineImage is the phase when there is no suitable machine image.
	PlanPhaseNoSuitableMachineImage = PlanPhase("NoSuitableMachineImage")

	// PlanPhaseFoundMachineImage is the phase when a suitable machine image has been found.
	PlanPhaseFoundMachineImage = PlanPhase("FoundMachineImage")
)
View Source
const (
	MachineImageSyncerInterval = 1 * time.Hour
)

Variables

View Source
var (
	// GroupVersion is group version used to register these objects.
	GroupVersion = schema.GroupVersion{
		Group:   "kubernetesupgraded.dimitrikoshkin.com",
		Version: "v1alpha1",
	}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme.
	SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

func MachineImagesToVersioned added in v0.5.0

func MachineImagesToVersioned(versions []MachineImage) policy.VersionedList

Types

type ClusterClassClusterUpgrader added in v0.5.0

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

	Spec   ClusterClassClusterUpgraderSpec   `json:"spec,omitempty"`
	Status ClusterClassClusterUpgraderStatus `json:"status,omitempty"`
}

ClusterClassClusterUpgrader is the Schema for the clusterclassclusterupgraders API.

func (*ClusterClassClusterUpgrader) DeepCopy added in v0.5.0

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

func (*ClusterClassClusterUpgrader) DeepCopyInto added in v0.5.0

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

func (*ClusterClassClusterUpgrader) DeepCopyObject added in v0.5.0

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

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

func (*ClusterClassClusterUpgrader) Default added in v0.5.0

func (r *ClusterClassClusterUpgrader) Default()

Default implements webhook.Defaulter so a webhook will be registered for the type.

func (*ClusterClassClusterUpgrader) GetCluster added in v0.5.0

func (r *ClusterClassClusterUpgrader) GetCluster(
	ctx context.Context,
	reader client.Reader,
) (*clusterv1.Cluster, error)

func (*ClusterClassClusterUpgrader) SetupWebhookWithManager added in v0.5.0

func (r *ClusterClassClusterUpgrader) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*ClusterClassClusterUpgrader) ValidateCreate added in v0.5.0

func (r *ClusterClassClusterUpgrader) ValidateCreate() (admission.Warnings, error)

ValidateCreate implements webhook.Validator so a webhook will be registered for the type.

func (*ClusterClassClusterUpgrader) ValidateDelete added in v0.5.0

func (r *ClusterClassClusterUpgrader) ValidateDelete() (admission.Warnings, error)

ValidateDelete implements webhook.Validator so a webhook will be registered for the type.

func (*ClusterClassClusterUpgrader) ValidateUpdate added in v0.5.0

func (r *ClusterClassClusterUpgrader) ValidateUpdate(
	old runtime.Object,
) (admission.Warnings, error)

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type.

type ClusterClassClusterUpgraderList added in v0.5.0

type ClusterClassClusterUpgraderList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []ClusterClassClusterUpgrader `json:"items"`
}

ClusterClassClusterUpgraderList contains a list of ClusterClassClusterUpgrader.

func (*ClusterClassClusterUpgraderList) DeepCopy added in v0.5.0

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

func (*ClusterClassClusterUpgraderList) DeepCopyInto added in v0.5.0

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

func (*ClusterClassClusterUpgraderList) DeepCopyObject added in v0.5.0

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

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

type ClusterClassClusterUpgraderSpec added in v0.5.0

type ClusterClassClusterUpgraderSpec struct {

	// Paused can be used to prevent controllers from processing the object.
	// +optional
	Paused bool `json:"paused,omitempty"`

	// ClusterName is the name of the cluster to upgrade.
	// +required
	// +kubebuilder:validation:MinLength=1
	ClusterName string `json:"clusterName"`

	// TopologyVariable is the name of the topology variable to set with the MachineImage's ID.
	// +optional
	TopologyVariable *string `json:"topologyVariable,omitempty"`

	// PlanRef is a reference to a Plan object.
	// +required
	PlanRef corev1.ObjectReference `json:"planRef"`
}

ClusterClassClusterUpgraderSpec defines the desired state of ClusterClassClusterUpgrader.

func (*ClusterClassClusterUpgraderSpec) DeepCopy added in v0.5.0

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

func (*ClusterClassClusterUpgraderSpec) DeepCopyInto added in v0.5.0

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

func (*ClusterClassClusterUpgraderSpec) GetPlan added in v0.5.0

func (s *ClusterClassClusterUpgraderSpec) GetPlan(
	ctx context.Context,
	reader client.Reader,
) (*Plan, error)

type ClusterClassClusterUpgraderStatus added in v0.5.0

type ClusterClassClusterUpgraderStatus struct {

	// LatestFoundVersion is the highest version within the range that was set on the Cluster.
	// +optional
	LatestSetVersion string `json:"latestSetVersion,omitempty"`
}

ClusterClassClusterUpgraderStatus defines the observed state of ClusterClassClusterUpgrader.

func (*ClusterClassClusterUpgraderStatus) DeepCopy added in v0.5.0

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

func (*ClusterClassClusterUpgraderStatus) DeepCopyInto added in v0.5.0

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

type DebianRepositorySource added in v0.5.0

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

	Spec   DebianRepositorySourceSpec   `json:"spec,omitempty"`
	Status DebianRepositorySourceStatus `json:"status,omitempty"`
}

DebianRepositorySource is the Schema for the debianrepositorysources API.

func (*DebianRepositorySource) DeepCopy added in v0.5.0

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

func (*DebianRepositorySource) DeepCopyInto added in v0.5.0

func (in *DebianRepositorySource) DeepCopyInto(out *DebianRepositorySource)

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

func (*DebianRepositorySource) DeepCopyObject added in v0.5.0

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

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

type DebianRepositorySourceList added in v0.5.0

type DebianRepositorySourceList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []DebianRepositorySource `json:"items"`
}

DebianRepositorySourceList contains a list of DebianRepositorySource.

func (*DebianRepositorySourceList) DeepCopy added in v0.5.0

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

func (*DebianRepositorySourceList) DeepCopyInto added in v0.5.0

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

func (*DebianRepositorySourceList) DeepCopyObject added in v0.5.0

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

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

type DebianRepositorySourceSpec added in v0.5.0

type DebianRepositorySourceSpec struct {

	// URL is the URL of the Debian repository Packages file.
	// +required
	// +kubebuilder:validation:MinLength=1
	URL string `json:"url"`

	// Set Architecture if the Packages file contains multiple architectures.
	// Otherwise, leave it empty.
	// +optional
	Architecture string `json:"architecture,omitempty"`
}

DebianRepositorySourceSpec defines the desired state of DebianRepositorySource.

func (*DebianRepositorySourceSpec) DeepCopy added in v0.5.0

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

func (*DebianRepositorySourceSpec) DeepCopyInto added in v0.5.0

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

type DebianRepositorySourceStatus added in v0.5.0

type DebianRepositorySourceStatus struct {

	// Version is the list of Kubernetes versions available in the Debian repository.
	Versions []string `json:"versions,omitempty"`
}

DebianRepositorySourceStatus defines the observed state of DebianRepositorySource.

func (*DebianRepositorySourceStatus) DeepCopy added in v0.5.0

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

func (*DebianRepositorySourceStatus) DeepCopyInto added in v0.5.0

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

type JobTemplate

type JobTemplate struct {
	// Spec is the spec for the job that builds the image
	Spec corev1.PodSpec `json:"spec"`
}

JobTemplate defines the template for the job that builds the image.

func (*JobTemplate) DeepCopy

func (in *JobTemplate) DeepCopy() *JobTemplate

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

func (*JobTemplate) DeepCopyInto

func (in *JobTemplate) DeepCopyInto(out *JobTemplate)

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

type MachineImage added in v0.3.0

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

	Spec   MachineImageSpec   `json:"spec,omitempty"`
	Status MachineImageStatus `json:"status,omitempty"`
}

MachineImage is the Schema for the machineimages API.

func (*MachineImage) DeepCopy added in v0.3.0

func (in *MachineImage) DeepCopy() *MachineImage

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

func (*MachineImage) DeepCopyInto added in v0.3.0

func (in *MachineImage) DeepCopyInto(out *MachineImage)

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

func (*MachineImage) DeepCopyObject added in v0.3.0

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

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

func (*MachineImage) Default added in v0.3.0

func (r *MachineImage) Default()

Default implements webhook.Defaulter so a webhook will be registered for the type.

func (*MachineImage) GetID added in v0.3.0

func (r *MachineImage) GetID() string

func (*MachineImage) GetObjectReference added in v0.3.0

func (r *MachineImage) GetObjectReference() *corev1.ObjectReference

func (*MachineImage) GetVersion added in v0.3.0

func (r *MachineImage) GetVersion() string

func (*MachineImage) SetupWebhookWithManager added in v0.3.0

func (r *MachineImage) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*MachineImage) ValidateCreate added in v0.3.0

func (r *MachineImage) ValidateCreate() (admission.Warnings, error)

ValidateCreate implements webhook.Validator so a webhook will be registered for the type.

func (*MachineImage) ValidateDelete added in v0.3.0

func (r *MachineImage) ValidateDelete() (admission.Warnings, error)

ValidateDelete implements webhook.Validator so a webhook will be registered for the type.

func (*MachineImage) ValidateUpdate added in v0.3.0

func (r *MachineImage) ValidateUpdate(old runtime.Object) (admission.Warnings, error)

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type.

type MachineImageDetails added in v0.5.0

type MachineImageDetails struct {
	// Version is the version of the Kubernetes image to build
	Version string `json:"version,omitempty"`

	// ID is the unique name or another identifier of the image that was built.
	ID string `json:"id"`
}

func (*MachineImageDetails) DeepCopy added in v0.5.0

func (in *MachineImageDetails) DeepCopy() *MachineImageDetails

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

func (*MachineImageDetails) DeepCopyInto added in v0.5.0

func (in *MachineImageDetails) DeepCopyInto(out *MachineImageDetails)

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

type MachineImageList added in v0.3.0

type MachineImageList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []MachineImage `json:"items"`
}

MachineImageList contains a list of MachineImage.

func (*MachineImageList) DeepCopy added in v0.3.0

func (in *MachineImageList) DeepCopy() *MachineImageList

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

func (*MachineImageList) DeepCopyInto added in v0.3.0

func (in *MachineImageList) DeepCopyInto(out *MachineImageList)

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

func (*MachineImageList) DeepCopyObject added in v0.3.0

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

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

type MachineImagePhase added in v0.3.0

type MachineImagePhase string

type MachineImageSpec added in v0.3.0

type MachineImageSpec struct {

	// Version is the version of the Kubernetes image to build
	Version string `json:"version,omitempty"`

	// ID is the unique name or another identifier of the image that was built.
	// +optional
	ID string `json:"id,omitempty"`

	// JobTemplate is the template for the job that builds the image
	// +required
	// +kubebuilder:validation:Required
	JobTemplate JobTemplate `json:"jobTemplate"`
}

MachineImageSpec defines the desired state of MachineImage.

func (*MachineImageSpec) DeepCopy added in v0.3.0

func (in *MachineImageSpec) DeepCopy() *MachineImageSpec

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

func (*MachineImageSpec) DeepCopyInto added in v0.3.0

func (in *MachineImageSpec) DeepCopyInto(out *MachineImageSpec)

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

type MachineImageStatus added in v0.3.0

type MachineImageStatus struct {

	// Ready indicates if the image has been built
	// +optional
	Ready bool `json:"ready"`

	// Phase represents the current phase of image building
	// E.g. Building, Created, Failed.
	// +optional
	Phase MachineImagePhase `json:"phase,omitempty"`

	// JobRef is a reference to the job that built or is building the image.
	// +optional
	JobRef *corev1.ObjectReference `json:"jobRef,omitempty"`
}

MachineImageStatus defines the observed state of MachineImage.

func (*MachineImageStatus) DeepCopy added in v0.3.0

func (in *MachineImageStatus) DeepCopy() *MachineImageStatus

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

func (*MachineImageStatus) DeepCopyInto added in v0.3.0

func (in *MachineImageStatus) DeepCopyInto(out *MachineImageStatus)

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

type MachineImageSyncer added in v0.4.0

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

	Spec   MachineImageSyncerSpec   `json:"spec,omitempty"`
	Status MachineImageSyncerStatus `json:"status,omitempty"`
}

MachineImageSyncer is the Schema for the machineimagesyncers API.

func (*MachineImageSyncer) DeepCopy added in v0.4.0

func (in *MachineImageSyncer) DeepCopy() *MachineImageSyncer

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

func (*MachineImageSyncer) DeepCopyInto added in v0.4.0

func (in *MachineImageSyncer) DeepCopyInto(out *MachineImageSyncer)

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

func (*MachineImageSyncer) DeepCopyObject added in v0.4.0

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

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

func (*MachineImageSyncer) Default added in v0.5.0

func (r *MachineImageSyncer) Default()

Default implements webhook.Defaulter so a webhook will be registered for the type.

func (*MachineImageSyncer) SetupWebhookWithManager added in v0.5.0

func (r *MachineImageSyncer) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*MachineImageSyncer) ValidateCreate added in v0.5.0

func (r *MachineImageSyncer) ValidateCreate() (admission.Warnings, error)

ValidateCreate implements webhook.Validator so a webhook will be registered for the type.

func (*MachineImageSyncer) ValidateDelete added in v0.5.0

func (r *MachineImageSyncer) ValidateDelete() (admission.Warnings, error)

ValidateDelete implements webhook.Validator so a webhook will be registered for the type.

func (*MachineImageSyncer) ValidateUpdate added in v0.5.0

func (r *MachineImageSyncer) ValidateUpdate(old runtime.Object) (admission.Warnings, error)

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type.

type MachineImageSyncerList added in v0.4.0

type MachineImageSyncerList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []MachineImageSyncer `json:"items"`
}

MachineImageSyncerList contains a list of MachineImageSyncer.

func (*MachineImageSyncerList) DeepCopy added in v0.4.0

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

func (*MachineImageSyncerList) DeepCopyInto added in v0.4.0

func (in *MachineImageSyncerList) DeepCopyInto(out *MachineImageSyncerList)

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

func (*MachineImageSyncerList) DeepCopyObject added in v0.4.0

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

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

type MachineImageSyncerSpec added in v0.4.0

type MachineImageSyncerSpec struct {

	// Paused can be used to prevent controllers from processing the object.
	// +optional
	Paused bool `json:"paused,omitempty"`

	// VersionRange gives a semver range of the Kubernetes version.
	// New MachineImages will be created for all versions within the range.
	// +required
	// +kubebuilder:validation:MinLength=1
	VersionRange string `json:"versionRange"`

	// SourceRef is a reference to a type that satisfies the Source contract.
	// Expects status.versions to be a list of version strings.
	// +required
	SourceRef corev1.ObjectReference `json:"sourceRef"`

	// MachineImageTemplateRef is a reference to a MachineImageTemplate object.
	// +required
	MachineImageTemplateRef corev1.ObjectReference `json:"machineImageTemplateRef"`

	// Interval is the time between checks for new versions from the source.
	// Defaults to 1h.
	// +optional
	Interval *time.Duration `json:"interval,omitempty"`
}

MachineImageSyncerSpec defines the desired state of MachineImageSyncer.

func (*MachineImageSyncerSpec) DeepCopy added in v0.4.0

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

func (*MachineImageSyncerSpec) DeepCopyInto added in v0.4.0

func (in *MachineImageSyncerSpec) DeepCopyInto(out *MachineImageSyncerSpec)

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

func (*MachineImageSyncerSpec) GetMachineImageTemplate added in v0.5.0

func (s *MachineImageSyncerSpec) GetMachineImageTemplate(
	ctx context.Context,
	reader client.Reader,
) (*MachineImageTemplate, error)

func (*MachineImageSyncerSpec) GetVersionsFromSource added in v0.5.0

func (s *MachineImageSyncerSpec) GetVersionsFromSource(
	ctx context.Context,
	reader client.Reader,
) ([]string, error)

type MachineImageSyncerStatus added in v0.4.0

type MachineImageSyncerStatus struct {

	// LatestVersion is the highest version within the range that was found.
	// +optional
	LatestVersion string `json:"latestVersion,omitempty"`
}

MachineImageSyncerStatus defines the observed state of MachineImageSyncer.

func (*MachineImageSyncerStatus) DeepCopy added in v0.4.0

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

func (*MachineImageSyncerStatus) DeepCopyInto added in v0.4.0

func (in *MachineImageSyncerStatus) DeepCopyInto(out *MachineImageSyncerStatus)

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

type MachineImageTemplate added in v0.5.0

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

	Spec   MachineImageTemplateSpec   `json:"spec,omitempty"`
	Status MachineImageTemplateStatus `json:"status,omitempty"`
}

MachineImageTemplate is the Schema for the machineimagetemplates API.

func (*MachineImageTemplate) DeepCopy added in v0.5.0

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

func (*MachineImageTemplate) DeepCopyInto added in v0.5.0

func (in *MachineImageTemplate) DeepCopyInto(out *MachineImageTemplate)

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

func (*MachineImageTemplate) DeepCopyObject added in v0.5.0

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

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

type MachineImageTemplateList added in v0.5.0

type MachineImageTemplateList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []MachineImageTemplate `json:"items"`
}

MachineImageTemplateList contains a list of MachineImageTemplate.

func (*MachineImageTemplateList) DeepCopy added in v0.5.0

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

func (*MachineImageTemplateList) DeepCopyInto added in v0.5.0

func (in *MachineImageTemplateList) DeepCopyInto(out *MachineImageTemplateList)

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

func (*MachineImageTemplateList) DeepCopyObject added in v0.5.0

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

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

type MachineImageTemplateResource added in v0.6.0

type MachineImageTemplateResource struct {
	// Standard object's metadata.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
	// +optional
	ObjectMeta clusterv1.ObjectMeta `json:"metadata,omitempty"`

	// Spec is the MachineImage spec to use when building the image.
	// +required
	Spec MachineImageSpec `json:"spec"`
}

MachineImageTemplateResource defines the Template structure.

func (*MachineImageTemplateResource) DeepCopy added in v0.6.0

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

func (*MachineImageTemplateResource) DeepCopyInto added in v0.6.0

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

type MachineImageTemplateSpec added in v0.5.0

type MachineImageTemplateSpec struct {

	// Template is the MachineImage template to use when building the image.
	// +required
	Template MachineImageTemplateResource `json:"template"`
}

MachineImageTemplateSpec defines the desired state of MachineImageTemplate.

func (*MachineImageTemplateSpec) DeepCopy added in v0.5.0

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

func (*MachineImageTemplateSpec) DeepCopyInto added in v0.5.0

func (in *MachineImageTemplateSpec) DeepCopyInto(out *MachineImageTemplateSpec)

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

type MachineImageTemplateStatus added in v0.5.0

type MachineImageTemplateStatus struct {
}

MachineImageTemplateStatus defines the observed state of MachineImageTemplate.

func (*MachineImageTemplateStatus) DeepCopy added in v0.5.0

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

func (*MachineImageTemplateStatus) DeepCopyInto added in v0.5.0

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

type Plan added in v0.3.0

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

	Spec   PlanSpec   `json:"spec,omitempty"`
	Status PlanStatus `json:"status,omitempty"`
}

Plan is the Schema for the plans API.

func (*Plan) DeepCopy added in v0.3.0

func (in *Plan) DeepCopy() *Plan

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

func (*Plan) DeepCopyInto added in v0.3.0

func (in *Plan) DeepCopyInto(out *Plan)

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

func (*Plan) DeepCopyObject added in v0.3.0

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

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

type PlanList added in v0.3.0

type PlanList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Plan `json:"items"`
}

PlanList contains a list of Plan.

func (*PlanList) DeepCopy added in v0.3.0

func (in *PlanList) DeepCopy() *PlanList

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

func (*PlanList) DeepCopyInto added in v0.3.0

func (in *PlanList) DeepCopyInto(out *PlanList)

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

func (*PlanList) DeepCopyObject added in v0.3.0

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

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

type PlanPhase added in v0.6.0

type PlanPhase string

type PlanSpec added in v0.3.0

type PlanSpec struct {

	// VersionRange gives a semver range of the Kubernetes version.
	// The cluster will be upgraded to the highest version within the range.
	// +required
	// +kubebuilder:validation:MinLength=1
	VersionRange string `json:"versionRange"`

	// MachineImageSelector can be used to select MachineImages to apply to the cluster plan.
	// Defaults to the empty LabelSelector, which matches all objects.
	// +optional
	MachineImageSelector *metav1.LabelSelector `json:"machineImageSelector,omitempty"`
}

PlanSpec defines the desired state of Plan.

func (*PlanSpec) DeepCopy added in v0.3.0

func (in *PlanSpec) DeepCopy() *PlanSpec

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

func (*PlanSpec) DeepCopyInto added in v0.3.0

func (in *PlanSpec) DeepCopyInto(out *PlanSpec)

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

type PlanStatus added in v0.3.0

type PlanStatus struct {

	// Phase represents the current phase of image building
	// E.g. NoSuitableMachineImage, FoundMachineImage.
	// +optional
	Phase PlanPhase `json:"phase,omitempty"`

	// MachineImageDetails holds the details for a MachineImage with the highest version within the range.
	MachineImageDetails *MachineImageDetails `json:"machineImageDetails"`

	// MachineImageRef is a reference to the MachineImage that was applied to the cluster upgrade.
	MachineImageRef *corev1.ObjectReference `json:"machineImageRef"`
}

PlanStatus defines the observed state of Plan.

func (*PlanStatus) DeepCopy added in v0.3.0

func (in *PlanStatus) DeepCopy() *PlanStatus

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

func (*PlanStatus) DeepCopyInto added in v0.3.0

func (in *PlanStatus) DeepCopyInto(out *PlanStatus)

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