Skip to content

Commit

Permalink
Merge pull request #103 from cfiehe/add_topology_spread_constraints
Browse files Browse the repository at this point in the history
feat: Add support for topology spread constraints.
  • Loading branch information
elrido authored Jun 23, 2024
2 parents 8c5baa8 + 948b9d9 commit 733f5ac
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 | `{}` |
Expand Down
2 changes: 1 addition & 1 deletion charts/privatebin/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: [email protected]
Expand Down
4 changes: 4 additions & 0 deletions charts/privatebin/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,10 @@ spec:
{{- with .Values.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.topologySpreadConstraints }}
topologySpreadConstraints:
{{- toYaml . | nindent 8 }}
{{- end }}
volumes:
- name: configs
Expand Down
2 changes: 2 additions & 0 deletions charts/privatebin/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ tolerations: []

affinity: {}

topologySpreadConstraints: []

configs: {}
# conf.php: |-
# ; see https://github.com/PrivateBin/PrivateBin/blob/master/cfg/conf.sample.php for config
Expand Down

0 comments on commit 733f5ac

Please sign in to comment.