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 ¶
View Source
const AFFINITY_NOTINOperator = "NotIn"
View Source
const AffinityInOperator = "In"
consolidate with cluster.affinityTemplateFields
View Source
const AffinityTemplate1Path = "/pgo-config/affinity.json"
View Source
const BadgerTemplate1Path = "/pgo-config/pgbadger.json"
View Source
const CollectTemplate1Path = "/pgo-config/collect.json"
View Source
const ContainerResourcesTemplate1Path = "/pgo-config/container-resources.json"
View Source
const DeploymentTemplate1Path = "/pgo-config/cluster-deployment-1.json"
View Source
const PVCMatchLabelsPath = "/pgo-config/pvc-matchlabels.json"
View Source
const PVCPath = "/pgo-config/pvc.json"
View Source
const PVCSCPath = "/pgo-config/pvc-storageclass.json"
View Source
const PgbouncerConfTemplatePath = "/pgo-config/pgbouncer.ini"
View Source
const PgbouncerHBATemplatePath = "/pgo-config/pgbouncer_hba.conf"
View Source
const PgbouncerTemplatePath = "/pgo-config/pgbouncer-template.json"
View Source
const PgbouncerUsersTemplatePath = "/pgo-config/users.txt"
View Source
const PgpoolConfTemplatePath = "/pgo-config/pgpool.conf"
View Source
const PgpoolHBATemplatePath = "/pgo-config/pool_hba.conf"
View Source
const PgpoolPasswdTemplatePath = "/pgo-config/pool_passwd"
View Source
const PgpoolTemplatePath = "/pgo-config/pgpool-template.json"
View Source
const ServiceTemplate1Path = "/pgo-config/cluster-service-1.json"
View Source
const UpgradeJobPath = "/pgo-config/cluster-upgrade-job-1.json"
Variables ¶
View Source
var AffinityTemplate1 *template.Template
View Source
var BackrestRestoreConfigMapTemplate *template.Template
View Source
var BackrestRestorejobTemplate *template.Template
View Source
var BackrestjobTemplate *template.Template
View Source
var BadgerTemplate1 *template.Template
View Source
var BenchmarkJobTemplate *template.Template
View Source
var CRUNCHY_DEBUG bool
View Source
var CollectTemplate1 *template.Template
View Source
var ContainerResourcesTemplate1 *template.Template
View Source
var DeploymentTemplate1 *template.Template
View Source
var IngestjobTemplate *template.Template
View Source
var JobTemplate *template.Template
View Source
var NAMESPACE string
View Source
var PVCMatchLabelsTemplate *template.Template
View Source
var PVCStorageClassTemplate *template.Template
View Source
var PVCTemplate *template.Template
View Source
var PgDumpBackupJobTemplate *template.Template
View Source
var PgRestoreJobTemplate *template.Template
View Source
var PgbackrestEnvVarsTemplate *template.Template
View Source
var PgbouncerConfTemplate *template.Template
View Source
var PgbouncerHBATemplate *template.Template
View Source
var PgbouncerTemplate *template.Template
View Source
var PgbouncerUsersTemplate *template.Template
View Source
var PgmonitorEnvVarsTemplate *template.Template
View Source
var Pgo config.PgoConfig
View Source
var PgoBackrestRepoServiceTemplate *template.Template
View Source
var PgoBackrestRepoTemplate *template.Template
View Source
var PgpoolConfTemplate *template.Template
View Source
var PgpoolHBATemplate *template.Template
View Source
var PgpoolPasswdTemplate *template.Template
View Source
var PgpoolTemplate *template.Template
View Source
var ReplicadeploymentTemplate1 *template.Template
View Source
var RmdatajobTemplate *template.Template
View Source
var ServiceTemplate1 *template.Template
View Source
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 |
Click to show internal directories.
Click to hide internal directories.