v1alpha1

package
v0.0.0-...-a6e4ae7 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the turtles-capi.cattle.io v1alpha1 API group +kubebuilder:object:generate=true +groupName=turtles-capi.cattle.io

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects.
	GroupVersion = schema.GroupVersion{Group: "turtles-capi.cattle.io", Version: "v1alpha1"}

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

Functions

This section is empty.

Types

type ETCDMachineSnapshot

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

	Spec   ETCDMachineSnapshotSpec   `json:"spec,omitempty"`
	Status ETCDMachineSnapshotStatus `json:"status,omitempty"`
}

ETCDMachineSnapshot is the Schema for the ETCDMachineSnapshot API.

+kubebuilder:object:root=true +kubebuilder:subresource:status

func (*ETCDMachineSnapshot) DeepCopy

func (in *ETCDMachineSnapshot) DeepCopy() *ETCDMachineSnapshot

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

func (*ETCDMachineSnapshot) DeepCopyInto

func (in *ETCDMachineSnapshot) DeepCopyInto(out *ETCDMachineSnapshot)

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

func (*ETCDMachineSnapshot) DeepCopyObject

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

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

type ETCDMachineSnapshotFile

type ETCDMachineSnapshotFile struct {
	Name        string `json:"name"`
	MachineName string `json:"machineName"`
	Location    string `json:"location"`
}

func (*ETCDMachineSnapshotFile) DeepCopy

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

func (*ETCDMachineSnapshotFile) DeepCopyInto

func (in *ETCDMachineSnapshotFile) DeepCopyInto(out *ETCDMachineSnapshotFile)

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

type ETCDMachineSnapshotList

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

ETCDMachineSnapshotList contains a list of EtcdMachineSnapshots.

func (*ETCDMachineSnapshotList) DeepCopy

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

func (*ETCDMachineSnapshotList) DeepCopyInto

func (in *ETCDMachineSnapshotList) DeepCopyInto(out *ETCDMachineSnapshotList)

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

func (*ETCDMachineSnapshotList) DeepCopyObject

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

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

type ETCDMachineSnapshotSpec

type ETCDMachineSnapshotSpec struct {
	ClusterName string `json:"clusterName"`
	MachineName string `json:"machineName,omitempty"`
	Location    string `json:"location,omitempty"`
}

+kubebuilder:validation:XValidation:message="ETCD snapshot location can't be empty.",rule="size(self.clusterName)>0"

ETCDMachineSnapshotSpec defines the desired state of EtcdMachineSnapshot

func (*ETCDMachineSnapshotSpec) DeepCopy

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

func (*ETCDMachineSnapshotSpec) DeepCopyInto

func (in *ETCDMachineSnapshotSpec) DeepCopyInto(out *ETCDMachineSnapshotSpec)

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

type ETCDMachineSnapshotStatus

type ETCDMachineSnapshotStatus struct {
	Phase ETCDSnapshotPhase `json:"phase,omitempty"`

	// +optional
	Snapshots []ETCDMachineSnapshotFile `json:"snapshots,omitempty"`

	// +optional
	S3Snapshots []S3SnapshotFile `json:"s3Snapshots,omitempty"`
}

EtcdSnapshotRestoreStatus defines observed state of EtcdSnapshotRestore

func (*ETCDMachineSnapshotStatus) DeepCopy

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

func (*ETCDMachineSnapshotStatus) DeepCopyInto

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

type ETCDSnapshotPhase

type ETCDSnapshotPhase string

ETCDSnapshotPhase is a string representation of the phase of the etcd snapshot

const (
	// ETCDSnapshotPhasePending is the phase when the snapshot was submitted but was not registered
	ETCDSnapshotPhasePending ETCDSnapshotPhase = "Pending"
	// ETCDSnapshotPhaseRunning is the phase when the snapshot creation has started
	ETCDSnapshotPhaseRunning ETCDSnapshotPhase = "Running"
	// ETCDSnapshotPhaseFailed is the phase when the snapshot creation has failed
	ETCDSnapshotPhaseFailed ETCDSnapshotPhase = "Failed"
	// ETCDSnapshotPhaseDone is the phase when the snapshot creation has finished
	ETCDSnapshotPhaseDone ETCDSnapshotPhase = "Done"

	// ETCDMachineSnapshotFinalizer allows the controller to clean up resources associated with EtcdMachineSnapshot
	ETCDMachineSnapshotFinalizer = "etcdmachinesnapshot.turtles.cattle.io"
)

