From 9181f4cd41d613f196b6c2425d7222aed15f068a Mon Sep 17 00:00:00 2001 From: Ewout Prangsma Date: Fri, 15 Jun 2018 16:38:26 +0200 Subject: [PATCH] Fixed ID prefix for single servers --- pkg/deployment/members.go | 2 ++ pkg/util/k8sutil/names.go | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/deployment/members.go b/pkg/deployment/members.go index 0c69bf8eb..6e115a933 100644 --- a/pkg/deployment/members.go +++ b/pkg/deployment/members.go @@ -165,6 +165,8 @@ func createMember(log zerolog.Logger, status *api.DeploymentStatus, group api.Se // in the given group. func getArangodIDPrefix(group api.ServerGroup) string { switch group { + case api.ServerGroupSingle: + return "SNGL-" case api.ServerGroupCoordinators: return "CRDN-" case api.ServerGroupDBServers: diff --git a/pkg/util/k8sutil/names.go b/pkg/util/k8sutil/names.go index d75836352..4a242fedc 100644 --- a/pkg/util/k8sutil/names.go +++ b/pkg/util/k8sutil/names.go @@ -30,7 +30,7 @@ import ( var ( resourceNameRE = regexp.MustCompile(`^([0-9\-\.a-z])+$`) - arangodPrefixes = []string{"CRDN-", "PRMR-", "AGNT-"} + arangodPrefixes = []string{"CRDN-", "PRMR-", "AGNT-", "SNGL-"} ) // ValidateOptionalResourceName validates a kubernetes resource name.