Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the cassandra v1alpha1 API group +kubebuilder:object:generate=true +groupName=cassandra.apache.org
Index ¶
- Constants
- Variables
- func AddManagedByLabel(m map[string]string)
- func HasManagedByCassandraOperatorLabel(m map[string]string) bool
- type CassandraCluster
- func (in *CassandraCluster) DeepCopy() *CassandraCluster
- func (in *CassandraCluster) DeepCopyInto(out *CassandraCluster)
- func (in *CassandraCluster) DeepCopyObject() runtime.Object
- func (c *CassandraCluster) GetAllPodsServiceName() string
- func (c *CassandraCluster) GetClusterLabels() map[string]string
- func (c *CassandraCluster) GetConfigAsJSON() (string, error)
- func (c *CassandraCluster) GetConfigBuilderImage() string
- func (c *CassandraCluster) GetSeedsServiceName() string
- type CassandraClusterList
- type CassandraClusterSpec
- type CassandraClusterStatus
- type Datacenter
- type Rack
Constants ¶
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 ¶
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 ¶
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
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 ¶
func (in *CassandraClusterList) DeepCopy() *CassandraClusterList
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 ¶
func (in *CassandraClusterSpec) DeepCopy() *CassandraClusterSpec
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 ¶
func (in *CassandraClusterStatus) DeepCopy() *CassandraClusterStatus
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Rack.
func (*Rack) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.