Skip to content

Commit

Permalink
Implemented fix for aggregation:kyverno_policy_job_status_team
Browse files Browse the repository at this point in the history
  • Loading branch information
Strigix committed Nov 2, 2023
1 parent 15af424 commit 5f9a2dc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Changed

- fixed `aggregation:kyverno_policy_job_status_team` expression.

### Added

- Recording rules for Tempo
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -409,10 +409,10 @@ spec:
}, "job", ",", "name")
) by (job, category, policy, status)
* on(job) group_left(team, app) sum(
label_join(label_join(kube_job_labels{
label_join(label_join(label_join(kube_job_labels{
cluster_type="management_cluster",
label_application_giantswarm_io_team!=""
}, "app", ",", "label_app_kubernetes_io_name"), "team", ",", "label_application_giantswarm_io_team")
}, "app", ",", "label_app_kubernetes_io_name"), "team", ",", "label_application_giantswarm_io_team"), "job", ",", "job_name")
) by (team, app, job),
"name", ",", "job")
record: aggregation:kyverno_policy_job_status_team
Expand Down

0 comments on commit 5f9a2dc

Please sign in to comment.