config

package
v1.23.0 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GigaByte                 int64   = 1 << 30
	MinWiredTigerCacheSizeGB float64 = 0.25

	// MongodDataVolClaimName is a PVC Claim name
	MongodDataVolClaimName = "mongod-data"
	// MongodContainerDataDir is a mongo data path in container
	MongodContainerDataDir     = "/data/db"
	MongodContainerDataLogsDir = "/data/db/logs"
	BinVolumeName              = "bin"
	BinMountPath               = "/opt/percona"

	MongoshHomeVolumeName = "mongosh"
	MongoshHomeMountPath  = "/.mongodb"

	LDAPConfVolClaimName = "ldap"
	LDAPConfDir          = "/etc/openldap"
	LDAPTLSVolClaimName  = "ldap-tls"
	LDAPTLSDir           = "/etc/openldap/certs"

	SSLDir           = "/etc/mongodb-ssl"
	SSLInternalDir   = "/etc/mongodb-ssl-internal"
	VaultDir         = "/etc/mongodb-vault"
	MongodConfigDir  = "/etc/mongodb-config"
	MongosConfigDir  = "/etc/mongos-config"
	MongodSecretsDir = "/etc/mongodb-secrets"
	MongodPortName   = "mongodb"
	MongosPortName   = "mongos"

	HookscriptVolClaimName = "hookscript"
	HookscriptMountPath    = "/opt/percona/hookscript"

	PBMHookscriptVolClaimName = "pbm-hookscript"
	PBMHookscriptMountPath    = "/opt/percona/pbm-hookscript"
)

Variables

This section is empty.

Functions

func HashConfigMap added in v1.23.0

func HashConfigMap(cm *corev1.ConfigMap) (string, error)

HashConfigMap returns a stable MD5 hex digest of the ConfigMap's data. Use it as a pod-template annotation so a content change rolls the pods.

Types

type CustomConfig

type CustomConfig struct {
	Type    VolumeSourceType
	HashHex string
}

type HashableObject

type HashableObject interface {
	GetRuntimeObject() client.Object
	GetHashHex() (string, error)
}

func VolumeSourceTypeToObj

func VolumeSourceTypeToObj(s VolumeSourceType) HashableObject

type VolumeSourceType

type VolumeSourceType int
const (
	VolumeSourceNone VolumeSourceType = iota
	VolumeSourceConfigMap
	VolumeSourceSecret
)

func (VolumeSourceType) IsUsable

func (s VolumeSourceType) IsUsable() bool

func (VolumeSourceType) String

func (s VolumeSourceType) String() string

func (VolumeSourceType) VolumeProjection added in v1.22.0

func (s VolumeSourceType) VolumeProjection(name string) corev1.VolumeProjection

func (VolumeSourceType) VolumeSource

func (s VolumeSourceType) VolumeSource(name string) corev1.VolumeSource

Jump to

Keyboard shortcuts

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