Skip to content

Commit

Permalink
alerting : exclude provisioner for alerting on running cloud run job (#…
Browse files Browse the repository at this point in the history
…255)

do not alert when provisioner runs a cloudrun job.

Signed-off-by: Kenny Leung <kleung@chainguard.dev>
  • Loading branch information
k4leung4 committed Apr 9, 2024
1 parent 02050bb commit c2c89fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/cron/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ resource "google_monitoring_alert_policy" "anomalous-job-execution" {
])}")
-- Allow the delivery service account to run the job, but flag anyone else
-protoPayload.authenticationInfo.principalEmail="${google_service_account.delivery.email}"
-protoPayload.authenticationInfo.principalEmail=~"${join("|", [google_service_account.delivery.email, data.google_client_openid_userinfo.me.email])}"
EOT

label_extractors = {
Expand Down

0 comments on commit c2c89fd

Please sign in to comment.