v1alpha1

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the k8ssandra.io v1alpha1 API group +kubebuilder:object:generate=true +groupName=replication.k8ssandra.io

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "replication.k8ssandra.io", 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

This section is empty.

Types

type ReplicatedSecret

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

	Spec   ReplicatedSecretSpec   `json:"spec,omitempty"`
	Status ReplicatedSecretStatus `json:"status,omitempty"`
}

ReplicatedSecret is the Schema for the replicatedsecrets API

func (*ReplicatedSecret) DeepCopy

func (in *ReplicatedSecret) DeepCopy() *ReplicatedSecret

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

func (*ReplicatedSecret) DeepCopyInto

func (in *ReplicatedSecret) DeepCopyInto(out *ReplicatedSecret)

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

func (*ReplicatedSecret) DeepCopyObject

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

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

type ReplicatedSecretList

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

ReplicatedSecretList contains a list of ReplicatedSecret

func (*ReplicatedSecretList) DeepCopy

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

func (*ReplicatedSecretList) DeepCopyInto

func (in *ReplicatedSecretList) DeepCopyInto(out *ReplicatedSecretList)

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

func (*ReplicatedSecretList) DeepCopyObject

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

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

type ReplicatedSecretSpec

type ReplicatedSecretSpec struct {

	// Selector defines which secrets are replicated. If left empty, all the secrets are replicated
	// +optional
	Selector *metav1.LabelSelector `json:"selector,omitempty"`
	// TargetContexts indicates the target clusters to which the secrets are replicated to. If empty, no clusters are targeted
	// +optional
	ReplicationTargets []ReplicationTarget `json:"replicationTargets,omitempty"`
}

ReplicatedSecretSpec defines the desired state of ReplicatedSecret

func (*ReplicatedSecretSpec) DeepCopy

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

func (*ReplicatedSecretSpec) DeepCopyInto

func (in *ReplicatedSecretSpec) DeepCopyInto(out *ReplicatedSecretSpec)

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

type ReplicatedSecretStatus

type ReplicatedSecretStatus struct {

	// +optional
	Conditions []ReplicationCondition `json:"conditions,omitempty"`
}

ReplicatedSecretStatus defines the observed state of ReplicatedSecret

func (*ReplicatedSecretStatus) DeepCopy

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

func (*ReplicatedSecretStatus) DeepCopyInto

func (in *ReplicatedSecretStatus) DeepCopyInto(out *ReplicatedSecretStatus)

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

type ReplicationCondition

type ReplicationCondition struct {
	// Cluster
	Cluster string `json:"cluster"`

	// Type of condition
	Type ReplicationConditionType `json:"type"`

	// Status of the replication to target cluster
	Status corev1.ConditionStatus `json:"status"`

	// LastTransitionTime is the last time the condition transited from one status to another.
	// +optional
	LastTransitionTime *metav1.Time `json:"lastTransitionTime,omitempty"`
}

func (*ReplicationCondition) DeepCopy

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

func (*ReplicationCondition) DeepCopyInto

func (in *ReplicationCondition) DeepCopyInto(out *ReplicationCondition)

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

type ReplicationConditionType

type ReplicationConditionType string
const (
	ReplicationDone ReplicationConditionType = "Replication"
)

type ReplicationTarget

type ReplicationTarget struct {
	// TODO Implement at some point
	// Namespace to replicate the data to in the target cluster. If left empty, current namespace is used.
	// +optional
	Namespace string `json:"namespace,omitempty"`

	// K8sContextName defines the target cluster name as set in the ClientConfig. If left empty, current cluster is assumed
	// +optional
	K8sContextName string `json:"k8sContextName,omitempty"`
}

func (*ReplicationTarget) DeepCopy

func (in *ReplicationTarget) DeepCopy() *ReplicationTarget

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

func (*ReplicationTarget) DeepCopyInto

func (in *ReplicationTarget) DeepCopyInto(out *ReplicationTarget)

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