diff --git a/README.md b/README.md index 16dc616..20c429c 100644 --- a/README.md +++ b/README.md @@ -1076,6 +1076,26 @@ Digital Workspace are disabled. * Description: If you use an image that is not public. then you can create dockerconfigjson secrets on your cluster and reference them here. +#### `mq.additionalVolumes` +* Required: false +* Default: None +* Description: A list of additional volumes for the mq pods. Example: +```yaml + - name: activemq-data-1 + persistentVolumeClaim: + claimName: alfresco-pvc-1 +``` + +#### `mq.additionalVolumeMounts` +* Required: false +* Default: None +* Description: A list of additional volume mounts for the mq pods. Example: +```yaml + - name: activemq-data-1 + mountPath: /mountpath + subPath: subpath +``` + ### Postgresql #### `postgresql.enabled` @@ -2270,3 +2290,18 @@ additional settings can be added through additionalEnvironmentVariables. * Required: when `persistentStorage.mq.storageClassName` is `scw-bssd` * Default: None * Description: The volume handle pointing to the AWS EFS location + +### `persistentStorage.mq.additionalClaims` +* Required: false +* Default: None +* Description: A list of additional volume claims that can be added to the mq pods. Layout should be as follows: + +```yaml + - name: name1 + mountPath: /apps/example + subPath: subPath/example + storageClassName: "standard" + storage: 2 + efs: + volumeHandle: "efs-identifier" +``` \ No newline at end of file diff --git a/xenit-alfresco/templates/active-mq/mq-deployment.yaml b/xenit-alfresco/templates/active-mq/mq-deployment.yaml index 59f40af..d83f860 100644 --- a/xenit-alfresco/templates/active-mq/mq-deployment.yaml +++ b/xenit-alfresco/templates/active-mq/mq-deployment.yaml @@ -78,12 +78,22 @@ spec: {{ toYaml .Values.mq.resources.limits | nindent 14 }} {{- end }} {{- end }} - {{- if .Values.persistentStorage.mq.enabled }} volumeMounts: + {{- if .Values.persistentStorage.mq.enabled }} - name: data mountPath: /opt/activemq/data subPath: mq/data {{- end }} + {{- if .Values.persistentStorage.mq.additionalClaims }} + {{- range .Values.persistentStorage.mq.additionalClaims }} + - name: {{ .name }} + mountPath: {{ .mountPath }} + subPath: {{ .subPath }} + {{- end }} + {{- end }} + {{- if .Values.mq.additionalVolumeMounts }} + {{- toYaml .Values.mq.additionalVolumeMounts | nindent 12 }} + {{- end }} {{- if .Values.persistentStorage.mq.initVolumes }} initContainers: - name: init-fs @@ -109,10 +119,20 @@ spec: {{- if .Values.mq.imagePullSecrets}} {{ toYaml .Values.mq.imagePullSecrets | nindent 8 }} {{- end }} - {{- if .Values.persistentStorage.mq.enabled }} volumes: + {{- if .Values.persistentStorage.mq.enabled }} - name: data persistentVolumeClaim: claimName: mq-pvc {{- end }} + {{- if .Values.persistentStorage.mq.additionalClaims }} + {{- range .Values.persistentStorage.mq.additionalClaims }} + - name: {{ .name }} + persistentVolumeClaim: + claimName: {{ .name }}-pvc + {{- end }} + {{- end }} + {{- if .Values.mq.additionalVolumes }} + {{- toYaml .Values.mq.additionalVolumes | nindent 8 }} + {{- end }} {{- end }} \ No newline at end of file diff --git a/xenit-alfresco/templates/storage/mq-volumes.yaml b/xenit-alfresco/templates/storage/mq-volumes.yaml index 75a676a..12c07ce 100644 --- a/xenit-alfresco/templates/storage/mq-volumes.yaml +++ b/xenit-alfresco/templates/storage/mq-volumes.yaml @@ -8,5 +8,15 @@ {{- $efsVolumeHandle := .efs.volumeHandle -}} {{- include "hepers.volumeHelper" (list $namespace $name $storageClassName $storage $efsVolumeHandle) }} {{- end }} +{{- if .additionalClaims }} +{{- range .additionalClaims }} +{{- $name := .name -}} +{{- $storageClassName := .storageClassName -}} +{{- $storage := .storage -}} +{{- $efsVolumeHandle := .efs.volumeHandle -}} +{{- include "hepers.volumeHelper" (list $namespace $name $storageClassName $storage $efsVolumeHandle) }} +--- +{{- end }} +{{- end }} {{- end }} {{- end }} \ No newline at end of file