Add team name to tpr object metadata name

This commit is contained in:
Murat Kabilov
2017-05-12 11:41:33 +02:00
parent db53134cbd
commit dd2ed5ff9d
6 changed files with 32 additions and 7 deletions
+1
View File
@@ -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 {
-4
View File
@@ -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))