mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-10-04 12:21:22 +02:00
Add team name to tpr object metadata name
This commit is contained in:
@@ -44,6 +44,7 @@ type Config struct {
|
||||
WALES3Bucket string `envconfig:"wal_s3_bucket"`
|
||||
KubeIAMRole string `envconfig:"kube_iam_role"`
|
||||
DebugLogging bool `split_words:"true" default:"false"`
|
||||
DNSNameFormat string `envconfig:"dns_name_format" default:"%s.%s.%s"`
|
||||
}
|
||||
|
||||
func LoadFromEnv() *Config {
|
||||
|
||||
@@ -54,10 +54,6 @@ func PodSpiloRole(pod *v1.Pod) string {
|
||||
return pod.Labels["spilo-role"]
|
||||
}
|
||||
|
||||
func ClusterDNSName(clusterName, teamName, hostedZone string) string {
|
||||
return fmt.Sprintf("%s.%s.%s", clusterName, teamName, hostedZone)
|
||||
}
|
||||
|
||||
func PGUserPassword(user spec.PgUser) string {
|
||||
s := md5.Sum([]byte(user.Password + user.Name))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user