Skip to content

Commit 8796b9f

Browse files
authored
feat(nextcloud): add topologySpreadConstraints support #782
Signed-off-by: Txomin Itoiz <[email protected]>
1 parent 8440e74 commit 8796b9f

File tree

6 files changed

+41
-22
lines changed

6 files changed

+41
-22
lines changed

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: 8.3.0
3+
version: 8.4.0
44
# renovate: image=docker.io/library/nextcloud
55
appVersion: 32.0.0
66
description: A file sharing server that puts the control and security of your own data back into your hands.

charts/nextcloud/README.md

Lines changed: 23 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,7 @@ The following table lists the configurable parameters of the nextcloud chart and
245245
| `podLabels` | Labels to be added at 'pod' level | not set |
246246
| `podAnnotations` | Annotations to be added at 'pod' level | not set |
247247
| `dnsConfig` | Custom dnsConfig for nextcloud containers | `{}` |
248+
| `topologySpreadConstraints` | TopologySpreadConstraints for nextcloud pod and cronjob pod | `{}` |
248249

249250
### Ingress
250251
#### Ingress Sticky-Sessions
@@ -561,27 +562,28 @@ This section provides options to enable and configure the Collabora Online serve
561562

562563
We include an optional external preview provider from [h2non/imaginary](https://github.com/h2non/imaginary).
563564

564-
| Parameter | Description | Default |
565-
| ---------------------------------- | -------------------------------------------------------------------------------------- | ----------------- |
566-
| `imaginary.enabled` | Start Imaginary | `false` |
567-
| `imaginary.replicaCount` | Number of imaginary pod replicas to deploy | `1` |
568-
| `imaginary.image.registry` | Imaginary image name | `docker.io` |
569-
| `imaginary.image.repository` | Imaginary image name | `h2non/imaginary` |
570-
| `imaginary.image.tag` | Imaginary image tag | `1.2.4` |
571-
| `imaginary.image.pullPolicy` | Imaginary image pull policy | `IfNotPresent` |
572-
| `imaginary.image.pullSecrets` | Imaginary image pull secrets | `nil` |
573-
| `imaginary.podAnnotations` | Additional annotations for imaginary | `{}` |
574-
| `imaginary.podLabels` | Additional labels for imaginary | `{}` |
575-
| `imaginary.nodeSelector` | Imaginary pod nodeSelector | `{}` |
576-
| `imaginary.tolerations` | Imaginary pod tolerations | `[]` |
577-
| `imaginary.resources` | imaginary resources | `{}` |
578-
| `imaginary.securityContext` | Optional security context for the Imaginary container | `nil` |
579-
| `imaginary.podSecurityContext` | Optional security context for the Imaginary pod (applies to all containers in the pod) | `nil` |
580-
| `imaginary.service.type` | Imaginary: Kubernetes Service type | `ClusterIP` |
581-
| `imaginary.service.loadBalancerIP` | Imaginary: LoadBalancerIp for service type LoadBalancer | `nil` |
582-
| `imaginary.service.nodePort` | Imaginary: NodePort for service type NodePort | `nil` |
583-
| `imaginary.service.annotations` | Additional annotations for service imaginary | `{}` |
584-
| `imaginary.service.labels` | Additional labels for service imaginary | `{}` |
565+
| Parameter | Description | Default |
566+
| ------------------------------------- | -------------------------------------------------------------------------------------- | ----------------- |
567+
| `imaginary.enabled` | Start Imaginary | `false` |
568+
| `imaginary.replicaCount` | Number of imaginary pod replicas to deploy | `1` |
569+
| `imaginary.image.registry` | Imaginary image name | `docker.io` |
570+
| `imaginary.image.repository` | Imaginary image name | `h2non/imaginary` |
571+
| `imaginary.image.tag` | Imaginary image tag | `1.2.4` |
572+
| `imaginary.image.pullPolicy` | Imaginary image pull policy | `IfNotPresent` |
573+
| `imaginary.image.pullSecrets` | Imaginary image pull secrets | `nil` |
574+
| `imaginary.podAnnotations` | Additional annotations for imaginary | `{}` |
575+
| `imaginary.podLabels` | Additional labels for imaginary | `{}` |
576+
| `imaginary.nodeSelector` | Imaginary pod nodeSelector | `{}` |
577+
| `imaginary.tolerations` | Imaginary pod tolerations | `[]` |
578+
| `imaginary.topologySpreadConstraints` | Imaginary pod topologySpreadConstraints | `[]` |
579+
| `imaginary.resources` | imaginary resources | `{}` |
580+
| `imaginary.securityContext` | Optional security context for the Imaginary container | `nil` |
581+
| `imaginary.podSecurityContext` | Optional security context for the Imaginary pod (applies to all containers in the pod) | `nil` |
582+
| `imaginary.service.type` | Imaginary: Kubernetes Service type | `ClusterIP` |
583+
| `imaginary.service.loadBalancerIP` | Imaginary: LoadBalancerIp for service type LoadBalancer | `nil` |
584+
| `imaginary.service.nodePort` | Imaginary: NodePort for service type NodePort | `nil` |
585+
| `imaginary.service.annotations` | Additional annotations for service imaginary | `{}` |
586+
| `imaginary.service.labels` | Additional labels for service imaginary | `{}` |
585587

586588

587589
> [!Note]

charts/nextcloud/templates/cronjob.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,10 @@ spec:
7070
tolerations:
7171
{{- toYaml . | nindent 12 }}
7272
{{- end }}
73+
{{- with $.Values.topologySpreadConstraints }}
74+
topologySpreadConstraints:
75+
{{- toYaml . | nindent 12 }}
76+
{{- end }}
7377
{{- end }}{{/* end with cronjob */}}
7478
volumes:
7579
- name: nextcloud-main

charts/nextcloud/templates/deployment.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,10 @@ spec:
341341
tolerations:
342342
{{- toYaml . | nindent 8 }}
343343
{{- end }}
344+
{{- with .Values.topologySpreadConstraints }}
345+
topologySpreadConstraints:
346+
{{- toYaml . | nindent 8 }}
347+
{{- end }}
344348
volumes:
345349
- name: nextcloud-main
346350
{{- if .Values.persistence.enabled }}

charts/nextcloud/templates/imaginary/deployment.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,4 +85,8 @@ spec:
8585
tolerations:
8686
{{- toYaml . | nindent 8 }}
8787
{{- end }}
88+
{{- with .Values.imaginary.topologySpreadConstraints }}
89+
topologySpreadConstraints:
90+
{{- toYaml . | nindent 8 }}
91+
{{- end }}
8892
{{- end }}

charts/nextcloud/values.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -781,6 +781,9 @@ nodeSelector: {}
781781

782782
tolerations: []
783783

784+
# -- Nextcloud pod topologySpreadConstraints
785+
topologySpreadConstraints: []
786+
784787
affinity: {}
785788

786789
dnsConfig: {}
@@ -816,6 +819,8 @@ imaginary:
816819
nodeSelector: {}
817820
# -- Imaginary pod tolerations
818821
tolerations: []
822+
# -- Imaginary pod topologySpreadConstraints
823+
topologySpreadConstraints: []
819824

820825
# -- imaginary resources
821826
resources: {}

0 commit comments

Comments
 (0)