constants

package
v1.2.7 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2020 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// SeedLabel determines if a member is a seed or not.
	SeedLabel = "cassandra.rook.io/seed"

	// DecommissionLabel expresses the intent to decommission
	// the specific member. The presence of the label expresses
	// the intent to decommission. If the value is true, it means
	// the member has finished decommissioning.
	// Values: {true, false}
	DecommissionLabel = "cassandra.rook.io/decommissioned"

	// DeveloperModeAnnotation is present when the user wishes
	// to bypass production-readiness checks and start the database
	// either way. Currently useful for scylla, may get removed
	// once configMapName field is implemented in Cluster CRD.
	DeveloperModeAnnotation = "cassandra.rook.io/developer-mode"

	LabelValueTrue  = "true"
	LabelValueFalse = "false"
)

These labels are only used on the ClusterIP services acting as each member's identity (static ip). Each of these labels is a record of intent to do something. The controller sets these labels and each member watches for them and takes the appropriate actions.

See the sidecar design doc for more details.

View Source
const (
	ClusterNameLabel    = "cassandra.rook.io/cluster"
	DatacenterNameLabel = "cassandra.rook.io/datacenter"
	RackNameLabel       = "cassandra.rook.io/rack"

	AppName         = "rook-cassandra"
	OperatorAppName = "rook-cassandra-operator"
)

Generic Labels used on objects created by the operator.

View Source
const (
	PodIPEnvVar = "POD_IP"

	ResourceLimitCPUEnvVar    = "CPU_LIMIT"
	ResourceLimitMemoryEnvVar = "MEMORY_LIMIT"
)

Environment Variable Names

View Source
const (
	SharedDirName = "/mnt/shared"
	PluginDirName = SharedDirName + "/" + "plugins"

	DataDirCassandra = "/var/lib/cassandra"
	DataDirScylla    = "/var/lib/scylla"

	JolokiaJarName = "jolokia.jar"
	JolokiaPort    = 8778
	JolokiaContext = "jolokia"

	ReadinessProbePath = "/readyz"
	LivenessProbePath  = "/healthz"
	ProbePort          = 8080
)

Configuration Values

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL