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
+8
View File
@@ -209,6 +209,14 @@ func (c *Cluster) labelsSet() labels.Set {
}
}
func (c *Cluster) dnsName() string {
return strings.ToLower(fmt.Sprintf(
c.OpConfig.DNSFormat,
c.Spec.ClusterName,
c.TeamName(),
c.OpConfig.DbHostedZone))
}
func (c *Cluster) credentialSecretName(username string) string {
return fmt.Sprintf(constants.UserSecretTemplate,
username,