defaults

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2026 License: Apache-2.0 Imports: 11 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	ImageInitContainer = "perconalab/percona-server-mysql-operator:main"
	ImageMySQL         = "perconalab/percona-server-mysql-operator:main-psmysql8.4"
	ImageHAProxy       = "perconalab/percona-server-mysql-operator:main-haproxy"
	ImageRouter        = "perconalab/percona-server-mysql-operator:main-router8.4"
	ImageOrchestrator  = "perconalab/percona-server-mysql-operator:main-orchestrator"
	ImagePMM           = "perconalab/pmm-client:3-dev-latest"
	ImageBackup        = "perconalab/percona-server-mysql-operator:main-backup8.4"
	ImageBinlogServer  = "perconalab/percona-binlog-server:0.3.1"
	ImageToolkit       = "perconalab/percona-server-mysql-operator:main-toolkit"
)
View Source
const (
	NameCluster = "ps-cluster1"
	NameBackup  = "backup1"
	NameRestore = "restore1"
)

Variables

View Source
var (
	Labels = map[string]string{
		"rack": "rack-22",
	}
	Annotations = map[string]string{
		"service.beta.kubernetes.io/aws-load-balancer-backend-protocol": "tcp",
		"service.beta.kubernetes.io/aws-load-balancer-type":             "nlb",
	}
	NodeSelector = map[string]string{
		"topology.kubernetes.io/zone": "us-east-1a",
	}
	VerifyTLS         = ptr.To(true)
	RuntimeClassName  = ptr.To("image-rc")
	SchedulerName     = "default-scheduler"
	PriorityClassName = "high-priority"
	SourcePod         = mysql.PodName(&apiv1.PerconaServerMySQL{ObjectMeta: metav1.ObjectMeta{Name: NameCluster}}, 1)
)

Functions

func FromPresets

func FromPresets(cr any) error

FromPresets assigns default values to fields in provided custom resource based on their types. The internal presets slice defines the default value associated with each type.

func ManualCluster

func ManualCluster(cr *apiv1.PerconaServerMySQL)

ManualCluster sets default values for empty fields in example cr.yaml that are not set by CheckNSetDefaults and cannot be set via PresetDefaults.

Types

This section is empty.

Jump to

Keyboard shortcuts

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