type ETCDSnapshotRestore

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

	Spec ETCDSnapshotRestoreSpec `json:"spec,omitempty"`

	// +kubebuilder:default={}
	Status ETCDSnapshotRestoreStatus `json:"status,omitempty"`
}

ETCDSnapshotRestore is the schema for the ETCDSnapshotRestore API.

+kubebuilder:object:root=true +kubebuilder:subresource:status

func (*ETCDSnapshotRestore) DeepCopy

func (in *ETCDSnapshotRestore) DeepCopy() *ETCDSnapshotRestore

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

func (*ETCDSnapshotRestore) DeepCopyInto

func (in *ETCDSnapshotRestore) DeepCopyInto(out *ETCDSnapshotRestore)

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

func (*ETCDSnapshotRestore) DeepCopyObject

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

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

type ETCDSnapshotRestoreList

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

ETCDSnapshotRestoreList contains a list of EtcdSnapshotRestores.

func (*ETCDSnapshotRestoreList) DeepCopy

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

func (*ETCDSnapshotRestoreList) DeepCopyInto

func (in *ETCDSnapshotRestoreList) DeepCopyInto(out *ETCDSnapshotRestoreList)

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

func (*ETCDSnapshotRestoreList) DeepCopyObject

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

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

type ETCDSnapshotRestorePhase

type ETCDSnapshotRestorePhase string

ETCDSnapshotPhase is a string representation of the phase of the etcd snapshot

const (
	// ETCDSnapshotRestorePhasePending is the phase when the snapshot was submitted but was not registered
	ETCDSnapshotRestorePhasePending ETCDSnapshotRestorePhase = "Pending"
	// ETCDSnapshotRestorePhaseStarted is the phase when the snapshot creation has started
	ETCDSnapshotRestorePhaseStarted ETCDSnapshotRestorePhase = "Started"
	// ETCDSnapshotRestorePhaseShutdown is the phase when the etcd cluster is being shutdown
	ETCDSnapshotRestorePhaseShutdown ETCDSnapshotRestorePhase = "Shutdown"
	// ETCDSnapshotRestorePhaseRunning is the phase when the snapshot is being restored
	ETCDSnapshotRestorePhaseRunning ETCDSnapshotRestorePhase = "Running"
	// ETCDSnapshotRestorePhaseAgentRestart is the phase when the cluster is being restarted
	ETCDSnapshotRestorePhaseAgentRestart ETCDSnapshotRestorePhase = "Restart"
	// ETCDSnapshotRestoreUnpauseCluster is the phase when the cluster can be unpaused
	ETCDSnapshotRestoreUnpauseCluster ETCDSnapshotRestorePhase = "Unpause"
	// ETCDSnapshotRestorePhaseJoinAgents is the phase when the snapshot creation has finished
	ETCDSnapshotRestorePhaseJoinAgents ETCDSnapshotRestorePhase = "Joining"
	// ETCDSnapshotRestorePhaseFailed is the phase when the snapshot creation has failed
	ETCDSnapshotRestorePhaseFailed ETCDSnapshotRestorePhase = "Failed"
	// ETCDSnapshotRestorePhaseFinished is the phase when the snapshot creation has finished
	ETCDSnapshotRestorePhaseFinished ETCDSnapshotRestorePhase = "Done"
)

type ETCDSnapshotRestoreSpec

type ETCDSnapshotRestoreSpec struct {
	// +required
	ClusterName string `json:"clusterName"`

	// +required
	ETCDMachineSnapshotName string `json:"etcdMachineSnapshotName"`
}

+kubebuilder:validation:XValidation:message="Cluster Name can't be empty.",rule="size(self.clusterName)>0" +kubebuilder:validation:XValidation:message="ETCD machine snapshot name can't be empty.",rule="size(self.etcdMachineSnapshotName)>0"

