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.