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

Make hidden runbook_url annotations visible #217

Merged
merged 1 commit into from
Nov 1, 2024

Conversation

simu
Copy link
Member

@simu simu commented Oct 31, 2024

Some upstream Jsonnet hides the runbook_url annotation on alerts.

Because of that, some of our patches which insert the runbook_url annotation don't work correctly with go-jsonnet 0.20.0, which correctly inherits field visibility in object comprehension (e.g. com.makeMergeable()). This behavior will also be fixed in an upcoming C++ jsonnet version, cf. google/jsonnet#1140 so we adjust the component to make all runbook_url annotations visible.

Notably, the upstream Jsonnet which hides the annotation also sets it to null, so we can then clean up the unwanted runbook_url: null annotations by calling std.prune() on the annotations object.

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).
  • 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.

Some upstream Jsonnet hides the `runbook_url` annotation on alerts.

Because of that, some of our patches which insert the `runbook_url`
annotation don't work correctly with go-jsonnet 0.20.0, which correctly
inherits field visibility in object comprehension (e.g.
`com.makeMergeable()`). This behavior will also be fixed in an upcoming
C++ jsonnet version, cf. google/jsonnet#1140 so
we adjust the component to make all `runbook_url` annotations visible.

Notably, the upstream Jsonnet which hides the annotation also sets it to
`null`, so we can then clean up the unwanted `runbook_url: null`
annotations by calling `std.prune()` on the annotations object.
@simu simu added bug Something isn't working bump:patch labels Oct 31, 2024
@simu simu requested a review from a team as a code owner October 31, 2024 16:34
Copy link

github-actions bot commented Oct 31, 2024

🚀 This PR has been released as v6.5.1

Triggering workflows Release

🛠️ Auto tagging enabled with label bump:patch

@simu simu merged commit 6deb260 into master Nov 1, 2024
28 checks passed
@simu simu deleted the fix/prepare-for-gojsonnet branch November 1, 2024 08:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working bump:patch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants