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 ¶
- Variables
- type ETCDSnapshotPhase
- type ETCDSnapshotRestorePhase
- type EtcdMachineSnapshot
- type EtcdMachineSnapshotList
- type EtcdMachineSnapshotSpec
- type EtcdMachineSnapshotStatus
- type EtcdSnapshotRestore
- type EtcdSnapshotRestoreList
- type EtcdSnapshotRestoreSpec
- type EtcdSnapshotRestoreStatus
- type LocalConfig
- type RKE2EtcdMachineSnapshotConfig
- type RKE2EtcdMachineSnapshotConfigList
- type RKE2EtcdMachineSnapshotConfigSpec
- type S3Config
Constants ¶
This section is empty.
Variables ¶
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 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 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" // 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 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 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 ¶
func (in *EtcdMachineSnapshotList) DeepCopy() *EtcdMachineSnapshotList
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"` ConfigRef corev1.LocalObjectReference `json:"configRef"` Manual bool `json:"manual"` Location string `json:"location"` }
EtcdMachineSnapshotSpec defines the desired state of EtcdMachineSnapshot
func (*EtcdMachineSnapshotSpec) DeepCopy ¶
func (in *EtcdMachineSnapshotSpec) DeepCopy() *EtcdMachineSnapshotSpec
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"` Conditions clusterv1.Conditions `json:"conditions,omitempty"` }
EtcdSnapshotRestoreStatus defines observed state of EtcdSnapshotRestore
func (*EtcdMachineSnapshotStatus) DeepCopy ¶
func (in *EtcdMachineSnapshotStatus) DeepCopy() *EtcdMachineSnapshotStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EtcdMachineSnapshotStatus.
func (*EtcdMachineSnapshotStatus) DeepCopyInto ¶
func (in *EtcdMachineSnapshotStatus) DeepCopyInto(out *EtcdMachineSnapshotStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type EtcdSnapshotRestore ¶
type EtcdSnapshotRestore struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec EtcdSnapshotRestoreSpec `json:"spec,omitempty"` 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 ¶
func (in *EtcdSnapshotRestoreList) DeepCopy() *EtcdSnapshotRestoreList
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 EtcdSnapshotRestoreSpec ¶
type EtcdSnapshotRestoreSpec struct { ClusterName string `json:"clusterName"` EtcdMachineSnapshotName string `json:"etcdMachineSnapshotName"` TTLSecondsAfterFinished int `json:"ttlSecondsAfterFinished"` ConfigRef corev1.ObjectReference `json:"configRef"` }
EtcdSnapshotRestoreSpec defines the desired state of EtcdSnapshotRestore.
func (*EtcdSnapshotRestoreSpec) DeepCopy ¶
func (in *EtcdSnapshotRestoreSpec) DeepCopy() *EtcdSnapshotRestoreSpec
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 { Phase ETCDSnapshotPhase `json:"phase,omitempty"` Conditions clusterv1.Conditions `json:"conditions,omitempty"` }
EtcdSnapshotRestoreStatus defines observed state of EtcdSnapshotRestore.
func (*EtcdSnapshotRestoreStatus) DeepCopy ¶
func (in *EtcdSnapshotRestoreStatus) DeepCopy() *EtcdSnapshotRestoreStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EtcdSnapshotRestoreStatus.
func (*EtcdSnapshotRestoreStatus) DeepCopyInto ¶
func (in *EtcdSnapshotRestoreStatus) DeepCopyInto(out *EtcdSnapshotRestoreStatus)
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 ¶
func (in *RKE2EtcdMachineSnapshotConfig) DeepCopy() *RKE2EtcdMachineSnapshotConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RKE2EtcdMachineSnapshotConfig.
func (*RKE2EtcdMachineSnapshotConfig) DeepCopyInto ¶
func (in *RKE2EtcdMachineSnapshotConfig) DeepCopyInto(out *RKE2EtcdMachineSnapshotConfig)
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 ¶
func (in *RKE2EtcdMachineSnapshotConfigList) DeepCopy() *RKE2EtcdMachineSnapshotConfigList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RKE2EtcdMachineSnapshotConfigList.
func (*RKE2EtcdMachineSnapshotConfigList) DeepCopyInto ¶
func (in *RKE2EtcdMachineSnapshotConfigList) DeepCopyInto(out *RKE2EtcdMachineSnapshotConfigList)
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 ¶
func (in *RKE2EtcdMachineSnapshotConfigSpec) DeepCopy() *RKE2EtcdMachineSnapshotConfigSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RKE2EtcdMachineSnapshotConfigSpec.
func (*RKE2EtcdMachineSnapshotConfigSpec) DeepCopyInto ¶
func (in *RKE2EtcdMachineSnapshotConfigSpec) DeepCopyInto(out *RKE2EtcdMachineSnapshotConfigSpec)
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 *corev1.LocalObjectReference `json:"endpointCAsecret,omitempty"` SkipSSLVerify bool `json:"skipSSLVerify,omitempty"` S3CredentialSecret *corev1.LocalObjectReference `json:"s3CredentialSecret,omitempty"` Bucket string `json:"bucket,omitempty"` Region string `json:"region,omitempty"` Folder string `json:"folder,omitempty"` Insecure bool `json:"insecure,omitempty"` Location string `json:"location,omitempty"` }
func (*S3Config) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new S3Config.
func (*S3Config) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.