mirror of
https://github.com/kubernetes-sigs/descheduler.git
synced 2026-01-25 20:59:28 +01:00
helm: Allow the use of existing policy configMap (#1376)
* Allow the use of existing policy configMap. * Update charts/descheduler/templates/configmap.yaml Co-authored-by: Amir Alavi <amiralavi7@gmail.com> * Remove references to unused variable and update documentation regarding deschedulerPolicy * Add missing newLine at EOF * Update charts/descheduler/values.yaml * remove trailing space --------- Co-authored-by: Amir Alavi <amiralavi7@gmail.com>
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
{{- if .Values.deschedulerPolicy }}
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
@@ -10,3 +11,4 @@ data:
|
||||
apiVersion: "{{ .Values.deschedulerPolicyAPIVersion }}"
|
||||
kind: "DeschedulerPolicy"
|
||||
{{ toYaml .Values.deschedulerPolicy | trim | indent 4 }}
|
||||
{{- end }}
|
||||
|
||||
@@ -81,6 +81,10 @@ cmdOptions:
|
||||
# Recommended to use the latest Policy API version supported by the Descheduler app version
|
||||
deschedulerPolicyAPIVersion: "descheduler/v1alpha2"
|
||||
|
||||
# deschedulerPolicy contains the policies the descheduler will execute.
|
||||
# To use policies stored in an existing configMap use:
|
||||
# NOTE: The name of the cm should comply to {{ template "descheduler.fullname" . }}
|
||||
# deschedulerPolicy: {}
|
||||
deschedulerPolicy:
|
||||
# nodeSelector: "key1=value1,key2=value2"
|
||||
# maxNoOfPodsToEvictPerNode: 10
|
||||
|
||||
Reference in New Issue
Block a user