Files
releases/e2e/cli
Stephan Renatus 6398df6069 topdown: change labels aggregation and merge logic (#8656)
Thought about it some more, and I think this is how it is less
surprising:

```rego
# METADATA
# labels:
#   app: foo
package foo

# METADATA
# labels:
#   id: allow-01
allow if { ...  }
```

Evaluating `data.foo.allow` successfully will yield a single entry in
`rule_labels`:

```json
{
    "app": "foo",
    "id": "allow-01"
}
```

Labels are merged along their annotations chain.

Signed-off-by: Stephan Renatus <stephan.renatus@gmail.com>
2026-05-18 09:33:39 +00:00
..