v1alpha1

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 9, 2018 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	AddToScheme   = SchemeBuilder.AddToScheme
	// SchemeGroupVersion is the group version used to register these objects.
	SchemeGroupVersion = schema.GroupVersion{Group: groupName, Version: version}
)

Functions

This section is empty.

Types

type PodPolicy added in v0.0.2

type PodPolicy struct {
	// Resources is the resource requirements for the containers.
	Resources v1.ResourceRequirements `json:"resources,omitempty"`

	// PersistentVolumeClaimSpec is the spec to describe PVC for the rethinkdb container
	// This field is optional. If no PVC spec, rethinkdb container will use emptyDir as volume
	PersistentVolumeClaimSpec *v1.PersistentVolumeClaimSpec `json:"persistentVolumeClaimSpec,omitempty"`
}

PodPolicy defines the policy for pods owned by rethinkdb operator.

type RethinkDB

type RethinkDB struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata"`
	Spec              RethinkDBSpec   `json:"spec"`
	Status            RethinkDBStatus `json:"status,omitempty"`
}

func (*RethinkDB) DeepCopy

func (in *RethinkDB) DeepCopy() *RethinkDB

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

func (*RethinkDB) DeepCopyInto

func (in *RethinkDB) DeepCopyInto(out *RethinkDB)

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

func (*RethinkDB) DeepCopyObject

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

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

func (*RethinkDB) IsPVEnabled added in v0.0.2

func (r *RethinkDB) IsPVEnabled() bool

func (*RethinkDB) SetDefaults

func (r *RethinkDB) SetDefaults() bool

SetDefaults sets the default vaules for the cuberite spec and returns true if the spec was changed

type RethinkDBList

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

func (*RethinkDBList) DeepCopy

func (in *RethinkDBList) DeepCopy() *RethinkDBList

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

func (*RethinkDBList) DeepCopyInto

func (in *RethinkDBList) DeepCopyInto(out *RethinkDBList)

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

func (*RethinkDBList) DeepCopyObject

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

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

type RethinkDBSpec

type RethinkDBSpec struct {
	// Number of nodes to deploy for a RethinkDB deployment.
	// Default: 1.
	Size int32 `json:"nodes,omitempty"`

	// Base image to use for a RethinkDB deployment.
	BaseImage string `json:"baseImage"`

	// Version of RethinkDB to be deployed.
	Version string `json:"version"`

	// Flag to indicate whether or not a Service will be created for the deployment.
	WithService bool `json:"withService"`

	// Name of ConfigMap to use or create.
	ConfigMapName string `json:"configMapName"`

	// Name of Secret to use or create.
	SecretName string `json:"secretName"`

	// Pod defines the policy for pods owned by rethinkdb operator.
	// This field cannot be updated once the CR is created.
	Pod *PodPolicy `json:"pod,omitempty"`
}

func (*RethinkDBSpec) DeepCopy

func (in *RethinkDBSpec) DeepCopy() *RethinkDBSpec

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

func (*RethinkDBSpec) DeepCopyInto

func (in *RethinkDBSpec) DeepCopyInto(out *RethinkDBSpec)

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

type RethinkDBStatus

type RethinkDBStatus struct {
	// StatefulSet is the name of the rethinkdb StatefulSet
	StatefulSet string `json:"nodes"`

	// Pods are the names of the rethinkdb pods
	Pods []string `json:"nodes"`
}

func (*RethinkDBStatus) DeepCopy

func (in *RethinkDBStatus) DeepCopy() *RethinkDBStatus

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

func (*RethinkDBStatus) DeepCopyInto

func (in *RethinkDBStatus) DeepCopyInto(out *RethinkDBStatus)

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