mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-10-17 16:25:46 +02:00
Use named arguments in the DNS name format
This commit is contained in:
+4
-5
@@ -245,11 +245,10 @@ func (c *Cluster) labelsSet() labels.Set {
|
||||
}
|
||||
|
||||
func (c *Cluster) dnsName() string {
|
||||
return strings.ToLower(fmt.Sprintf(
|
||||
c.OpConfig.DNSNameFormat,
|
||||
c.Spec.ClusterName,
|
||||
c.teamName(),
|
||||
c.OpConfig.DbHostedZone))
|
||||
return strings.ToLower(c.OpConfig.DNSNameFormat.Format(
|
||||
"cluster", c.Spec.ClusterName,
|
||||
"team", c.teamName(),
|
||||
"hostedzone", c.OpConfig.DbHostedZone))
|
||||
}
|
||||
|
||||
func (c *Cluster) credentialSecretName(username string) string {
|
||||
|
||||
Reference in New Issue
Block a user