v1alpha1

package
v0.0.0-...-722d744 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2024 License: Apache-2.0 Imports: 5 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 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

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

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

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 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

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

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

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   *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

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.

Jump to

Keyboard shortcuts

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