Skip to content

Commit

Permalink
Added support to mount configmaps to the acs image as volumes
Browse files Browse the repository at this point in the history
  • Loading branch information
JoostDeCupere committed Feb 2, 2024
1 parent cc6cf6b commit 97b287b
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -520,6 +520,24 @@ For more information take a look at
* Description: If you use an image that is not public. then you can create dockerconfigjson secrets on your cluster and
reference them here.

#### `acs.configMapVolumes`

* Required: false
* Default: None
* Description: A list of configMaps that need to be mounted as volumes to the alfresco pods. Make sure the configMap specified exists. Layout should be as follows:

```yaml
- name: name1
mountPath: /apps/example
subPath: subPath/example
readOnly: true
configMapName: "example-configMap"
items:
- key: data-key
path: pathToMountTo
```


### Digital Workspace

#### `digitalWorkspace.enabled`
Expand Down
25 changes: 25 additions & 0 deletions xenit-alfresco/templates/acs/acs-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,18 @@ spec:
subPath: {{ .subPath }}
{{- end }}
{{- end }}
{{- if .Values.acs.configMapVolumes }}
{{- range .Values.acs.configMapVolumes }}
- name: {{ .name }}
mountPath: {{ .mountPath }}
{{- if .subPath }}
subPath: {{ .subPath }}
{{- end }}
{{- if .readOnly }}
readOnly: {{ .readOnly }}
{{- end }}
{{- end }}
{{- end }}
{{- if .Values.share.mergeAcsShare}}
- name: share-container
image: {{ .Values.share.image.registry }}/{{ .Values.share.image.repository }}:{{ .Values.share.image.tag }}
Expand Down Expand Up @@ -169,6 +181,19 @@ spec:
claimName: {{ .name }}-pvc
{{- end }}
{{- end }}
{{- if .Values.acs.configMapVolumes }}
{{- range .Values.acs.configMapVolumes }}
- name: {{ .name }}
configMap:
defaultMode: 420
name: ldap1-ad-auth-config
items:
{{- range .items }}
- key: {{ .key }}
path: {{ .path }}
{{- end }}
{{- end }}
{{- end }}
imagePullSecrets:
{{- if .Values.general.imagePullSecrets}}
{{ toYaml .Values.general.imagePullSecrets | nindent 8 }}
Expand Down

0 comments on commit 97b287b

Please sign in to comment.