From 948b9d934450eb51339bfcac455be4745877bf90 Mon Sep 17 00:00:00 2001 From: Christoph Fiehe Date: Sat, 22 Jun 2024 17:37:23 +0200 Subject: [PATCH] Add configuration to support topology spread constraints. Signed-off-by: Christoph Fiehe --- README.md | 1 + charts/privatebin/Chart.yaml | 2 +- charts/privatebin/templates/deployment.yaml | 4 ++++ charts/privatebin/values.yaml | 2 ++ 4 files changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c0ed31d..0977145 100644 --- a/README.md +++ b/README.md @@ -58,6 +58,7 @@ See values.yaml for full documentation | `nodeSelector` | Node selector | `{}` | | `tolerations` | Tolerations | `[]` | | `affinity` | Affinity or Anti-Affinity | `{}` | +| `topologySpreadConstraints` | Topology Spread Constraints | `[]` | | `configs` | Optional Privatebin configuration file | `{}` | | `podAnnotations` | Additional annotations to add to the pods | `{}` | | `additionalLabels` | Additional labels to add to resources | `{}` | diff --git a/charts/privatebin/Chart.yaml b/charts/privatebin/Chart.yaml index 223b422..39dd05d 100644 --- a/charts/privatebin/Chart.yaml +++ b/charts/privatebin/Chart.yaml @@ -6,7 +6,7 @@ name: privatebin home: https://privatebin.info/ icon: https://raw.githubusercontent.com/PrivateBin/assets/master/images/preview/icon.png type: application -version: 0.21.2 +version: 0.22.0 maintainers: - name: bdashrad email: bdashrad@gmail.com diff --git a/charts/privatebin/templates/deployment.yaml b/charts/privatebin/templates/deployment.yaml index 063fcd6..c0e998f 100644 --- a/charts/privatebin/templates/deployment.yaml +++ b/charts/privatebin/templates/deployment.yaml @@ -97,6 +97,10 @@ spec: {{- with .Values.tolerations }} tolerations: {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.topologySpreadConstraints }} + topologySpreadConstraints: + {{- toYaml . | nindent 8 }} {{- end }} volumes: - name: configs diff --git a/charts/privatebin/values.yaml b/charts/privatebin/values.yaml index acea891..40d855f 100644 --- a/charts/privatebin/values.yaml +++ b/charts/privatebin/values.yaml @@ -111,6 +111,8 @@ tolerations: [] affinity: {} +topologySpreadConstraints: [] + configs: {} # conf.php: |- # ; see https://github.com/PrivateBin/PrivateBin/blob/master/cfg/conf.sample.php for config