Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultDBFileName = "uri_dsn.txt"
Variables ¶
View Source
var DefaultConfig = Config{ Release: "dbclaim-exporter", ImageRepo: "quay.io/prometheuscommunity/postgres-exporter", ImageTag: "v0.10.1", DatasourceFileName: DefaultDBFileName, Resources: map[string]map[string]string{ "requests": { "cpu": "100m", "memory": "128Mi", }, "limits": { "cpu": "500m", "memory": "512Mi", }, }, Values: MustReadValues([]byte(`annotations: "prometheus.io/scrape": "true" "prometheus.io/path": "/metrics" "prometheus.io/port": "9187" `)), }
Functions ¶
Types ¶
type Config ¶
type Config struct { // Default Values Name string Namespace string ImageRepo string ImageTag string // Override Values Release string TemplatePath string // DBClaimOwnerRef ensures deployment is cleaned up when db claim is deleted DBClaimOwnerRef string DBClaimUID string ConfigCheckSum string ServiceAccountName string ImagePullSecrets []string AppendConstantLabels map[string]string DatasourceUser string DatasourceSecretName string DatasourceFileName string Resources map[string]map[string]string DepYamlPath string ConfigYamlPath string Values Values // contains filtered or unexported fields }
Config is used to render out the deployment yaml
type Values ¶
type Values map[string]interface{}
Values represents a collection of chart values.
func MustReadValues ¶
func ReadValues ¶
Click to show internal directories.
Click to hide internal directories.