diff --git a/README.md b/README.md index 021d52e..9175ca9 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` | 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 diff --git a/charts/verdaccio/templates/deployment.yaml b/charts/verdaccio/templates/deployment.yaml index 505722a..52a0e0e 100644 --- a/charts/verdaccio/templates/deployment.yaml +++ b/charts/verdaccio/templates/deployment.yaml @@ -145,3 +145,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 258b8c6..543ae94 100644 --- a/charts/verdaccio/values.yaml +++ b/charts/verdaccio/values.yaml @@ -247,3 +247,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: []