From 528d2fbe1616da7e04db9d7c3fcb2ae619cdffcb Mon Sep 17 00:00:00 2001 From: MDH Date: Wed, 30 Oct 2024 16:11:22 +0530 Subject: [PATCH] Support for openshift --- terracottabigmemorymax/helm/templates/server-configmap.yaml | 2 +- .../helm/templates/tc-server-statefulset.yaml | 3 +++ terracottabigmemorymax/helm/templates/tmc-statefulset.yaml | 3 +++ terracottabigmemorymax/helm/values.yaml | 2 ++ 4 files changed, 9 insertions(+), 1 deletion(-) diff --git a/terracottabigmemorymax/helm/templates/server-configmap.yaml b/terracottabigmemorymax/helm/templates/server-configmap.yaml index cfd8b73..818fcbf 100644 --- a/terracottabigmemorymax/helm/templates/server-configmap.yaml +++ b/terracottabigmemorymax/helm/templates/server-configmap.yaml @@ -41,7 +41,7 @@ data: {{- range $j := until (int $.Values.terracotta.nodeCountPerStripe) }} + name="terracotta-{{ add (mul $i $.Values.terracotta.nodeCountPerStripe) $j }}"> {{ $.Values.terracotta.tsaPort }} {{ $.Values.terracotta.tsaGroupPort }} {{ $.Values.terracotta.tsaManagementPort }} diff --git a/terracottabigmemorymax/helm/templates/tc-server-statefulset.yaml b/terracottabigmemorymax/helm/templates/tc-server-statefulset.yaml index e4ed228..9302e79 100644 --- a/terracottabigmemorymax/helm/templates/tc-server-statefulset.yaml +++ b/terracottabigmemorymax/helm/templates/tc-server-statefulset.yaml @@ -44,6 +44,9 @@ spec: {{- end }} securityContext: {{- toYaml .Values.securityContext | nindent 8 }} + {{- if .Values.terracotta.serviceAccountName }} + serviceAccount: {{ .Values.terracotta.serviceAccountName }} + {{- end }} containers: - name: server image: "{{ $.Values.registry }}/{{ $.Values.serverImage }}:{{ $.Values.tag | default .Chart.AppVersion }}" diff --git a/terracottabigmemorymax/helm/templates/tmc-statefulset.yaml b/terracottabigmemorymax/helm/templates/tmc-statefulset.yaml index edc9c99..1e4eb38 100644 --- a/terracottabigmemorymax/helm/templates/tmc-statefulset.yaml +++ b/terracottabigmemorymax/helm/templates/tmc-statefulset.yaml @@ -46,6 +46,9 @@ spec: {{- end }} securityContext: {{- toYaml .Values.securityContext | nindent 8 }} + {{- if .Values.terracotta.serviceAccountName }} + serviceAccount: {{ .Values.terracotta.serviceAccountName }} + {{- end }} containers: - name: tmc-server image: "{{ $.Values.registry }}/{{ $.Values.tmcImage }}:{{ $.Values.tag | default .Chart.AppVersion }}" diff --git a/terracottabigmemorymax/helm/values.yaml b/terracottabigmemorymax/helm/values.yaml index e008289..53a61d9 100644 --- a/terracottabigmemorymax/helm/values.yaml +++ b/terracottabigmemorymax/helm/values.yaml @@ -76,6 +76,8 @@ terracotta: tmcOpts: "" # -- The license content for the Terracotta cluster. Optional. license: "" + # -- ServiceAccountName for the terracotta related pods + serviceAccountName: "" # -- TSA container-specific configurations for probes tsaServer: