Skip to content

Commit

Permalink
Add option to specify operator deployment tolerations (#101)
Browse files Browse the repository at this point in the history
allow to specify tolerations in `values.yaml`
  • Loading branch information
DmitryDodzin authored Aug 19, 2024
1 parent 21359e4 commit 5030a28
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion mirrord-operator/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 1.6.7
version: 1.7.0

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
6 changes: 6 additions & 0 deletions mirrord-operator/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@ spec:
sysctls:
- name: net.ipv4.ip_unprivileged_port_start
value: "443"
{{- if .Values.operator.tolerations }}
tolerations:
{{- range .Values.operator.tolerations }}
- {{ toYaml . }}
{{- end }}
{{- end }}
containers:
- env:
- name: RUST_LOG
Expand Down
7 changes: 7 additions & 0 deletions mirrord-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,13 @@ operator:
cpu: 200m
memory: 200Mi

## Allow to specify tolerations for operator deployment
# tolerations:
# - key: "key1"
# operator: "Equal"
# value: "value1"
# effect: "NoSchedule"

agent:
## example
##
Expand Down

0 comments on commit 5030a28

Please sign in to comment.