Skip to content

Commit 8d7b716

Browse files
authored
Merge pull request #309 from ecitapps/feat/sidecars
Support for extra sidecars
2 parents 6fce65c + 72b97c0 commit 8d7b716

4 files changed

Lines changed: 14 additions & 1 deletion

File tree

charts/nextcloud/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
apiVersion: v2
22
name: nextcloud
3-
version: 3.2.2
3+
version: 3.2.3
44
appVersion: 24.0.5
55
description: A file sharing server that puts the control and security of your own data back into your hands.
66
keywords:

charts/nextcloud/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ The following table lists the configurable parameters of the nextcloud chart and
9696
| `nextcloud.defaultConfigs.smtp\.config\.php` | Default configuration for smtp | `true` |
9797
| `nextcloud.strategy` | specifies the strategy used to replace old Pods by new ones | `type: Recreate` |
9898
| `nextcloud.extraEnv` | specify additional environment variables | `{}` |
99+
| `nextcloud.extraSidecarContainers` | specify additional sidecar containers | `[]` |
99100
| `nextcloud.extraInitContainers` | specify additional init containers | `[]` |
100101
| `nextcloud.extraVolumes` | specify additional volumes for the NextCloud pod | `{}` |
101102
| `nextcloud.extraVolumeMounts` | specify additional volume mounts for the NextCloud pod | `{}` |

charts/nextcloud/templates/deployment.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,9 @@ spec:
224224
mountPath: /etc/nginx/nginx.conf
225225
subPath: nginx.conf
226226
{{- end }}
227+
{{- with .Values.nextcloud.extraSidecarContainers }}
228+
{{- toYaml . | nindent 6 }}
229+
{{- end }}
227230
{{- with .Values.nodeSelector }}
228231
nodeSelector:
229232
{{- toYaml . | nindent 8 }}

charts/nextcloud/values.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,15 @@ nextcloud:
169169
# image: busybox
170170
# command: ['do', 'something']
171171

172+
# Extra sidecar containers.
173+
extraSidecarContainers: []
174+
# - name: nextcloud-logger
175+
# image: busybox
176+
# command: [/bin/sh, -c, 'while ! test -f "/run/nextcloud/data/nextcloud.log"; do sleep 1; done; tail -n+1 -f /run/nextcloud/data/nextcloud.log']
177+
# volumeMounts:
178+
# - name: nextcloud-data
179+
# mountPath: /run/nextcloud/data
180+
172181
# Extra mounts for the pods. Example shown is for connecting a legacy NFS volume
173182
# to NextCloud pods in Kubernetes. This can then be configured in External Storage
174183
extraVolumes:

0 commit comments

Comments
 (0)