common

package
v0.0.0-...-0cee181 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LISTEN_PORT_GRAFANA    = 8080
	FORWARD_PORT_GRAFANA   = 3000
	LISTEN_PORT_PROM       = 9090
	FORWARD_PORT_PROM      = 9090
	LISTEN_PORT_PROMLENS   = 8081
	FORWARD_PORT_PROMLENS  = 8080
	LISTEN_PORT_PROMSCALE  = 9201
	FORWARD_PORT_PROMSCALE = 9201
	LISTEN_PORT_TSDB       = 5432
	FORWARD_PORT_TSDB      = 5432
	FORWARD_PORT_JAEGER    = 16686
	LISTEN_PORT_JAEGER     = 16686
)

Variables

View Source
var (
	TimescaleDBBackUpKeyForValuesYaml = []string{"timescaledb-single", "backup", "enabled"}
	PrometheusLabels                  = map[string]string{"app.kubernetes.io/managed-by": "prometheus-operator", "app.kubernetes.io/name": "prometheus"}
	DBSuperUserSecretKey              = "PATRONI_SUPERUSER_PASSWORD"
	DBReplicationSecretKey            = "PATRONI_REPLICATION_PASSWORD"
	DBAdminSecretKey                  = "PATRONI_admin_PASSWORD"
)

Functions

func GetSuperuserDBDetails

func GetSuperuserDBDetails(namespace, releaseName string) (*pgconn.DBDetails, error)

func GetTimescaleDBLabels

func GetTimescaleDBLabels(releaseName string) map[string]string

func GetTimescaleDBURI

func GetTimescaleDBURI(k8sClient k8s.Client, namespace, name string) (string, error)

func IsTimescaleDBEnabled

func IsTimescaleDBEnabled(releaseName, namespace string) (bool, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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