Skip to content

Commit 596c2cb

Browse files
Merge pull request #30961 from alex-hunt-materialize/support_alternative_schedulers
orchestratord support alternative schedulers
2 parents 5d66a0c + 6261b8b commit 596c2cb

File tree

4 files changed

+21
-0
lines changed

4 files changed

+21
-0
lines changed

misc/helm-charts/operator/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ The following table lists the configurable parameters of the Materialize operato
143143
| `operator.resources.requests` | Resources requested by the operator for CPU and memory | ``{"cpu":"100m","memory":"512Mi"}`` |
144144
| `operator.secretsController` | Which secrets controller to use for storing secrets. Valid values are 'kubernetes' and 'aws-secrets-manager'. Setting 'aws-secrets-manager' requires a configured AWS cloud provider and IAM role for the environment with Secrets Manager permissions. | ``"kubernetes"`` |
145145
| `rbac.create` | Whether to create necessary RBAC roles and bindings | ``true`` |
146+
| `schedulerName` | Optionally use a non-default kubernetes scheduler. | ``nil`` |
146147
| `serviceAccount.create` | Whether to create a new service account for the operator | ``true`` |
147148
| `serviceAccount.name` | The name of the service account to be created | ``"orchestratord"`` |
148149
| `storage.storageClass.allowVolumeExpansion` | | ``false`` |

misc/helm-charts/operator/templates/deployment.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,5 +150,8 @@ spec:
150150
{{- end }}
151151
{{- end }}
152152
- "--enable-security-context"
153+
{{- if .Values.schedulerName }}
154+
- "--scheduler-name={{ .Values.schedulerName }}"
155+
{{- end }}
153156
resources:
154157
{{- toYaml .Values.operator.resources | nindent 10 }}

misc/helm-charts/operator/tests/deployment_test.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,3 +178,17 @@ tests:
178178
- contains:
179179
path: spec.template.spec.containers[0].args
180180
content: "--secrets-controller=aws-secrets-manager"
181+
182+
- it: should not pass the scheduler when not configured
183+
asserts:
184+
- notContains:
185+
path: spec.template.spec.containers[0].args
186+
content: "--scheduler-name"
187+
188+
- it: should pass the scheduler when configured
189+
set:
190+
schedulerName: my-scheduler
191+
asserts:
192+
- contains:
193+
path: spec.template.spec.containers[0].args
194+
content: "--scheduler-name=my-scheduler"

misc/helm-charts/operator/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,9 @@ rbac:
230230
# -- Whether to create necessary RBAC roles and bindings
231231
create: true
232232

233+
# -- Optionally use a non-default kubernetes scheduler.
234+
schedulerName: null
235+
233236
# Service account settings
234237
serviceAccount:
235238
# -- Whether to create a new service account for the operator

0 commit comments

Comments
 (0)