Skip to content

Commit

Permalink
Add type labels to recorder (#25)
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Moore <mattmoor@chainguard.dev>
  • Loading branch information
mattmoor authored Dec 21, 2023
1 parent e3d0224 commit acde85a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cloudevent-recorder/recorder.tf
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,10 @@ module "recorder-dashboard" {
source = "../dashboard/cloudevent-receiver"
service_name = var.name

labels = {
for type, schema in var.types : replace(type, ".", "_") => ""
}

triggers = {
for type, schema in var.types : "type: ${type}" => "${var.name}-${random_id.trigger-suffix[type].hex}"
}
Expand Down

0 comments on commit acde85a

Please sign in to comment.