Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use syn-teams.libsonnet for alert routing discovery and alert patching #224

Merged
merged 2 commits into from
Dec 23, 2024

Conversation

simu
Copy link
Member

@simu simu commented Dec 19, 2024

This PR switches the alert routing discovery and alert patching to use the new syn-teams.libsonnet Jsonnet library. This library is hosted at https://github.com/projectsyn/jsonnet-libs and is intended to be used by all components which interact with parameters.syn.owner and parameters.syn.teams.

TODO

Checklist

  • The PR has a meaningful title. It will be used to auto-generate the
    changelog.
    The PR has a meaningful description that sums up the change. It will be
    linked in the changelog.
  • PR contains a single logical change (to build a better changelog).
  • Update the documentation.
  • Categorize the PR by adding one of the labels:
    bug, enhancement, documentation, change, breaking, dependency
    as they show up in the changelog.
  • Link this PR to related issues or PRs.

This is necessary because the projectsyn/jsonnet-libs version of
`teamForApplication()` expects that the `applications` list contains all
instances present on the cluster. Without adding `openshift4-monitoring`
the alert patching doesn't do the right thing anymore.

We add the application in a separate commit so we can properly verify
that the switch to `projectsyn/jsonnet-libs/syn-teams.libsonnet` doesn't
introduce any changes.
@simu simu added the change label Dec 19, 2024
@simu simu requested a review from a team as a code owner December 19, 2024 15:45
@simu simu changed the title Feat/use projectsyn jsonnet libs Use syn-teams.libsonnet for alert routing discovery and alert patching Dec 19, 2024
jsonnetfile.jsonnet Outdated Show resolved Hide resolved
lib/openshift4-monitoring-alert-patching.libsonnet Outdated Show resolved Hide resolved
Copy link
Member

@haasad haasad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good to merge when the leftover variable is removed 👍

We switch the alertrouting discovery and alert patching to use the new
`syn-teams.libsonnet` Jsonnet library. This library is hosted at
https://github.com/projectsyn/jsonnet-libs and is intended to be used by
all components which interact with `parameters.syn.owner` and
`parameters.syn.teams`.
@simu simu force-pushed the feat/use-projectsyn-jsonnet-libs branch from 2993010 to 12a24e3 Compare December 20, 2024 15:09
Copy link

github-actions bot commented Dec 23, 2024

🚀 This PR has been released as v6.7.0

Triggering workflows Release

🛠️ Auto tagging enabled with label bump:minor

@simu simu merged commit 27d8c24 into master Dec 23, 2024
28 checks passed
@simu simu deleted the feat/use-projectsyn-jsonnet-libs branch December 23, 2024 09:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants