Skip to content

Commit 733f5ac

Browse files
authored
Merge pull request #103 from cfiehe/add_topology_spread_constraints
feat: Add support for topology spread constraints.
2 parents 8c5baa8 + 948b9d9 commit 733f5ac

File tree

4 files changed

+8
-1
lines changed

4 files changed

+8
-1
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ See values.yaml for full documentation
5858
| `nodeSelector` | Node selector | `{}` |
5959
| `tolerations` | Tolerations | `[]` |
6060
| `affinity` | Affinity or Anti-Affinity | `{}` |
61+
| `topologySpreadConstraints` | Topology Spread Constraints | `[]` |
6162
| `configs` | Optional Privatebin configuration file | `{}` |
6263
| `podAnnotations` | Additional annotations to add to the pods | `{}` |
6364
| `additionalLabels` | Additional labels to add to resources | `{}` |

charts/privatebin/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ name: privatebin
66
home: https://privatebin.info/
77
icon: https://raw.githubusercontent.com/PrivateBin/assets/master/images/preview/icon.png
88
type: application
9-
version: 0.21.2
9+
version: 0.22.0
1010
maintainers:
1111
- name: bdashrad
1212

charts/privatebin/templates/deployment.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,10 @@ spec:
9797
{{- with .Values.tolerations }}
9898
tolerations:
9999
{{- toYaml . | nindent 8 }}
100+
{{- end }}
101+
{{- with .Values.topologySpreadConstraints }}
102+
topologySpreadConstraints:
103+
{{- toYaml . | nindent 8 }}
100104
{{- end }}
101105
volumes:
102106
- name: configs

charts/privatebin/values.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,8 @@ tolerations: []
111111

112112
affinity: {}
113113

114+
topologySpreadConstraints: []
115+
114116
configs: {}
115117
# conf.php: |-
116118
# ; see https://github.com/PrivateBin/PrivateBin/blob/master/cfg/conf.sample.php for config

0 commit comments

Comments
 (0)