Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Commit 528d2fb

Browse files
author
MDH
committed
Support for openshift
1 parent 18b9430 commit 528d2fb

File tree

4 files changed

+9
-1
lines changed

4 files changed

+9
-1
lines changed

terracottabigmemorymax/helm/templates/server-configmap.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ data:
4141
<mirror-group>
4242
{{- range $j := until (int $.Values.terracotta.nodeCountPerStripe) }}
4343
<server host="terracotta-{{ add (mul $i $.Values.terracotta.nodeCountPerStripe) $j }}.terracotta-service.{{ $.Release.Namespace }}.svc.cluster.local"
44-
name="terracotta-{{ add (mul $i $.Values.terracotta.nodeCountPerStripe) $j }}.terracotta-service.{{ $.Release.Namespace }}.svc.cluster.local">
44+
name="terracotta-{{ add (mul $i $.Values.terracotta.nodeCountPerStripe) $j }}">
4545
<tsa-port>{{ $.Values.terracotta.tsaPort }} </tsa-port>
4646
<tsa-group-port>{{ $.Values.terracotta.tsaGroupPort }}</tsa-group-port>
4747
<management-port>{{ $.Values.terracotta.tsaManagementPort }}</management-port>

terracottabigmemorymax/helm/templates/tc-server-statefulset.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ spec:
4444
{{- end }}
4545
securityContext:
4646
{{- toYaml .Values.securityContext | nindent 8 }}
47+
{{- if .Values.terracotta.serviceAccountName }}
48+
serviceAccount: {{ .Values.terracotta.serviceAccountName }}
49+
{{- end }}
4750
containers:
4851
- name: server
4952
image: "{{ $.Values.registry }}/{{ $.Values.serverImage }}:{{ $.Values.tag | default .Chart.AppVersion }}"

terracottabigmemorymax/helm/templates/tmc-statefulset.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ spec:
4646
{{- end }}
4747
securityContext:
4848
{{- toYaml .Values.securityContext | nindent 8 }}
49+
{{- if .Values.terracotta.serviceAccountName }}
50+
serviceAccount: {{ .Values.terracotta.serviceAccountName }}
51+
{{- end }}
4952
containers:
5053
- name: tmc-server
5154
image: "{{ $.Values.registry }}/{{ $.Values.tmcImage }}:{{ $.Values.tag | default .Chart.AppVersion }}"

terracottabigmemorymax/helm/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ terracotta:
7676
tmcOpts: ""
7777
# -- The license content for the Terracotta cluster. Optional.
7878
license: ""
79+
# -- ServiceAccountName for the terracotta related pods
80+
serviceAccountName: ""
7981

8082
# -- TSA container-specific configurations for probes
8183
tsaServer:

0 commit comments

Comments
 (0)