Skip to content

Commit

Permalink
[KANSUP74-23] fixed additional bugs for ActiveMQ PVCs
Browse files Browse the repository at this point in the history
  • Loading branch information
pvriel committed Sep 24, 2024
1 parent ba191e0 commit f575a3e
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
4 changes: 2 additions & 2 deletions xenit-alfresco/templates/active-mq/mq-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ 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
Expand Down Expand Up @@ -119,8 +119,8 @@ 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
Expand Down
10 changes: 10 additions & 0 deletions xenit-alfresco/templates/storage/mq-volumes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
3 changes: 2 additions & 1 deletion xenit-alfresco/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ general:

ingress:
protocol: 'https'
host: 'alfresco.example.com'
ingressAnnotations:
kubernetes.io/ingress.class: "nginx"
cert-manager.io/cluster-issuer: "letsencrypt-production"
Expand Down Expand Up @@ -278,7 +279,7 @@ persistentStorage:
efs:
volumeHandle: ""
mq:
enabled: true
enabled: false
initVolumes: true
storageClassName: ""
storage: 1
Expand Down

0 comments on commit f575a3e

Please sign in to comment.