etcdv1alpha2

package
v0.15.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const GroupName = "etcd.f110.dev"

Variables

View Source
var (
	GroupVersion       = metav1.GroupVersion{Group: GroupName, Version: "v1alpha2"}
	SchemeBuilder      = runtime.NewSchemeBuilder(addKnownTypes)
	AddToScheme        = SchemeBuilder.AddToScheme
	SchemaGroupVersion = schema.GroupVersion{Group: "etcd.f110.dev", Version: "v1alpha2"}
)

Functions

This section is empty.

Types

type AWSCredentialSelector

type AWSCredentialSelector struct {
	Name               string `json:"name,omitempty"`
	Namespace          string `json:"namespace,omitempty"`
	AccessKeyIDKey     string `json:"accessKeyIDKey,omitempty"`
	SecretAccessKeyKey string `json:"secretAccessKeyKey,omitempty"`
}

func (*AWSCredentialSelector) DeepCopy

func (*AWSCredentialSelector) DeepCopyInto

func (in *AWSCredentialSelector) DeepCopyInto(out *AWSCredentialSelector)

type AnnotationsEntry

type AnnotationsEntry struct {
	Key   string `json:"key"`
	Value string `json:"value"`
}

func (*AnnotationsEntry) DeepCopy

func (in *AnnotationsEntry) DeepCopy() *AnnotationsEntry

func (*AnnotationsEntry) DeepCopyInto

func (in *AnnotationsEntry) DeepCopyInto(out *AnnotationsEntry)

type BackupSpec

type BackupSpec struct {
	IntervalInSecond int                `json:"intervalInSecond,omitempty"`
	MaxBackups       int                `json:"maxBackups,omitempty"`
	Storage          *BackupStorageSpec `json:"storage,omitempty"`
}

func (*BackupSpec) DeepCopy

func (in *BackupSpec) DeepCopy() *BackupSpec

func (*BackupSpec) DeepCopyInto

func (in *BackupSpec) DeepCopyInto(out *BackupSpec)

type BackupStatus

type BackupStatus struct {
	Succeeded         bool                  `json:"succeeded,omitempty"`
	LastSucceededTime *metav1.Time          `json:"lastSucceededTime,omitempty"`
	History           []BackupStatusHistory `json:"backupStatusHistory"`
}

func (*BackupStatus) DeepCopy

func (in *BackupStatus) DeepCopy() *BackupStatus

func (*BackupStatus) DeepCopyInto

func (in *BackupStatus) DeepCopyInto(out *BackupStatus)

type BackupStatusHistory

type BackupStatusHistory struct {
	Succeeded    bool         `json:"succeeded,omitempty"`
	ExecuteTime  *metav1.Time `json:"executeTime,omitempty"`
	Path         string       `json:"path,omitempty"`
	EtcdVersion  string       `json:"etcdVersion,omitempty"`
	EtcdRevision int64        `json:"etcdRevision,omitempty"`
	Message      string       `json:"message,omitempty"`
}

func (*BackupStatusHistory) DeepCopy

func (in *BackupStatusHistory) DeepCopy() *BackupStatusHistory

func (*BackupStatusHistory) DeepCopyInto

func (in *BackupStatusHistory) DeepCopyInto(out *BackupStatusHistory)

type BackupStorageGCSSpec

type BackupStorageGCSSpec struct {
	Bucket             string                 `json:"bucket,omitempty"`
	Path               string                 `json:"path,omitempty"`
	CredentialSelector *GCPCredentialSelector `json:"credentialSelector,omitempty"`
}

func (*BackupStorageGCSSpec) DeepCopy

func (*BackupStorageGCSSpec) DeepCopyInto

func (in *BackupStorageGCSSpec) DeepCopyInto(out *BackupStorageGCSSpec)

type BackupStorageMinIOSpec

