environment

package
v0.38.1 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OperatorEnv added in v0.0.26

type OperatorEnv struct {
	MariadbOperatorName          string `env:"MARIADB_OPERATOR_NAME,required"`
	MariadbOperatorNamespace     string `env:"MARIADB_OPERATOR_NAMESPACE,required"`
	MariadbOperatorSAPath        string `env:"MARIADB_OPERATOR_SA_PATH,required"`
	MariadbOperatorImage         string `env:"MARIADB_OPERATOR_IMAGE,required"`
	RelatedMariadbImage          string `env:"RELATED_IMAGE_MARIADB,required"`
	RelatedMaxscaleImage         string `env:"RELATED_IMAGE_MAXSCALE,required"`
	RelatedExporterImage         string `env:"RELATED_IMAGE_EXPORTER,required"`
	RelatedExporterMaxscaleImage string `env:"RELATED_IMAGE_EXPORTER_MAXSCALE,required"`
	MariadbGaleraLibPath         string `env:"MARIADB_GALERA_LIB_PATH,required"`
	MariadbDefaultVersion        string `env:"MARIADB_DEFAULT_VERSION,required"`
	WatchNamespace               string `env:"WATCH_NAMESPACE"`
}

func GetOperatorEnv added in v0.0.26

func GetOperatorEnv(ctx context.Context) (*OperatorEnv, error)

func (*OperatorEnv) CurrentNamespaceOnly added in v0.0.32

func (e *OperatorEnv) CurrentNamespaceOnly() (bool, error)

func (*OperatorEnv) WatchNamespaces added in v0.0.26

func (e *OperatorEnv) WatchNamespaces() ([]string, error)

type PodEnvironment added in v0.0.26

type PodEnvironment struct {
	ClusterName         string `env:"CLUSTER_NAME,required"`
	PodName             string `env:"POD_NAME,required"`
	PodNamespace        string `env:"POD_NAMESPACE,required"`
	PodIP               string `env:"POD_IP,required"`
	MariadbName         string `env:"MARIADB_NAME,required"`
	MariadbRootPassword string `env:"MARIADB_ROOT_PASSWORD,required"`
	MariadbPort         string `env:"MYSQL_TCP_PORT,required"`
	TLSEnabled          string `env:"TLS_ENABLED"`
	TLSCACertPath       string `env:"TLS_CA_CERT_PATH"`
	TLSServerCertPath   string `env:"TLS_SERVER_CERT_PATH"`
	TLSServerKeyPath    string `env:"TLS_SERVER_KEY_PATH"`
	TLSClientCertPath   string `env:"TLS_CLIENT_CERT_PATH"`
	TLSClientKeyPath    string `env:"TLS_CLIENT_KEY_PATH"`
}

func GetPodEnv added in v0.0.26

func GetPodEnv(ctx context.Context) (*PodEnvironment, error)

func (*PodEnvironment) IsTLSEnabled added in v0.37.0

func (e *PodEnvironment) IsTLSEnabled() (bool, error)

func (*PodEnvironment) Port added in v0.0.26

func (e *PodEnvironment) Port() (int32, error)

Jump to

Keyboard shortcuts

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

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy