Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make hidden
runbook_url
annotations visible
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.
- Loading branch information