Skip to content

Commit 4522db0

Browse files
author
Alan Christie
committed
feat: Add priority class to Pod
1 parent 4b31d17 commit 4522db0

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

roles/operator/defaults/main.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ jo_dmapi_namespace: data-manager-api
3939
jo_pod_node_selector_key: informaticsmatters.com/purpose-worker
4040
jo_pod_node_selector_value: 'yes'
4141

42+
# A priority class for the operator Pod
43+
jo_priority_class: ''
4244
# Apply Priority Class to Pods launched
4345
jo_apply_pod_priority_class: no
4446

roles/operator/templates/deployment.yaml.j2

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ spec:
1616
labels:
1717
application: jupyter-operator
1818
spec:
19+
{% if jo_priority_class %}
20+
priorityClassName: {{ jo_priority_class }}
21+
{% endif %}
1922
serviceAccountName: jupyter-operator
2023

2124
# Prefer 'application' nodes before 'core'

0 commit comments

Comments
 (0)