Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions charts/imp/templates/operator/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ spec:
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.operator.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- if eq .Values.operator.antiAffinity "required" }}
affinity:
podAntiAffinity:
Expand Down
7 changes: 7 additions & 0 deletions charts/imp/tests/operator-deployment_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ tests:
- equal:
path: spec.replicas
value: 2
- contains:
path: spec.template.spec.tolerations
content:
key: imp.dev/runner
operator: Equal
value: "true"
effect: NoSchedule
- contains:
path: spec.template.spec.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution
content:
Expand Down
6 changes: 6 additions & 0 deletions charts/imp/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ operator:
cpu: 500m
memory: 512Mi
nodeSelector: {}
# Operator pods must remain schedulable on dedicated Imp runner nodes.
tolerations:
- key: imp.dev/runner
operator: Equal
value: "true"
effect: NoSchedule
rbac:
cniDetection: minimal
extraEnv: []
Expand Down
Loading