v1alpha1

package
v0.0.0-...-d146c71 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the cassandra v1alpha1 API group +kubebuilder:object:generate=true +groupName=cassandra.apache.org

Index

Constants

View Source
const (
	// ClusterLabel is the operator's label for the cluster name
	ClusterLabel = "cassandra.apache.org/cluster"

	ManagedByLabel = "app.kubernetes.io/managed-by"

	ManagedByLabelValue = "cassandra-operator"

	// SeedNodeLabel is the operator's label for the seed node state
	SeedNodeLabel = "cassandra.apache.org/seed-node"

	DefaultLivenessProbeInitialDelay int32 = 120
	DefaultLivenessProbeTimeout      int32 = 20
	DefaultLivenessProbePeriod       int32 = 10

	DefaultReadinessProbeInitialDelay int32 = 60
	DefaultReadinessProbeTimeout      int32 = 10
	DefaultReadinessProbePeriod       int32 = 10
)

Variables

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

func AddManagedByLabel

func AddManagedByLabel(m map[string]string)

func HasManagedByCassandraOperatorLabel

func HasManagedByCassandraOperatorLabel(m map[string]string) bool

Types

type CassandraCluster

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

	Spec   CassandraClusterSpec   `json:"spec,omitempty"`
	Status CassandraClusterStatus `json:"status,omitempty"`
}

CassandraCluster is the Schema for the cassandraclusters API

func (*CassandraCluster) DeepCopy

func (in *CassandraCluster) DeepCopy() *CassandraCluster

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

func (*CassandraCluster) DeepCopyInto

func (in *CassandraCluster) DeepCopyInto(out *CassandraCluster)

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

func (*CassandraCluster) DeepCopyObject

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

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

func (*CassandraCluster) GetAllPodsServiceName

func (c *CassandraCluster) GetAllPodsServiceName() string

func (*CassandraCluster) GetClusterLabels

func (c *CassandraCluster) GetClusterLabels() map[string]string

func (*CassandraCluster) GetConfigAsJSON

func (c *CassandraCluster) GetConfigAsJSON() (string, error)

GetConfigAsJSON gets a JSON-encoded string suitable for passing to configBuilder

Source: http://github.com/jsanda/cass-operator/blob/master/operator/pkg/apis/cassandra/v1beta1/cassandradatacenter_types.go#L538-L538

func (*CassandraCluster) GetConfigBuilderImage

func (c *CassandraCluster) GetConfigBuilderImage() string

func (*CassandraCluster) GetSeedsServiceName

func (c *CassandraCluster) GetSeedsServiceName() string

type CassandraClusterList

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

CassandraClusterList contains a list of CassandraCluster

func (*CassandraClusterList) DeepCopy

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

func (*CassandraClusterList) DeepCopyInto

func (in *CassandraClusterList) DeepCopyInto(out *CassandraClusterList)

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

func (*CassandraClusterList) DeepCopyObject

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

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

type CassandraClusterSpec

type CassandraClusterSpec struct {
	Name string `json:"name"`

	Datacenters []Datacenter `json:"datacenters,omitempty"`

	// +kubebuilder:validation:PreserveUnknownFields=true
	Config json.RawMessage `json:"config,omitempty"`
}

CassandraClusterSpec defines the desired state of CassandraCluster

func (*CassandraClusterSpec) DeepCopy

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

func (*CassandraClusterSpec) DeepCopyInto

func (in *CassandraClusterSpec) DeepCopyInto(out *CassandraClusterSpec)

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

type CassandraClusterStatus

type CassandraClusterStatus struct {
}

CassandraClusterStatus defines the observed state of CassandraCluster

func (*CassandraClusterStatus) DeepCopy

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

func (*CassandraClusterStatus) DeepCopyInto

func (in *CassandraClusterStatus) DeepCopyInto(out *CassandraClusterStatus)

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

type Datacenter

type Datacenter struct {
	Name string `json:"name,omitempty"`

	NodesPerRack int32 `json:"nodesPerRack,omitempty"`

	Racks []Rack `json:"racks,omitempty"`
}

func (*Datacenter) DeepCopy

func (in *Datacenter) DeepCopy() *Datacenter

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

func (*Datacenter) DeepCopyInto

func (in *Datacenter) DeepCopyInto(out *Datacenter)

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

type Rack

type Rack struct {
	Name string `json:"name,omitempty"`
}

func (*Rack) DeepCopy

func (in *Rack) DeepCopy() *Rack

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

func (*Rack) DeepCopyInto

func (in *Rack) DeepCopyInto(out *Rack)

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