ETCDSnapshotRestoreSpec defines the desired state of EtcdSnapshotRestore.

func (*ETCDSnapshotRestoreSpec) DeepCopy

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

func (*ETCDSnapshotRestoreSpec) DeepCopyInto

func (in *ETCDSnapshotRestoreSpec) DeepCopyInto(out *ETCDSnapshotRestoreSpec)

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

type ETCDSnapshotRestoreStatus

type ETCDSnapshotRestoreStatus struct {
	// +kubebuilder:default=Pending
	Phase      ETCDSnapshotRestorePhase `json:"phase,omitempty"`
	Conditions clusterv1.Conditions     `json:"conditions,omitempty"`
}

ETCDSnapshotRestoreStatus defines observed state of EtcdSnapshotRestore.

func (*ETCDSnapshotRestoreStatus) DeepCopy

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

func (*ETCDSnapshotRestoreStatus) DeepCopyInto

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

type LocalConfig

type LocalConfig struct {
	DataDir string `json:"dataDir"`
}

func (*LocalConfig) DeepCopy

func (in *LocalConfig) DeepCopy() *LocalConfig

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

func (*LocalConfig) DeepCopyInto

func (in *LocalConfig) DeepCopyInto(out *LocalConfig)

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

type RKE2EtcdMachineSnapshotConfig

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

	Spec RKE2EtcdMachineSnapshotConfigSpec `json:"spec,omitempty"`
}

RKE2EtcdMachineSnapshotConfig is the config for the RKE2EtcdMachineSnapshotConfig API

func (*RKE2EtcdMachineSnapshotConfig) DeepCopy

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

func (*RKE2EtcdMachineSnapshotConfig) DeepCopyInto

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

func (*RKE2EtcdMachineSnapshotConfig) DeepCopyObject

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

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

type RKE2EtcdMachineSnapshotConfigList

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

RKE2EtcdMachineSnapshotConfigList contains a list of RKE2EtcdMachineSnapshotConfigs.

func (*RKE2EtcdMachineSnapshotConfigList) DeepCopy

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

func (*RKE2EtcdMachineSnapshotConfigList) DeepCopyInto

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

func (*RKE2EtcdMachineSnapshotConfigList) DeepCopyObject

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

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

type RKE2EtcdMachineSnapshotConfigSpec

type RKE2EtcdMachineSnapshotConfigSpec struct {
	S3    S3Config    `json:"s3"`
	Local LocalConfig `json:"local"`
}

RKE2EtcdMachineSnapshotConfigSpec defines the desired state of RKE2EtcdMachineSnapshotConfig

func (*RKE2EtcdMachineSnapshotConfigSpec) DeepCopy

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

func (*RKE2EtcdMachineSnapshotConfigSpec) DeepCopyInto

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

type S3Config

type S3Config struct {
	Endpoint           string `json:"endpoint,omitempty"`
	EndpointCASecret   string `json:"endpointCAsecret,omitempty"`
	SkipSSLVerify      bool   `json:"skipSSLVerify,omitempty"`
	S3CredentialSecret string `json:"s3CredentialSecret,omitempty"`
	Bucket             string `json:"bucket,omitempty"`
	Region             string `json:"region,omitempty"`
	Folder             string `json:"folder,omitempty"`
	Insecure           bool   `json:"insecure,omitempty"`
}

func (*S3Config) DeepCopy

func (in *S3Config) DeepCopy() *S3Config

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

func (*S3Config) DeepCopyInto

func (in *S3Config) DeepCopyInto(out *S3Config)

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

type S3SnapshotFile

type S3SnapshotFile struct {
	Name     string `json:"name"`
	Location string `json:"location"`
}

func (*S3SnapshotFile) DeepCopy

func (in *S3SnapshotFile) DeepCopy() *S3SnapshotFile

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

func (*S3SnapshotFile) DeepCopyInto

func (in *S3SnapshotFile) DeepCopyInto(out *S3SnapshotFile)

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