type BackupStorageMinIOSpec struct {
	ServiceSelector    *ObjectSelector        `json:"serviceSelector,omitempty"`
	CredentialSelector *AWSCredentialSelector `json:"credentialSelector,omitempty"`
	Bucket             string                 `json:"bucket,omitempty"`
	Path               string                 `json:"path,omitempty"`
	Secure             bool                   `json:"secure,omitempty"`
}

func (*BackupStorageMinIOSpec) DeepCopy

func (*BackupStorageMinIOSpec) DeepCopyInto

func (in *BackupStorageMinIOSpec) DeepCopyInto(out *BackupStorageMinIOSpec)

type BackupStorageSpec

type BackupStorageSpec struct {
	MinIO *BackupStorageMinIOSpec `json:"minio,omitempty"`
	GCS   *BackupStorageGCSSpec   `json:"gcs,omitempty"`
}

func (*BackupStorageSpec) DeepCopy

func (in *BackupStorageSpec) DeepCopy() *BackupStorageSpec

func (*BackupStorageSpec) DeepCopyInto

func (in *BackupStorageSpec) DeepCopyInto(out *BackupStorageSpec)

type EtcdCluster

type EtcdCluster struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata"`
	Spec              EtcdClusterSpec   `json:"spec"`
	Status            EtcdClusterStatus `json:"status"`
}

func (*EtcdCluster) DeepCopy

func (in *EtcdCluster) DeepCopy() *EtcdCluster

func (*EtcdCluster) DeepCopyInto

func (in *EtcdCluster) DeepCopyInto(out *EtcdCluster)

func (*EtcdCluster) DeepCopyObject

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

type EtcdClusterList

