mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-10-08 11:42:04 +02:00
Add version label to the cluster. (#96)
* Add version label to the cluster. According to the STUPS team the daemon that exports logs to scalyr stops the export if the version label is missing. * Move label names to constants. * Run go fmt
This commit is contained in:
committed by
Murat Kabilov
parent
08c0e3b6dd
commit
47e3e29a56
@@ -196,7 +196,7 @@ func clusterName(clusterName string, teamName string) (string, error) {
|
||||
if len(clusterName) < teamNameLen+2 {
|
||||
return "", fmt.Errorf("Name is too short")
|
||||
}
|
||||
if strings.ToLower(clusterName[:teamNameLen+1]) != strings.ToLower(teamName) + "-" {
|
||||
if strings.ToLower(clusterName[:teamNameLen+1]) != strings.ToLower(teamName)+"-" {
|
||||
return "", fmt.Errorf("Name must start with the team name and dash")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user