Browse Source

Merge pull request #8055 from aveshagarwal/master-descheduler-logging

Add debug level for descheduler role.
OpenShift Merge Robot 7 years ago
parent
commit
25eefe1449

+ 1 - 0
roles/openshift_descheduler/defaults/main.yaml

@@ -48,3 +48,4 @@ openshift_descheduler_cronjob_schedule: "*/1 0 * * *"
 # descheduler container setup
 openshift_descheduler_dry_run_mode: true
 openshift_descheduler_node_selectors: null
+openshift_descheduler_debug_level: "{{ debug_level | default(2) }}"

+ 1 - 0
roles/openshift_descheduler/templates/descheduler-cronjob.yaml.j2

@@ -21,6 +21,7 @@ spec:
             - /bin/descheduler
             args:
             - --policy-config-file=/policy-dir/policy.yaml
+            - --v={{ openshift_descheduler_debug_level }}
 {% if openshift_descheduler_dry_run_mode is defined and (openshift_descheduler_dry_run_mode | bool) %}
             - --dry-run
 {% endif %}