From af927547a9d86ecb3656ea0e9c5e4bfcb5f518ea Mon Sep 17 00:00:00 2001 From: Bharath KKB Date: Mon, 13 Mar 2023 19:11:31 -0500 Subject: [PATCH] fix: annotations serverside diffs (#92) Co-authored-by: Andrew Peabody --- main.tf | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/main.tf b/main.tf index 45f5f767..c510a7fa 100644 --- a/main.tf +++ b/main.tf @@ -121,6 +121,18 @@ resource "google_cloud_run_service" "main" { tag = lookup(traffic.value, "tag", null) } } + + lifecycle { + ignore_changes = [ + metadata[0].annotations["client.knative.dev/user-image"], + metadata[0].annotations["run.googleapis.com/client-name"], + metadata[0].annotations["run.googleapis.com/client-version"], + metadata[0].annotations["run.googleapis.com/operation-id"], + template[0].metadata[0].annotations["client.knative.dev/user-image"], + template[0].metadata[0].annotations["run.googleapis.com/client-name"], + template[0].metadata[0].annotations["run.googleapis.com/client-version"], + ] + } } resource "google_cloud_run_domain_mapping" "domain_map" {