reaper

package
v1.0.0-alpha.3 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultImageRepository = "thelastpickle"
	DefaultImageName       = "cassandra-reaper"
	DefaultVersion         = "3.1.0"
)
View Source
const (
	DatacenterAvailabilityLocal = "LOCAL"
	DatacenterAvailabilityEach  = "EACH"
)

Variables

View Source
var DisableAuthVar = &corev1.EnvVar{
	Name:  envVarEnableAuth,
	Value: "false",
}
View Source
var EnableAuthVar = &corev1.EnvVar{
	Name:  envVarEnableAuth,
	Value: "true",
}
View Source
var EnableCassAuthVar = &corev1.EnvVar{
	Name:  envVarEnableCassAuth,
	Value: "true",
}

Functions

func AddReaperSettingsToDcConfig

func AddReaperSettingsToDcConfig(reaperTemplate *reaperapi.ReaperClusterTemplate, dcConfig *cassandra.DatacenterConfig, authEnabled bool)

func Coalesce

func Coalesce(clusterTemplate *api.ReaperClusterTemplate, dcTemplate *api.ReaperDatacenterTemplate) *api.ReaperClusterTemplate

Coalesce combines the cluster and dc templates with override semantics. If a property is defined in both templates, the dc-level property takes precedence.

func DefaultJmxUserSecretName

func DefaultJmxUserSecretName(clusterName string) string

DefaultJmxUserSecretName generates a name for the Reaper JMX user, that is derived from the Cassandra cluster name.

func DefaultResourceName

func DefaultResourceName(dc *cassdcapi.CassandraDatacenter) string

DefaultResourceName generates a name for a new Reaper resource that is derived from the Cassandra cluster and DC names.

func DefaultUiSecretName

func DefaultUiSecretName(clusterName string) string

func DefaultUserSecretName

func DefaultUserSecretName(clusterName string) string

DefaultUserSecretName generates a name for the Reaper CQL user, that is derived from the Cassandra cluster name.

func GetAuthEnvironmentVars

func GetAuthEnvironmentVars(secret *corev1.Secret, authType string) (*corev1.EnvVar, *corev1.EnvVar, error)

func GetServiceName

func GetServiceName(reaperName string) string

func NewDeployment

func NewDeployment(reaper *api.Reaper, dc *cassdcapi.CassandraDatacenter, authVars ...*corev1.EnvVar) *appsv1.Deployment

func NewService

func NewService(key types.NamespacedName, reaper *api.Reaper) *corev1.Service

Types

type Manager

type Manager interface {
	Connect(ctx context.Context, reaper *api.Reaper, username, password string) error
	AddClusterToReaper(ctx context.Context, cassdc *cassdcapi.CassandraDatacenter) error
	VerifyClusterIsConfigured(ctx context.Context, cassdc *cassdcapi.CassandraDatacenter) (bool, error)
}

func NewManager

func NewManager() Manager

Jump to

Keyboard shortcuts

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