From 72d3520bacd9097bd5efc015202f7c5ccba73cb3 Mon Sep 17 00:00:00 2001 From: Kazakov Stepan Date: Sun, 20 Aug 2023 19:03:47 +0300 Subject: [PATCH 1/3] feat: add topologySpreadConstraints --- charts/verdaccio/templates/deployment.yaml | 4 ++++ charts/verdaccio/values.yaml | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/charts/verdaccio/templates/deployment.yaml b/charts/verdaccio/templates/deployment.yaml index ed04e33..c53ce13 100644 --- a/charts/verdaccio/templates/deployment.yaml +++ b/charts/verdaccio/templates/deployment.yaml @@ -144,3 +144,7 @@ spec: {{- if .Values.priorityClass.enabled }} priorityClassName: {{ .Values.priorityClass.name }} {{- end }} + {{- if .Values.topologySpreadConstraints }} + topologySpreadConstraints: + {{- toYaml .Values.topologySpreadConstraints | nindent 8 }} + {{- end }} diff --git a/charts/verdaccio/values.yaml b/charts/verdaccio/values.yaml index 87f4439..fddd5a4 100644 --- a/charts/verdaccio/values.yaml +++ b/charts/verdaccio/values.yaml @@ -245,3 +245,7 @@ secrets: # Annotations to set on the deployment annotations: {} + +## Pod Topology Spread Constraints +## Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/topology-spread-constraints/ +topologySpreadConstraints: [] From ed9de54e8980d8be704c52f3d532504e9832b1b5 Mon Sep 17 00:00:00 2001 From: Stepan Kazakov Date: Sun, 20 Aug 2023 19:08:42 +0300 Subject: [PATCH 2/3] update readme --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 1c1557f..35b716b 100644 --- a/README.md +++ b/README.md @@ -82,7 +82,7 @@ The following table lists the configurable parameters of the Verdaccio chart and their default values. | Parameter | Description | Default | -|------------------------------------| -------------------------------------------------------------------------------- | ------------------------------ | +| ---------------------------------- | -------------------------------------------------------------------------------- | ------------------------------ | | `annotations` | Annotations to set on the deployment | `{}` | | `affinity` | Affinity for pod assignment | `{}` | | `existingConfigMap` | Name of custom ConfigMap to use | `false` | @@ -100,6 +100,7 @@ and their default values. | `persistence.storageClass` | PVC Storage Class for Verdaccio volume | `nil` | | `persistence.selector` | Selector to match an existing Persistent Volume | `{}` (evaluated as a template) | | `persistence.volumes` | Additional volumes | `nil` | +| `topologySpreadConstraints` | Topology Spread Constraints for pod assignment | `[]` | | `podLabels` | Additional pod labels | `{}` (evaluated as a template) | | `podAnnotations` | Annotations to add to each pod | `{}` | | `priorityClass.enabled` | Enable specifying pod priorityClassName | `false` | From 6b86ee35c208ff75765d8c2ee6be4bd2a652ab96 Mon Sep 17 00:00:00 2001 From: Juan Picado Date: Sun, 7 Jan 2024 10:31:41 +0100 Subject: [PATCH 3/3] Update Chart.yaml --- charts/verdaccio/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/verdaccio/Chart.yaml b/charts/verdaccio/Chart.yaml index 47e1a92..0776d40 100644 --- a/charts/verdaccio/Chart.yaml +++ b/charts/verdaccio/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v2 description: A lightweight private node.js proxy registry name: verdaccio -version: 4.14.0 +version: 4.15.0 appVersion: 5.29.0 home: https://verdaccio.org icon: https://cdn.verdaccio.dev/logos/default.png