helpers

package
v0.0.0-...-8011f81 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2021 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsAPersistentVolumeClaim

func IsAPersistentVolumeClaim(storage v1alpha1.Storage) bool

func IsAReservedEnvVar

func IsAReservedEnvVar(envVar string) bool

IsAReservedEnvVar is used to determine if an Environment Variable has been reserved.

func IsAReservedVolumePath

func IsAReservedVolumePath(path string) bool

func NewControllerRef

func NewControllerRef(c *v1alpha1.Cassandra) metav1.OwnerReference

func SetDefaultsForCassandra

func SetDefaultsForCassandra(clusterDefinition *v1alpha1.Cassandra, imageDefaultScheme ImageScheme)

func SnapshotCleanupPropertiesUpdated

func SnapshotCleanupPropertiesUpdated(snapshot1 *v1alpha1.Snapshot, snapshot2 *v1alpha1.Snapshot) bool

SnapshotCleanupPropertiesUpdated returns false snapshot1 and snapshot2 have the same retention policy

func SnapshotPropertiesUpdated

func SnapshotPropertiesUpdated(snapshot1 *v1alpha1.Snapshot, snapshot2 *v1alpha1.Snapshot) bool

SnapshotPropertiesUpdated returns false when snapshot1 and snapshot2 have the same properties disregarding retention policy

Types

type ImageScheme

type ImageScheme interface {
	// contains filtered or unexported methods
}

ImageScheme is used to determine default names for operator components docker images

type MatchedRack

type MatchedRack struct {
	Old v1alpha1.Rack
	New v1alpha1.Rack
}

func MatchRacks

func MatchRacks(oldCluster, newCluster *v1alpha1.CassandraSpec) (addedRacks []v1alpha1.Rack, matchedRacks []MatchedRack, removedRacks []v1alpha1.Rack)

type TemplatedImageScheme

type TemplatedImageScheme struct {
	ImageVersion   string
	RepositoryPath string
}

TemplatedImageScheme constructs an image name based on a version and repository path

Jump to

Keyboard shortcuts

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