Documentation
¶
Index ¶
- Constants
- Variables
- func GetAffinity(nodeLabelKey, nodeLabelValue string, affoperator string) string
- func GetBadgerAddon(clientset *kubernetes.Clientset, namespace string, spec *crv1.PgclusterSpec, ...) string
- func GetCollectAddon(clientset *kubernetes.Clientset, namespace string, spec *crv1.PgclusterSpec) string
- func GetConfVolume(clientset *kubernetes.Clientset, cl *crv1.Pgcluster, namespace string) string
- func GetContainerResourcesJSON(resources *crv1.PgContainerResources) string
- func GetLabelsFromMap(labels map[string]string) string
- func GetPgbackrestEnvVars(backrestEnabled, clusterName, depName, port string) string
- func GetPgbouncerEnvVar(psw string) string
- func GetPgmonitorEnvVars(metricsEnabled string) string
- func GetPrimaryLabels(serviceName string, ClusterName string, replicaFlag bool, ...) map[string]string
- func GetReplicaAffinity(clusterLabels, replicaLabels map[string]string) string
- func Initialize()
- type DeploymentTemplateFields
- type PgbackrestEnvVarsTemplateFields
- type PgmonitorEnvVarsTemplateFields
Constants ¶
const AFFINITY_NOTINOperator = "NotIn"
const AffinityInOperator = "In"
consolidate with cluster.affinityTemplateFields
const AffinityTemplate1Path = "/pgo-config/affinity.json"
const BadgerTemplate1Path = "/pgo-config/pgbadger.json"
const CollectTemplate1Path = "/pgo-config/collect.json"
const ContainerResourcesTemplate1Path = "/pgo-config/container-resources.json"
const DeploymentTemplate1Path = "/pgo-config/cluster-deployment-1.json"
const PVCMatchLabelsPath = "/pgo-config/pvc-matchlabels.json"
const PVCPath = "/pgo-config/pvc.json"
const PVCSCPath = "/pgo-config/pvc-storageclass.json"
const PgbouncerConfTemplatePath = "/pgo-config/pgbouncer.ini"
const PgbouncerHBATemplatePath = "/pgo-config/pgbouncer_hba.conf"
const PgbouncerTemplatePath = "/pgo-config/pgbouncer-template.json"
const PgbouncerUsersTemplatePath = "/pgo-config/users.txt"
const PgpoolConfTemplatePath = "/pgo-config/pgpool.conf"
const PgpoolHBATemplatePath = "/pgo-config/pool_hba.conf"
const PgpoolPasswdTemplatePath = "/pgo-config/pool_passwd"
const PgpoolTemplatePath = "/pgo-config/pgpool-template.json"
const ServiceTemplate1Path = "/pgo-config/cluster-service-1.json"
const UpgradeJobPath = "/pgo-config/cluster-upgrade-job-1.json"
Variables ¶
var AffinityTemplate1 *template.Template
var BackrestRestoreConfigMapTemplate *template.Template
var BackrestRestorejobTemplate *template.Template
var BackrestjobTemplate *template.Template
var BadgerTemplate1 *template.Template
var BenchmarkJobTemplate *template.Template
var CRUNCHY_DEBUG bool
var CollectTemplate1 *template.Template
var ContainerResourcesTemplate1 *template.Template
var DeploymentTemplate1 *template.Template
var IngestjobTemplate *template.Template
var JobTemplate *template.Template
var NAMESPACE string
var PVCMatchLabelsTemplate *template.Template
var PVCStorageClassTemplate *template.Template
var PVCTemplate *template.Template
var PgDumpBackupJobTemplate *template.Template
var PgRestoreJobTemplate *template.Template
var PgbackrestEnvVarsTemplate *template.Template
var PgbouncerConfTemplate *template.Template
var PgbouncerHBATemplate *template.Template
var PgbouncerTemplate *template.Template
var PgbouncerUsersTemplate *template.Template
var PgmonitorEnvVarsTemplate *template.Template
var Pgo config.PgoConfig
var PgoBackrestRepoServiceTemplate *template.Template
var PgoBackrestRepoTemplate *template.Template
var PgpoolConfTemplate *template.Template
var PgpoolHBATemplate *template.Template
var PgpoolPasswdTemplate *template.Template
var PgpoolTemplate *template.Template
var ReplicadeploymentTemplate1 *template.Template
var RmdatajobTemplate *template.Template
var ServiceTemplate1 *template.Template
var UpgradeJobTemplate1 *template.Template
Functions ¶
func GetAffinity ¶
GetAffinity ...
func GetBadgerAddon ¶
func GetBadgerAddon(clientset *kubernetes.Clientset, namespace string, spec *crv1.PgclusterSpec, pgbadger_target string) string
func GetCollectAddon ¶
func GetCollectAddon(clientset *kubernetes.Clientset, namespace string, spec *crv1.PgclusterSpec) string
func GetConfVolume ¶
consolidate with cluster.GetConfVolume
func GetContainerResourcesJSON ¶
func GetContainerResourcesJSON(resources *crv1.PgContainerResources) string
GetContainerResources ...
func GetLabelsFromMap ¶
needs to be consolidated with cluster.GetLabelsFromMap GetLabelsFromMap ...
func GetPgbackrestEnvVars ¶
consolidate with cluster.GetPgbackrestEnvVars
func GetPgbouncerEnvVar ¶
func GetPgmonitorEnvVars ¶
func GetPrimaryLabels ¶
func GetPrimaryLabels(serviceName string, ClusterName string, replicaFlag bool, userLabels map[string]string) map[string]string
GetPrimaryLabels ...
func GetReplicaAffinity ¶
GetReplicaAffinity ... use NotIn as an operator when a node-label is not specified on the replica, use the node labels from the primary in this case use In as an operator when a node-label is specified on the replica use the node labels from the replica in this case
func Initialize ¶
func Initialize()
Types ¶
type DeploymentTemplateFields ¶
type DeploymentTemplateFields struct {
Name string
ClusterName string
Port string
PgMode string
LogStatement string
LogMinDurationStatement string
CCPImagePrefix string
CCPImageTag string
CCPImage string
Database string
DeploymentLabels string
PodLabels string
DataPathOverride string
ArchiveMode string
ArchivePVCName string
ArchiveTimeout string
XLOGDir string
BackrestPVCName string
PVCName string
BackupPVCName string
BackupPath string
RootSecretName string
UserSecretName string
PrimarySecretName string
SecurityContext string
ContainerResources string
NodeSelector string
ConfVolume string
CollectAddon string
BadgerAddon string
PgbackrestEnvVars string
PgmonitorEnvVars string
PgbouncerEnvVars string
//next 2 are for the replica deployment only
Replicas string
PrimaryHost string
// PgBouncer deployment only
PgbouncerPass string
}
needs to be consolidated with cluster.DeploymentTemplateFields DeploymentTemplateFields ...
type PgmonitorEnvVarsTemplateFields ¶
type PgmonitorEnvVarsTemplateFields struct {
PgmonitorPassword string
}
Directories
¶
| Path | Synopsis |
|---|---|
|
Package cluster holds the cluster CRD logic and definitions A cluster is comprised of a primary service, replica service, primary deployment, and replica deployment Package cluster holds the cluster CRD logic and definitions A cluster is comprised of a primary service, replica service, primary deployment, and replica deployment Package cluster holds the cluster CRD logic and definitions A cluster is comprised of a primary service, replica service, primary deployment, and replica deployment Package cluster holds the cluster CRD logic and definitions A cluster is comprised of a primary service, replica service, primary deployment, and replica deployment Package cluster holds the cluster CRD logic and definitions A cluster is comprised of a primary service, replica service, primary deployment, and replica deployment Package cluster holds the cluster CRD logic and definitions A cluster is comprised of a primary service, replica service, primary deployment, and replica deployment Package cluster holds the cluster CRD logic and definitions A cluster is comprised of a primary service, replica service, primary deployment, and replica deployment Package cluster holds the cluster CRD logic and definitions A cluster is comprised of a primary service, replica service, primary deployment, and replica deployment
|
Package cluster holds the cluster CRD logic and definitions A cluster is comprised of a primary service, replica service, primary deployment, and replica deployment Package cluster holds the cluster CRD logic and definitions A cluster is comprised of a primary service, replica service, primary deployment, and replica deployment Package cluster holds the cluster CRD logic and definitions A cluster is comprised of a primary service, replica service, primary deployment, and replica deployment Package cluster holds the cluster CRD logic and definitions A cluster is comprised of a primary service, replica service, primary deployment, and replica deployment Package cluster holds the cluster CRD logic and definitions A cluster is comprised of a primary service, replica service, primary deployment, and replica deployment Package cluster holds the cluster CRD logic and definitions A cluster is comprised of a primary service, replica service, primary deployment, and replica deployment Package cluster holds the cluster CRD logic and definitions A cluster is comprised of a primary service, replica service, primary deployment, and replica deployment Package cluster holds the cluster CRD logic and definitions A cluster is comprised of a primary service, replica service, primary deployment, and replica deployment |