Skip to content

Commit 9937fb4

Browse files
authored
feat(template/helm): Allow Pod priorityClassName to be configured (#551)
* chore(template): Disable yamllint for comments-indentation * chore: Disable yamllint for comments-indentation * feat(template/helm): Allow Pod priority, priorityClassName, and preemptionPolicy to be configured Part of stackabletech/issues#765 * fix(template/helm): Remove priority and preemptionPolicy. Note: These should be configured in a PriorityClass and the admission controller will stop you setting these on the pod directly.
1 parent b43316f commit 9937fb4

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

.yamllint.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ rules:
1313
check-keys: false
1414
comments:
1515
min-spaces-from-content: 1 # Needed due to https://github.com/adrienverge/yamllint/issues/443
16+
comments-indentation: disable # This is generally useless and interferes with commented example values
1617

1718
yaml-files:
1819
- '*.yaml'

template/.yamllint.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@ rules:
1212
min-spaces-from-content: 1 # Needed due to https://github.com/adrienverge/yamllint/issues/443
1313
indentation:
1414
indent-sequences: consistent
15+
comments-indentation: disable # This is generally useless and interferes with commented example values

template/deploy/helm/[[operator]]/templates/deployment.yaml.j2

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,9 @@ spec:
104104
tolerations:
105105
{{- toYaml . | nindent 8 }}
106106
{{- end }}
107+
{{- with .Values.priorityClassName }}
108+
priorityClassName: {{ . }}
109+
{{- end }}
107110
{[% else %}]
108111
# Templated Deployment disabled for this operator
109112
{[% endif %}]

0 commit comments

Comments
 (0)