Documentation
¶
Index ¶
Constants ¶
View Source
const CONFIG_PATH = "/pgo-config/pgo.yaml"
View Source
const DEFAULT_AUTOFAIL_SLEEP_SECONDS = "30"
View Source
const DEFAULT_BACKREST_PORT = 2022
View Source
const DEFAULT_LOG_MIN_DURATION_STATEMENT = "60000"
View Source
const DEFAULT_LOG_STATEMENT = "none"
View Source
const DEFAULT_SERVICE_TYPE = "ClusterIP"
View Source
const LOAD_BALANCER_SERVICE_TYPE = "LoadBalancer"
View Source
const NODEPORT_SERVICE_TYPE = "NodePort"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClusterStruct ¶
type ClusterStruct struct {
CCPImagePrefix string `yaml:"CCPImagePrefix"`
CCPImageTag string `yaml:"CCPImageTag"`
PrimaryNodeLabel string `yaml:"PrimaryNodeLabel"`
ReplicaNodeLabel string `yaml:"ReplicaNodeLabel"`
Policies string `yaml:"Policies"`
LogStatement string `yaml:"LogStatement"`
LogMinDurationStatement string `yaml:"LogMinDurationStatement"`
Metrics bool `yaml:"Metrics"`
Badger bool `yaml:"Badger"`
Port string `yaml:"Port"`
ArchiveTimeout string `yaml:"ArchiveTimeout"`
ArchiveMode string `yaml:"ArchiveMode"`
User string `yaml:"User"`
Database string `yaml:"Database"`
PasswordAgeDays string `yaml:"PasswordAgeDays"`
PasswordLength string `yaml:"PasswordLength"`
Strategy string `yaml:"Strategy"`
Replicas string `yaml:"Replicas"`
ServiceType string `yaml:"ServiceType"`
BackrestPort int `yaml:"BackrestPort"`
Backrest bool `yaml:"Backrest"`
Autofail bool `yaml:"Autofail"`
AutofailReplaceReplica bool `yaml:"AutofailReplaceReplica"`
PgmonitorPassword string `yaml:"PgmonitorPassword"`
}
type PgoConfig ¶
type PgoConfig struct {
BasicAuth string `yaml:"BasicAuth"`
Cluster ClusterStruct `yaml:"Cluster"`
Pgo PgoStruct `yaml:"Pgo"`
ContainerResources map[string]ContainerResourcesStruct `yaml:"ContainerResources"`
PrimaryStorage string `yaml:"PrimaryStorage"`
XlogStorage string `yaml:"XlogStorage"`
BackupStorage string `yaml:"BackupStorage"`
ReplicaStorage string `yaml:"ReplicaStorage"`
BackrestStorage string `yaml:"BackrestStorage"`
Storage map[string]StorageStruct `yaml:"Storage"`
DefaultContainerResources string `yaml:"DefaultContainerResources"`
DefaultLoadResources string `yaml:"DefaultLoadResources"`
DefaultLspvcResources string `yaml:"DefaultLspvcResources"`
DefaultRmdataResources string `yaml:"DefaultRmdataResources"`
DefaultBackupResources string `yaml:"DefaultBackupResources"`
DefaultBadgerResources string `yaml:"DefaultBadgerResources"`
DefaultPgpoolResources string `yaml:"DefaultPgpoolResources"`
DefaultPgbouncerResources string `yaml:"DefaultPgbouncerResources"`
}
func (*PgoConfig) GetContainerResource ¶
func (c *PgoConfig) GetContainerResource(name string) (crv1.PgContainerResources, error)
func (*PgoConfig) GetStorageSpec ¶
func (c *PgoConfig) GetStorageSpec(name string) (crv1.PgStorageSpec, error)
type PgoStruct ¶
type PgoStruct struct {
PreferredFailoverNode string `yaml:"PreferredFailoverNode"`
AutofailSleepSeconds string `yaml:"AutofailSleepSeconds"`
AutofailSleepSecondsValue int
Audit bool `yaml:"Audit"`
LSPVCTemplate string `yaml:"LSPVCTemplate"`
LoadTemplate string `yaml:"LoadTemplate"`
COImagePrefix string `yaml:"COImagePrefix"`
COImageTag string `yaml:"COImageTag"`
}
type StorageStruct ¶
type StorageStruct struct {
AccessMode string `yaml:"AccessMode"`
Size string `yaml:"Size"`
StorageType string `yaml:"StorageType"`
StorageClass string `yaml:"StorageClass"`
Fsgroup string `yaml:"Fsgroup"`
SupplementalGroups string `yaml:"SupplementalGroups"`
MatchLabels string `yaml:"MatchLabels"`
}
Click to show internal directories.
Click to hide internal directories.