type EtcdClusterList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`
	Items           []EtcdCluster `json:"items"`
}

func (*EtcdClusterList) DeepCopy

func (in *EtcdClusterList) DeepCopy() *EtcdClusterList

func (*EtcdClusterList) DeepCopyInto

func (in *EtcdClusterList) DeepCopyInto(out *EtcdClusterList)

func (*EtcdClusterList) DeepCopyObject

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

type EtcdClusterPhase

type EtcdClusterPhase string
const (
	EtcdClusterPhasePending      EtcdClusterPhase = "Pending"
	EtcdClusterPhaseInitializing EtcdClusterPhase = "Initializing"
	EtcdClusterPhaseCreating     EtcdClusterPhase = "Creating"
	EtcdClusterPhaseRunning      EtcdClusterPhase = "Running"
	EtcdClusterPhaseUpdating     EtcdClusterPhase = "Updating"
	EtcdClusterPhaseDegrading    EtcdClusterPhase = "Degrading"
)

type EtcdClusterSpec

type EtcdClusterSpec struct {
	Members             int                                   `json:"members"`
	Version             string                                `json:"version"`
	AntiAffinity        bool                                  `json:"antiAffinity,omitempty"`
	DefragmentSchedule  string                                `json:"defragmentSchedule"`
	Template            *PodTemplateSpec                      `json:"template,omitempty"`
	Backup              *BackupSpec                           `json:"backup,omitempty"`
	VolumeClaimTemplate *corev1.PersistentVolumeClaimTemplate `json:"volumeClaimTemplate,omitempty"`
	Development         bool                                  `json:"development,omitempty"`
}

func (*EtcdClusterSpec) DeepCopy

func (in *EtcdClusterSpec) DeepCopy() *EtcdClusterSpec

func (*EtcdClusterSpec) DeepCopyInto

func (in *EtcdClusterSpec) DeepCopyInto(out *EtcdClusterSpec)

type EtcdClusterStatus

type EtcdClusterStatus struct {
	Ready                   bool             `json:"ready"`
	Phase                   EtcdClusterPhase `json:"phase,omitempty"`
	Members                 []MemberStatus   `json:"members"`
	LastReadyTransitionTime *metav1.Time     `json:"lastReadyTransitionTime,omitempty"`
	LastDefragmentTime      *metav1.Time     `json:"lastDefragmentTime,omitempty"`
	CreatingCompleted       bool             `json:"creatingCompleted,omitempty"`
	ClientEndpoint          string           `json:"clientEndpoint,omitempty"`
	ClientCertSecretName    string           `json:"clientCertSecretName,omitempty"`
	Backup                  *BackupStatus    `json:"backup,omitempty"`
	Restored                *RestoredStatus  `json:"restored,omitempty"`
}

func (*EtcdClusterStatus) DeepCopy

func (in *EtcdClusterStatus) DeepCopy() *EtcdClusterStatus

func (*EtcdClusterStatus) DeepCopyInto

func (in *EtcdClusterStatus) DeepCopyInto(out *EtcdClusterStatus)

type GCPCredentialSelector

type GCPCredentialSelector struct {
	Name                  string `json:"name,omitempty"`
	Namespace             string `json:"namespace,omitempty"`
	ServiceAccountJSONKey string `json:"serviceAccountJSONKey,omitempty"`
}

func (*GCPCredentialSelector) DeepCopy

func (*GCPCredentialSelector) DeepCopyInto

func (in *GCPCredentialSelector) DeepCopyInto(out *GCPCredentialSelector)

type LabelsEntry

type LabelsEntry struct {
	Key   string `json:"key"`
	Value string `json:"value"`
}

func (*LabelsEntry) DeepCopy

func (in *LabelsEntry) DeepCopy() *LabelsEntry

func (*LabelsEntry) DeepCopyInto

func (in *LabelsEntry) DeepCopyInto(out *LabelsEntry)

type MemberStatus

type MemberStatus struct {
	Id        int64  `json:"id,omitempty"`
	Name      string `json:"name,omitempty"`
	PodName   string `json:"podName,omitempty"`
	Leader    bool   `json:"leader,omitempty"`
	Learner   bool   `json:"learner,omitempty"`
	Version   string `json:"version,omitempty"`
	DBSize    int64  `json:"dbSize,omitempty"`
	InUseSize int64  `json:"inUseSize,omitempty"`
}

func (*MemberStatus) DeepCopy

func (in *MemberStatus) DeepCopy() *MemberStatus

func (*MemberStatus) DeepCopyInto

func (in *MemberStatus) DeepCopyInto(out *MemberStatus)

type ObjectMeta

type ObjectMeta struct {
	Labels      map[string]string `json:"labels,omitempty"`
	Annotations map[string]string `json:"annotations,omitempty"`
}

func (*ObjectMeta) DeepCopy

func (in *ObjectMeta) DeepCopy() *ObjectMeta

func (*ObjectMeta) DeepCopyInto

func (in *ObjectMeta) DeepCopyInto(out *ObjectMeta)

type ObjectSelector

type ObjectSelector struct {
	Name      string `json:"name,omitempty"`
	Namespace string `json:"namespace,omitempty"`
}

func (*ObjectSelector) DeepCopy

func (in *ObjectSelector) DeepCopy() *ObjectSelector

func (*ObjectSelector) DeepCopyInto

func (in *ObjectSelector) DeepCopyInto(out *ObjectSelector)

type PodTemplateSpec

type PodTemplateSpec struct {
	Metadata *ObjectMeta `json:"metadata,omitempty"`
}

func (*PodTemplateSpec) DeepCopy

func (in *PodTemplateSpec) DeepCopy() *PodTemplateSpec

func (*PodTemplateSpec) DeepCopyInto

func (in *PodTemplateSpec) DeepCopyInto(out *PodTemplateSpec)

type RestoredStatus

type RestoredStatus struct {
	Completed    bool         `json:"completed,omitempty"`
	Path         string       `json:"path,omitempty"`
	BackupTime   *metav1.Time `json:"backupTime,omitempty"`
	RestoredTime *metav1.Time `json:"restoredTime,omitempty"`
}

func (*RestoredStatus) DeepCopy

func (in *RestoredStatus) DeepCopy() *RestoredStatus

func (*RestoredStatus) DeepCopyInto

func (in *RestoredStatus) DeepCopyInto(out *RestoredStatus)

Jump to

Keyboard shortcuts

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