config

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AppName = "valkey-operator"

	// DNS
	LocalInjectName = "local.inject"
)
View Source
const (
	ImageVersionKeyPrefix = "buf.red/imageversions-"
)

Variables

This section is empty.

Functions

func BuildImageVersionKey

func BuildImageVersionKey(typ string) string

func GetFullImageURL

func GetFullImageURL(path string, tag string) string

func GetOperatorVersion

func GetOperatorVersion() string

func GetValkeyExporterImage

func GetValkeyExporterImage(obj v1.Object) string

func GetValkeyHelperImage

func GetValkeyHelperImage(obj v1.Object) string

func GetValkeyImageByVersion

func GetValkeyImageByVersion(version string) string

func GetValkeyVersion

func GetValkeyVersion(image string) string

func Getenv

func Getenv(name string, defaults ...string) string

func LoadValkeyVersionMap

func LoadValkeyVersionMap() (map[string]string, error)

Types

type EventReason

type EventReason = string
const (
	EventPause          EventReason = "Paused"
	EventCreateUser     EventReason = "CreatedUser"
	EventUpdateUser     EventReason = "UpdatedUser"
	EventUpdatePassword EventReason = "UpdatedPassword"
	EventCleanResource  EventReason = "CleanResource"
	EventFailover       EventReason = "Failover"

	EventSetupMaster   EventReason = "SetupMaster"
	EventResetReplica  EventReason = "ResetReplica"
	EventAllocateSlots EventReason = "AllocatedSlots"
	EventAssignSlots   EventReason = "AssignSlots"
	EventRebalance     EventReason = "Rebalancing"
)

Jump to

Keyboard shortcuts

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