Skip to content

Commit

Permalink
fix: annotations serverside diffs (#92)
Browse files Browse the repository at this point in the history
Co-authored-by: Andrew Peabody <andrewpeabody@google.com>
  • Loading branch information
bharathkkb and apeabody authored Mar 14, 2023
1 parent 2b5455c commit af92754
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand Down

0 comments on commit af92754

Please sign in to comment.