diff --git a/applications/openshift/general/kube_descheduler_lifecycle_policy/rule.yml b/applications/openshift/general/kube_descheduler_lifecycle_policy/rule.yml index 5b53cdd6bb0..8053715d3f1 100644 --- a/applications/openshift/general/kube_descheduler_lifecycle_policy/rule.yml +++ b/applications/openshift/general/kube_descheduler_lifecycle_policy/rule.yml @@ -17,20 +17,20 @@ ocil_clause: "The LifecycleAndUtilization profile for the Kube Descheduler opera ocil: |- Run the following command to edit the KubeDescheduler object: -
$ oc edit kubedeschedulers.operator.openshift.io cluster -n openshift-kube-descheduler-operator 
+
$ oc get kubedeschedulers.operator.openshift.io --all-namespaces 
Make sure the LifecycleAndUtilization profile is listed under .spec.profiles and the correct time between descheduler runs is set under .spec.deschedulingIntervalSeconds -{{% set jqfilter = '[if (any(.spec.profiles[]; . =="LifecycleAndUtilization")) == true and ((.spec.deschedulingIntervalSeconds <= {{.kube_descheduler_interval}}) == true) then true else false end]' %}} +{{% set jqfilter = '[if (any(.items[].spec.profiles[]; . =="LifecycleAndUtilization")) == true and ((.items[].spec.deschedulingIntervalSeconds <= {{.kube_descheduler_interval}}) == true) then true else false end]' %}} warnings: - general: |- - {{{ openshift_filtered_cluster_setting({'/apis/operator.openshift.io/v1/namespaces/openshift-kube-descheduler-operator/kubedeschedulers/cluster': jqfilter}) | indent(4) }}} + {{{ openshift_filtered_cluster_setting({'/apis/operator.openshift.io/v1/kubedeschedulers': jqfilter}) | indent(4) }}} template: name: yamlfile_value vars: ocp_data: "true" - filepath: {{{ openshift_filtered_path('/apis/operator.openshift.io/v1/namespaces/openshift-kube-descheduler-operator/kubedeschedulers/cluster', jqfilter) }}} + filepath: {{{ openshift_filtered_path('/apis/operator.openshift.io/v1/kubedeschedulers', jqfilter) }}} yamlpath: "[:]" check_existence: "all_exist" entity_check: "all"