Documentation
¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the kubernetesupgraded v1alpha1 API group +kubebuilder:object:generate=true +groupName=kubernetesupgraded.dimitrikoshkin.com
Index ¶
- Constants
- Variables
- func MachineImagesToVersioned(versions []MachineImage) policy.VersionedList
- type ClusterClassClusterUpgrader
- func (in *ClusterClassClusterUpgrader) DeepCopy() *ClusterClassClusterUpgrader
- func (in *ClusterClassClusterUpgrader) DeepCopyInto(out *ClusterClassClusterUpgrader)
- func (in *ClusterClassClusterUpgrader) DeepCopyObject() runtime.Object
- func (r *ClusterClassClusterUpgrader) Default()
- func (r *ClusterClassClusterUpgrader) GetCluster(ctx context.Context, reader client.Reader) (*clusterv1.Cluster, error)
- func (r *ClusterClassClusterUpgrader) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (r *ClusterClassClusterUpgrader) ValidateCreate() (admission.Warnings, error)
- func (r *ClusterClassClusterUpgrader) ValidateDelete() (admission.Warnings, error)
- func (r *ClusterClassClusterUpgrader) ValidateUpdate(old runtime.Object) (admission.Warnings, error)
- type ClusterClassClusterUpgraderList
- type ClusterClassClusterUpgraderSpec
- type ClusterClassClusterUpgraderStatus
- type DebianRepositorySource
- type DebianRepositorySourceList
- type DebianRepositorySourceSpec
- type DebianRepositorySourceStatus
- type JobTemplate
- type MachineImage
- func (in *MachineImage) DeepCopy() *MachineImage
- func (in *MachineImage) DeepCopyInto(out *MachineImage)
- func (in *MachineImage) DeepCopyObject() runtime.Object
- func (r *MachineImage) Default()
- func (r *MachineImage) GetID() string
- func (r *MachineImage) GetObjectReference() *corev1.ObjectReference
- func (r *MachineImage) GetVersion() string
- func (r *MachineImage) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (r *MachineImage) ValidateCreate() (admission.Warnings, error)
- func (r *MachineImage) ValidateDelete() (admission.Warnings, error)
- func (r *MachineImage) ValidateUpdate(old runtime.Object) (admission.Warnings, error)
- type MachineImageDetails
- type MachineImageList
- type MachineImagePhase
- type MachineImageSpec
- type MachineImageStatus
- type MachineImageSyncer
- func (in *MachineImageSyncer) DeepCopy() *MachineImageSyncer
- func (in *MachineImageSyncer) DeepCopyInto(out *MachineImageSyncer)
- func (in *MachineImageSyncer) DeepCopyObject() runtime.Object
- func (r *MachineImageSyncer) Default()
- func (r *MachineImageSyncer) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (r *MachineImageSyncer) ValidateCreate() (admission.Warnings, error)
- func (r *MachineImageSyncer) ValidateDelete() (admission.Warnings, error)
- func (r *MachineImageSyncer) ValidateUpdate(old runtime.Object) (admission.Warnings, error)
- type MachineImageSyncerList
- type MachineImageSyncerSpec
- func (in *MachineImageSyncerSpec) DeepCopy() *MachineImageSyncerSpec
- func (in *MachineImageSyncerSpec) DeepCopyInto(out *MachineImageSyncerSpec)
- func (s *MachineImageSyncerSpec) GetMachineImageTemplate(ctx context.Context, reader client.Reader) (*MachineImageTemplate, error)
- func (s *MachineImageSyncerSpec) GetVersionsFromSource(ctx context.Context, reader client.Reader) ([]string, error)
- type MachineImageSyncerStatus
- type MachineImageTemplate
- type MachineImageTemplateList
- type MachineImageTemplateResource
- type MachineImageTemplateSpec
- type MachineImageTemplateStatus
- type Plan
- type PlanList
- type PlanPhase
- type PlanSpec
- type PlanStatus
Constants ¶
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") )
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") )
const (
MachineImageSyncerInterval = 1 * time.Hour
)
Variables ¶
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
func (in *ClusterClassClusterUpgrader) DeepCopy() *ClusterClassClusterUpgrader
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterClassClusterUpgrader.
func (*ClusterClassClusterUpgrader) DeepCopyInto ¶ added in v0.5.0
func (in *ClusterClassClusterUpgrader) DeepCopyInto(out *ClusterClassClusterUpgrader)
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 (*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
func (in *ClusterClassClusterUpgraderList) DeepCopy() *ClusterClassClusterUpgraderList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterClassClusterUpgraderList.
func (*ClusterClassClusterUpgraderList) DeepCopyInto ¶ added in v0.5.0
func (in *ClusterClassClusterUpgraderList) DeepCopyInto(out *ClusterClassClusterUpgraderList)
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
func (in *ClusterClassClusterUpgraderSpec) DeepCopy() *ClusterClassClusterUpgraderSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterClassClusterUpgraderSpec.
func (*ClusterClassClusterUpgraderSpec) DeepCopyInto ¶ added in v0.5.0
func (in *ClusterClassClusterUpgraderSpec) DeepCopyInto(out *ClusterClassClusterUpgraderSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
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
func (in *ClusterClassClusterUpgraderStatus) DeepCopy() *ClusterClassClusterUpgraderStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterClassClusterUpgraderStatus.
func (*ClusterClassClusterUpgraderStatus) DeepCopyInto ¶ added in v0.5.0
func (in *ClusterClassClusterUpgraderStatus) DeepCopyInto(out *ClusterClassClusterUpgraderStatus)
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
func (in *DebianRepositorySource) DeepCopy() *DebianRepositorySource
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
func (in *DebianRepositorySourceList) DeepCopy() *DebianRepositorySourceList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DebianRepositorySourceList.
func (*DebianRepositorySourceList) DeepCopyInto ¶ added in v0.5.0
func (in *DebianRepositorySourceList) DeepCopyInto(out *DebianRepositorySourceList)
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
func (in *DebianRepositorySourceSpec) DeepCopy() *DebianRepositorySourceSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DebianRepositorySourceSpec.
func (*DebianRepositorySourceSpec) DeepCopyInto ¶ added in v0.5.0
func (in *DebianRepositorySourceSpec) DeepCopyInto(out *DebianRepositorySourceSpec)
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
func (in *DebianRepositorySourceStatus) DeepCopy() *DebianRepositorySourceStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DebianRepositorySourceStatus.
func (*DebianRepositorySourceStatus) DeepCopyInto ¶ added in v0.5.0
func (in *DebianRepositorySourceStatus) DeepCopyInto(out *DebianRepositorySourceStatus)
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
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
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
func (in *MachineImageSyncerList) DeepCopy() *MachineImageSyncerList
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
func (in *MachineImageSyncerSpec) DeepCopy() *MachineImageSyncerSpec
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
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
func (in *MachineImageSyncerStatus) DeepCopy() *MachineImageSyncerStatus
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
func (in *MachineImageTemplate) DeepCopy() *MachineImageTemplate
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
func (in *MachineImageTemplateList) DeepCopy() *MachineImageTemplateList
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
func (in *MachineImageTemplateResource) DeepCopy() *MachineImageTemplateResource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineImageTemplateResource.
func (*MachineImageTemplateResource) DeepCopyInto ¶ added in v0.6.0
func (in *MachineImageTemplateResource) DeepCopyInto(out *MachineImageTemplateResource)
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
func (in *MachineImageTemplateSpec) DeepCopy() *MachineImageTemplateSpec
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
func (in *MachineImageTemplateStatus) DeepCopy() *MachineImageTemplateStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineImageTemplateStatus.
func (*MachineImageTemplateStatus) DeepCopyInto ¶ added in v0.5.0
func (in *MachineImageTemplateStatus) DeepCopyInto(out *MachineImageTemplateStatus)
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
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Plan.
func (*Plan) DeepCopyInto ¶ added in v0.3.0
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
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
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PlanList.
func (*PlanList) DeepCopyInto ¶ added in v0.3.0
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
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
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
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PlanSpec.
func (*PlanSpec) DeepCopyInto ¶ added in v0.3.0
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.
Source Files
¶
- clusterclassclusterupgrader_types.go
- clusterclassclusterupgrader_webhook.go
- constants.go
- debianrepositorysource_types.go
- groupversion_info.go
- machineimage_phase_types.go
- machineimage_types.go
- machineimage_webhook.go
- machineimagesyncer_types.go
- machineimagesyncer_webhook.go
- machineimagetemplate_types.go
- plan_phase_types.go
- plan_types.go
- zz_generated.deepcopy.go