Skip to content

Commit c2964fa

Browse files
[CI] Use age Instead of days_since_noncurrent_time
I was apparently following the example from the documentation too closely. We do not want to use days_since_noncurrent time since it only applies to versioned objects which we do not have. Use age like I originally intentioned.
1 parent 04f7fc9 commit c2964fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

premerge/gke_cluster/main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ resource "google_storage_bucket" "object_cache_linux" {
181181
type = "Delete"
182182
}
183183
condition {
184-
days_since_noncurrent_time = 1
184+
age = 1
185185
}
186186
}
187187
}
@@ -202,7 +202,7 @@ resource "google_storage_bucket" "object_cache_windows" {
202202
type = "Delete"
203203
}
204204
condition {
205-
days_since_noncurrent_time = 1
205+
age = 1
206206
}
207207
}
208208
}

0 commit comments

Comments
 (0)