From 4a49992567c2188c56b7d1bdb31d997cc5730b63 Mon Sep 17 00:00:00 2001 From: Aron Neagu Date: Wed, 27 Mar 2024 14:02:47 +0000 Subject: [PATCH] create override for server name --- templates/server-statefulset.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/templates/server-statefulset.yaml b/templates/server-statefulset.yaml index 0d8e604d0..4efbf351c 100644 --- a/templates/server-statefulset.yaml +++ b/templates/server-statefulset.yaml @@ -11,7 +11,11 @@ SPDX-License-Identifier: MPL-2.0 apiVersion: apps/v1 kind: StatefulSet metadata: +{{- if .Values.server.nameOverride }} + name: {{ .Values.nameOverride }} +{{- else }} name: {{ template "vault.fullname" . }} +{{- end }} namespace: {{ include "vault.namespace" . }} labels: app.kubernetes.io/name: {{ include "vault.name" . }}