Skip to content

Commit 46da784

Browse files
committed
allow override the name of the operator
1 parent c6fd4a4 commit 46da784

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

chart/kube-arangodb/templates/_helpers.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Expand the name of the release.
1818
Expand the name of the operator.
1919
*/}}
2020
{{- define "kube-arangodb.operatorName" -}}
21-
{{- printf "arango-%s-operator" .Release.Name | trunc 63 | trimSuffix "-" -}}
21+
{{- printf (or .Values.operator.nameOverride (printf "arango-%s-operator" .Release.Name | trunc 63 | trimSuffix "-")) -}}
2222
{{- end -}}
2323

2424
{{/*

chart/kube-arangodb/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
operator:
2+
nameOverride: ""
23
image: arangodb/kube-arangodb:1.2.43
34
imagePullPolicy: IfNotPresent
45
imagePullSecrets: []

0 commit comments

Comments
 (0)