From 46da78459777fd9931805111fb7d285c27071222 Mon Sep 17 00:00:00 2001 From: Rob Theriault Date: Tue, 15 Oct 2024 09:18:15 -0400 Subject: [PATCH] allow override the name of the operator --- chart/kube-arangodb/templates/_helpers.tpl | 2 +- chart/kube-arangodb/values.yaml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/chart/kube-arangodb/templates/_helpers.tpl b/chart/kube-arangodb/templates/_helpers.tpl index ab2edeb91..35f126e4b 100644 --- a/chart/kube-arangodb/templates/_helpers.tpl +++ b/chart/kube-arangodb/templates/_helpers.tpl @@ -18,7 +18,7 @@ Expand the name of the release. Expand the name of the operator. */}} {{- define "kube-arangodb.operatorName" -}} -{{- printf "arango-%s-operator" .Release.Name | trunc 63 | trimSuffix "-" -}} +{{- printf (or .Values.operator.nameOverride (printf "arango-%s-operator" .Release.Name | trunc 63 | trimSuffix "-")) -}} {{- end -}} {{/* diff --git a/chart/kube-arangodb/values.yaml b/chart/kube-arangodb/values.yaml index eb822d04b..ca4d6c08f 100644 --- a/chart/kube-arangodb/values.yaml +++ b/chart/kube-arangodb/values.yaml @@ -1,4 +1,5 @@ operator: + nameOverride: "" image: arangodb/kube-arangodb:1.2.43 imagePullPolicy: IfNotPresent imagePullSecrets: []