Skip to content

Commit 7e35714

Browse files
Patch Cloudrun Annotations Diff (#4450) (#2920)
Co-authored-by: upodroid <[email protected]> Signed-off-by: Modular Magician <[email protected]> Co-authored-by: upodroid <[email protected]>
1 parent 5fdee11 commit 7e35714

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.changelog/4450.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:bug
2+
cloudrun: supressed `run.googleapis.com/ingress-status` annotation in `google_cloud_run_service`
3+
```

google-beta/resource_cloud_run_service.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ func revisionNameCustomizeDiff(_ context.Context, diff *schema.ResourceDiff, v i
3636
return nil
3737
}
3838

39-
var cloudRunGoogleProvidedAnnotations = regexp.MustCompile("serving\\.knative\\.dev/(?:(?:creator)|(?:lastModifier))$")
39+
var cloudRunGoogleProvidedAnnotations = regexp.MustCompile(`serving\\.knative\\.dev/(?:(?:creator)|(?:lastModifier))$|run\\.googleapis\\.com/(?:(?:ingress-status))$`)
4040

4141
func cloudrunAnnotationDiffSuppress(k, old, new string, d *schema.ResourceData) bool {
4242
// Suppress diffs for the annotations provided by Google

0 commit comments

Comments
 (0)