Skip to content

Commit 2120676

Browse files
Merge pull request #136 from xenit-eu/configmap-as-volume
Added support to mount configmaps to the acs image as volumes
2 parents 6e001be + d7381b9 commit 2120676

File tree

2 files changed

+59
-1
lines changed

2 files changed

+59
-1
lines changed

README.md

Lines changed: 53 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,6 +520,58 @@ For more information take a look at
520520
* Description: If you use an image that is not public. then you can create dockerconfigjson secrets on your cluster and
521521
reference them here.
522522

523+
#### `acs.additionalVolumeMounts`
524+
525+
* Required: false
526+
* Default: None
527+
* 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:
528+
529+
```yaml
530+
- mountPath: >-
531+
/usr/local/tomcat/shared/classes/alfresco/extension/subsystems/Authentication/ldap-ad/oup-ad1
532+
name: ldap1-ad-auth-volume
533+
readOnly: true
534+
- mountPath: >-
535+
/usr/local/tomcat/shared/classes/alfresco/extension/subsystems/Authentication/ldap-ad/oup-ad2
536+
name: ldap2-ad-auth-volume
537+
readOnly: true
538+
- mountPath: >-
539+
/usr/local/tomcat/shared/classes/alfresco/extension/subsystems/Authentication/ldap-ad/oup-ad3
540+
name: ldap3-ad-auth-volume
541+
readOnly: true
542+
```
543+
544+
#### `acs.additionalVolumes`
545+
546+
* Required: false
547+
* Default: None
548+
* 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:
549+
550+
```yaml
551+
- configMap:
552+
defaultMode: 420
553+
items:
554+
- key: ldap-ad-authentication.properties
555+
path: ldap-ad-authentication.properties
556+
name: ldap1-ad-auth-config
557+
name: ldap1-ad-auth-volume
558+
- configMap:
559+
defaultMode: 420
560+
items:
561+
- key: ldap-ad-authentication.properties
562+
path: ldap-ad-authentication.properties
563+
name: ldap2-ad-auth-config
564+
name: ldap2-ad-auth-volume
565+
- configMap:
566+
defaultMode: 420
567+
items:
568+
- key: ldap-ad-authentication.properties
569+
path: ldap-ad-authentication.properties
570+
name: ldap3-ad-auth-config
571+
name: ldap3-ad-auth-volume
572+
```
573+
574+
523575
### Digital Workspace
524576

525577
#### `digitalWorkspace.enabled`
@@ -2030,7 +2082,7 @@ additional settings can be added through additionalEnvironmentVariables.
20302082

20312083
* Required: false
20322084
* Default: None
2033-
* Description: A list of aditional volume claims that can be added to the alfresco pods. Layout should be as follows:
2085+
* Description: A list of additional volume claims that can be added to the alfresco pods. Layout should be as follows:
20342086

20352087
```yaml
20362088
- name: name1

xenit-alfresco/templates/acs/acs-deployment.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,9 @@ spec:
103103
subPath: {{ .subPath }}
104104
{{- end }}
105105
{{- end }}
106+
{{- if .Values.acs.additionalVolumeMounts }}
107+
{{- toYaml .Values.acs.additionalVolumeMounts | nindent 10 }}
108+
{{- end }}
106109
{{- if .Values.share.mergeAcsShare}}
107110
- name: share-container
108111
image: {{ .Values.share.image.registry }}/{{ .Values.share.image.repository }}:{{ .Values.share.image.tag }}
@@ -169,6 +172,9 @@ spec:
169172
claimName: {{ .name }}-pvc
170173
{{- end }}
171174
{{- end }}
175+
{{- if .Values.acs.additionalVolumes }}
176+
{{ toYaml .Values.acs.additionalVolumes | nindent 8 }}
177+
{{- end }}
172178
imagePullSecrets:
173179
{{- if .Values.general.imagePullSecrets}}
174180
{{ toYaml .Values.general.imagePullSecrets | nindent 8 }}

0 commit comments

Comments
 (0)