commons

package
v0.0.0-...-d13e39c Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2025 License: UPL-1.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OraImagePullPolicy          = corev1.PullAlways
	OrainitCmd1                 = "set -ex;" + "touch /tmp/test_cmd1.txt"
	OrainitCmd5                 = "set -ex;" + "[[ `hostname` =~ -([0-9]+)$ ]] || exit 1 ;" + "ordinal=${BASH_REMATCH[1]};" + "cp /mnt/config-map/envfile  /mnt/conf.d/; cat /mnt/conf.d/envfile | awk -v env_var=$ordinal -F '=' '{print \"export \" $1\"=\"$2 env_var }' > /tmp/test.env; mv /tmp/test.env /mnt/conf.d/envfile"
	OraConfigMapMount           = "/mnt/config-map"
	OraEnvFileMount             = "/mnt/conf.d"
	OraSubDomain                = "racnode"
	OraEnvFile                  = "/etc/rac_env_vars"
	OraRacSshSecretMount        = "/mnt/.ssh"
	OraGiRsp                    = "/mnt/gridrsp"
	OraDbRsp                    = "/mnt/dbrsp"
	OraEnvVars                  = "/etc/rac_env_vars"
	OraNodeKey                  = "kubernetes.io/hostname"
	OraOperatorKey              = "In"
	OraShm                      = "/dev/shm"
	OraRacDbPwdFileSecretMount  = "/mnt/.dbsecrets"
	OraRacDbKeyFileSecretMount  = "/mnt/.dbsecrets"
	OraRacTdePwdFileSecretMount = "/mnt/.tdesecrets"
	OraRacTdeKeyFileSecretMount = "/mnt/.tdesecrets"
	OraStage                    = "/mnt/stage"
	OraBootVol                  = "/boot"
	OraSwLocation               = "/u01"
	OraScriptMount              = "/opt/scripts/startup/scripts"
	OraSSHPrivKey               = "/mnt/.ssh/ssh-privkey"
	OraSSHPubKey                = "/mnt/.ssh/ssh-pubkey"
	OraSwStageLocation          = "/mnt/stage/software"
	OraRuPatchStageLocation     = "/mnt/stage/rupatch"
	OraOPatchStageLocation      = "/mnt/stage/opatch"
	OraDBPort                   = 1521
	OraLsnrPort                 = 1522
	OraLocalOnsPort             = 6200
	OraSSHPort                  = 22
	OraOemPort                  = 8080
	OraDBUser                   = "oracle"
	OraGridUser                 = "grid"
)

Constants for RAC StatefulSet & Volumes

Variables

View Source
var ServiceFailoverType = [...]string{"NONE", "SESSION", "SELECT", "TRANSACTION", "AUTO"}

Functions

func CheckStatusFlag

func CheckStatusFlag(flagStr string) bool

func CheckStringInList

func CheckStringInList(str1 string, arr []string) bool

func Contains

func Contains(slice []string, str string) bool

Contains checks if a string is present in a slice.

func GetDBUser

func GetDBUser() string

func GetServiceCardinality

func GetServiceCardinality() []string

func GetServiceFailoverType

func GetServiceFailoverType() []string

func GetServiceResetState

func GetServiceResetState() []string

func GetServiceRole

func GetServiceRole() []string

func GetTafPolicy

func GetTafPolicy() []string

func GetValue

func GetValue(variable string, subkey string) string

func GetWatchNamespaces

func GetWatchNamespaces() map[string]bool

func ServiceRole

func ServiceRole() []string

Types

This section is empty.

Jump to

Keyboard shortcuts

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