config

package
v1.21.0 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2025 License: Apache-2.0 Imports: 6 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"
)

Variables

This section is empty.

Functions

This section is empty.

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) 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