Skip to content

Commit

Permalink
Merge pull request #136 from xenit-eu/configmap-as-volume
Browse files Browse the repository at this point in the history
Added support to mount configmaps to the acs image as volumes
  • Loading branch information
JoostDeCupere authored Feb 5, 2024
2 parents 6e001be + d7381b9 commit 2120676
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 1 deletion.
54 changes: 53 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -520,6 +520,58 @@ 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.additionalVolumeMounts`

* 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
- mountPath: >-
/usr/local/tomcat/shared/classes/alfresco/extension/subsystems/Authentication/ldap-ad/oup-ad1
name: ldap1-ad-auth-volume
readOnly: true
- mountPath: >-
/usr/local/tomcat/shared/classes/alfresco/extension/subsystems/Authentication/ldap-ad/oup-ad2
name: ldap2-ad-auth-volume
readOnly: true
- mountPath: >-
/usr/local/tomcat/shared/classes/alfresco/extension/subsystems/Authentication/ldap-ad/oup-ad3
name: ldap3-ad-auth-volume
readOnly: true
```

#### `acs.additionalVolumes`

* 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
- configMap:
defaultMode: 420
items:
- key: ldap-ad-authentication.properties
path: ldap-ad-authentication.properties
name: ldap1-ad-auth-config
name: ldap1-ad-auth-volume
- configMap:
defaultMode: 420
items:
- key: ldap-ad-authentication.properties
path: ldap-ad-authentication.properties
name: ldap2-ad-auth-config
name: ldap2-ad-auth-volume
- configMap:
defaultMode: 420
items:
- key: ldap-ad-authentication.properties
path: ldap-ad-authentication.properties
name: ldap3-ad-auth-config
name: ldap3-ad-auth-volume
```


### Digital Workspace

#### `digitalWorkspace.enabled`
Expand Down Expand Up @@ -2030,7 +2082,7 @@ additional settings can be added through additionalEnvironmentVariables.

* Required: false
* Default: None
* Description: A list of aditional volume claims that can be added to the alfresco pods. Layout should be as follows:
* Description: A list of additional volume claims that can be added to the alfresco pods. Layout should be as follows:

```yaml
- name: name1
Expand Down
6 changes: 6 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,9 @@ spec:
subPath: {{ .subPath }}
{{- end }}
{{- end }}
{{- if .Values.acs.additionalVolumeMounts }}
{{- toYaml .Values.acs.additionalVolumeMounts | nindent 10 }}
{{- 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 +172,9 @@ spec:
claimName: {{ .name }}-pvc
{{- end }}
{{- end }}
{{- if .Values.acs.additionalVolumes }}
{{ toYaml .Values.acs.additionalVolumes | nindent 8 }}
{{- end }}
imagePullSecrets:
{{- if .Values.general.imagePullSecrets}}
{{ toYaml .Values.general.imagePullSecrets | nindent 8 }}
Expand Down

0 comments on commit 2120676

Please sign in to comment.