Skip to content

Commit

Permalink
Discard garbage-collection jobs from selector (#132)
Browse files Browse the repository at this point in the history
Signed-off-by: Raul Sevilla <[email protected]>
Co-authored-by: vishnuchalla <[email protected]>
  • Loading branch information
rsevilla87 and vishnuchalla authored Sep 11, 2024
1 parent d322cf8 commit c504fc1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion assets/kube-burner-report-mode/variables.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ local var = g.dashboard.variable;
+ var.query.generalOptions.withLabel('Cluster Type'),

job:
var.query.new('job', '{"find": "terms", "field": "jobConfig.name.keyword", "query": "platform.keyword: $platform AND sdnType.keyword: $sdn AND clusterType.keyword: $clusterType"}')
var.query.new('job', '{"find": "terms", "field": "jobConfig.name.keyword", "query": "platform.keyword: $platform AND sdnType.keyword: $sdn AND clusterType.keyword: $clusterType AND NOT jobConfig.name.keyword: garbage-collection"}')
+ var.query.withDatasourceFromVariable(self.Datasource)
+ var.query.withRefresh(1)
+ var.query.selectionOptions.withMulti(false)
Expand Down
2 changes: 1 addition & 1 deletion assets/kube-burner-report-ocp-wrapper/variables.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ local var = g.dashboard.variable;
+ var.query.generalOptions.withLabel('SDN type'),

job:
var.query.new('job', '{"find": "terms", "field": "jobConfig.name.keyword", "query": "platform.keyword: $platform AND sdnType.keyword: $sdn"}')
var.query.new('job', '{"find": "terms", "field": "jobConfig.name.keyword", "query": "platform.keyword: $platform AND sdnType.keyword: $sdn" AND NOT jobConfig.name.keyword: garbage-collection}')
+ var.query.withDatasourceFromVariable(self.Datasource)
+ var.query.withRefresh(1)
+ var.query.selectionOptions.withMulti(false)
Expand Down

0 comments on commit c504fc1

Please sign in to comment.