v1

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package v1 contains API Schema definitions for the db v1 API group +kubebuilder:object:generate=true +groupName=db.payu.com

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "db.payu.com", Version: "v1"}

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

type PodLabelSelector struct {
	App string `json:"app"`
}

PodLabelSelector will use to identify which pod our controller needs to maintain

func (*PodLabelSelector) DeepCopy

func (in *PodLabelSelector) DeepCopy() *PodLabelSelector

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

func (*PodLabelSelector) DeepCopyInto

func (in *PodLabelSelector) DeepCopyInto(out *PodLabelSelector)

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

type RedisCluster

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

	Spec   RedisClusterSpec   `json:"spec,omitempty"`
	Status RedisClusterStatus `json:"status,omitempty"`
}

RedisCluster is the Schema for the redisclusters API

func (*RedisCluster) DeepCopy

func (in *RedisCluster) DeepCopy() *RedisCluster

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

func (*RedisCluster) DeepCopyInto

func (in *RedisCluster) DeepCopyInto(out *RedisCluster)

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

func (*RedisCluster) DeepCopyObject

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

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

type RedisClusterList

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

RedisClusterList contains a list of RedisCluster

func (*RedisClusterList) DeepCopy

func (in *RedisClusterList) DeepCopy() *RedisClusterList

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

func (*RedisClusterList) DeepCopyInto

func (in *RedisClusterList) DeepCopyInto(out *RedisClusterList)

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

func (*RedisClusterList) DeepCopyObject

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

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

type RedisClusterSpec

type RedisClusterSpec struct {

	// +kubebuilder:validation:Minimum=3
	// The number of leader instances to run
	LeaderCount int `json:"leaderCount,omitempty"`

	// +optional
	// +kubebuilder:validation:Minimum=0
	// The number of followers that each leader will have
	LeaderFollowersCount int `json:"leaderFollowersCount,omitempty"`

	// +kubebuilder:validation:MinLength=2
	// full path of the Redis docker image
	Image string `json:"image"`

	ImagePullSecrets string `json:"imagePullSecrets,omitempty"`

	ImagePullPolicy corev1.PullPolicy `json:"imagePullPolicy,omitempty"`

	RedisContainerResources corev1.ResourceRequirements `json:"redisContainerResources,omitempty"`

	PodLabelSelector PodLabelSelector `json:"podLabelSelector"`

	PodAnnotations map[string]string `json:"podAnnotations,omitempty"`

	Affinity TopologyKeys `json:"affinity,omitempty"`

	RedisContainerEnvVariables []corev1.EnvVar `json:"redisContainerEnvVariables,omitempty"`
}

RedisClusterSpec defines the desired state of RedisCluster

func (*RedisClusterSpec) DeepCopy

func (in *RedisClusterSpec) DeepCopy() *RedisClusterSpec

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

func (*RedisClusterSpec) DeepCopyInto

func (in *RedisClusterSpec) DeepCopyInto(out *RedisClusterSpec)

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

type RedisClusterStatus

type RedisClusterStatus struct {

	// A list of pointers to currently running pods.
	// +optional
	Pods []corev1.ObjectReference `json:"active,omitempty"`

	// the current state of the cluster
	// +optional
	ClusterState string `json:"clusterState,omitempty"`

	// the total expected pod number when
	// the cluster is ready and stable
	// +optional
	TotalExpectedPods int `json:"totalExpectedPods,omitempty"`
}

RedisClusterStatus defines the observed state of RedisCluster

func (*RedisClusterStatus) DeepCopy

func (in *RedisClusterStatus) DeepCopy() *RedisClusterStatus

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

func (*RedisClusterStatus) DeepCopyInto

func (in *RedisClusterStatus) DeepCopyInto(out *RedisClusterStatus)

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

type TopologyKeys

type TopologyKeys struct {
	HostTopologyKey string `json:"hostTopologyKey,omitempty"`
	ZoneTopologyKey string `json:"zoneTopologyKey,omitempty"`
}

TopologyKeys defines the topology keys used inside affinity rules

func (*TopologyKeys) DeepCopy

func (in *TopologyKeys) DeepCopy() *TopologyKeys

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

func (*TopologyKeys) DeepCopyInto

func (in *TopologyKeys) DeepCopyInto(out *TopologyKeys)

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