cluster

package
v0.0.0-...-4400c5e Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 43 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Copy

func Copy(dst, src interface{}) error

Copy makes a deep copy from src into dst.

func CreateDummyAerospikeCluster

func CreateDummyAerospikeCluster(
	clusterNamespacedName types.NamespacedName, size int32,
) *asdbv1.AerospikeCluster

CreateDummyAerospikeCluster func is a public variant of createDummyAerospikeCluster Remove this when createDummyAerospikeCluster will be made public

func DeleteCluster

func DeleteCluster(
	k8sClient client.Client, ctx goctx.Context,
	aeroCluster *asdbv1.AerospikeCluster,
) error

DeleteCluster is the public variant of deleteCluster Remove this when deleteCluster will be made public

func DeployCluster

func DeployCluster(
	k8sClient client.Client, ctx goctx.Context,
	aeroCluster *asdbv1.AerospikeCluster,
) error

DeployCluster is the public variant of deployCluster Remove this when deployCluster will be made public

func UpdateClusterImage

func UpdateClusterImage(
	aerocluster *asdbv1.AerospikeCluster, image string,
) error

func ValidateAttributes

func ValidateAttributes(
	actual []map[string]string, expected map[string]string,
) bool

Types

type AerospikeConfSpec

type AerospikeConfSpec struct {
	// contains filtered or unexported fields
}

func NewAerospikeConfSpec

func NewAerospikeConfSpec(image string) (*AerospikeConfSpec, error)

type CloudProvider

type CloudProvider int
const (
	CloudProviderUnknown CloudProvider = iota
	CloudProviderAWS
	CloudProviderGCP
)

type FromSecretPasswordProvider

type FromSecretPasswordProvider struct {
	// contains filtered or unexported fields
}

FromSecretPasswordProvider provides user password from the secret provided in AerospikeUserSpec. TODO duplicated from controller_helper

func (FromSecretPasswordProvider) Get

Get returns the password for the username using userSpec.

func (FromSecretPasswordProvider) GetDefaultPassword

This function is not used in the test code. This is just a dummy implementation. Tests do not make client call till cluster is up and reconciled. DefaultPassword only comes into play when the cluster is being created.

type RackState

type RackState struct {
	Rack asdbv1.Rack
	Size int
}

Jump to

Keyboard shortcuts

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