Skip to content

Commit

Permalink
fix filter and entity_check as suggested
Browse files Browse the repository at this point in the history
Co-authored-by: Watson Yuuma Sato <[email protected]>
  • Loading branch information
sluetze and yuumasato authored Aug 20, 2024
1 parent af1c4f8 commit ab8fd59
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ ocil: |-
<pre>$ oc get kubedeschedulers.operator.openshift.io --all-namespaces </pre>
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(.items[].spec.profiles[]; . =="LifecycleAndUtilization")) == true and ((.items[].spec.deschedulingIntervalSeconds &lt;= {{.kube_descheduler_interval}}) == true) then true else false end]' %}}
{{% set jqfilter = '[ .items[].spec | if any(.profiles[]; . =="LifecycleAndUtilization") and .deschedulingIntervalSeconds &lt;= {{.kube_descheduler_interval}} then true else false end]' %}}

warnings:
- general: |-
Expand All @@ -37,3 +37,4 @@ template:
values:
- value: "true"
operation: "equals"
entity_check: "at least one"

0 comments on commit ab8fd59

Please sign in to comment.