Skip to content

Commit 4000acf

Browse files
committed
Merge branch 'helm-priority-values' into 'main'
Support priority and priorityClassName for operator See merge request weblogic-cloud/weblogic-kubernetes-operator!5021
2 parents a008397 + d040d0b commit 4000acf

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

kubernetes/charts/weblogic-operator/templates/_operator-dep.tpl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,12 @@ spec:
5252
tolerations:
5353
{{- toYaml . | nindent 8 }}
5454
{{- end }}
55+
{{- if (hasKey . "priority") }}
56+
priority: {{ int .priority }}
57+
{{- end }}
58+
{{- if (hasKey . "priorityClassName") }}
59+
priorityClassName: {{ .priorityClassName | quote }}
60+
{{- end }}
5561
initContainers:
5662
- name: "copy-container"
5763
image: {{ .image | quote }}

kubernetes/charts/weblogic-operator/values.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,14 @@ clusterSizePaddingValidationEnabled: true
274274
# If not specified, it defaults to the user specified in the operator's container image.
275275
#runAsUser: 1000
276276

277+
# priority specifies the operator and webhook pod priority.
278+
# See https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/
279+
#priority: 100
280+
281+
# priorityClassName specifies the operator and webhook priority class name.
282+
# See https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/
283+
#priorityClassName: name-of-priority-class
284+
277285
# jvmOptions specifies a value used to control the Java process that runs the operator, such as the maximum heap size
278286
# that will be allocated.
279287
#jvmOptions: -XshowSettings:vm -XX:MaxRAMPercentage=70

0 commit comments

Comments
 (0)