Skip to content

Commit fd24aed

Browse files
modular-magicianrileykarson
authored andcommitted
Bump image timeout, add service to binauth basic (#4649)
Signed-off-by: Modular Magician <[email protected]>
1 parent 897e609 commit fd24aed

File tree

3 files changed

+18
-6
lines changed

3 files changed

+18
-6
lines changed

google/resource_binaryauthorization_policy_test.go

+12
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,11 @@ resource "google_project" "project" {
6868
org_id = "%s"
6969
billing_account = "%s"
7070
}
71+
72+
resource "google_project_service" "binauthz" {
73+
project = "${google_project.project.project_id}"
74+
service = "binaryauthorization.googleapis.com"
75+
}
7176
`, pid, pname, org, billing)
7277
}
7378

@@ -81,6 +86,11 @@ resource "google_project" "project" {
8186
billing_account = "%s"
8287
}
8388
89+
resource "google_project_service" "binauthz" {
90+
project = "${google_project.project.project_id}"
91+
service = "binaryauthorization.googleapis.com"
92+
}
93+
8494
resource "google_binary_authorization_policy" "policy" {
8595
project = "${google_project.project.project_id}"
8696
@@ -92,6 +102,8 @@ resource "google_binary_authorization_policy" "policy" {
92102
evaluation_mode = "ALWAYS_DENY"
93103
enforcement_mode = "ENFORCED_BLOCK_AND_AUDIT_LOG"
94104
}
105+
106+
depends_on = ["google_project_service.binauthz"]
95107
}
96108
`, pid, pname, org, billing)
97109
}

google/resource_compute_image.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ func resourceComputeImage() *schema.Resource {
3838
},
3939

4040
Timeouts: &schema.ResourceTimeout{
41-
Create: schema.DefaultTimeout(4 * time.Minute),
42-
Update: schema.DefaultTimeout(4 * time.Minute),
43-
Delete: schema.DefaultTimeout(4 * time.Minute),
41+
Create: schema.DefaultTimeout(6 * time.Minute),
42+
Update: schema.DefaultTimeout(6 * time.Minute),
43+
Delete: schema.DefaultTimeout(6 * time.Minute),
4444
},
4545

4646
Schema: map[string]*schema.Schema{

website/docs/r/compute_image.html.markdown

+3-3
Original file line numberDiff line numberDiff line change
@@ -200,9 +200,9 @@ In addition to the arguments listed above, the following computed attributes are
200200
This resource provides the following
201201
[Timeouts](/docs/configuration/resources.html#timeouts) configuration options:
202202

203-
- `create` - Default is 4 minutes.
204-
- `update` - Default is 4 minutes.
205-
- `delete` - Default is 4 minutes.
203+
- `create` - Default is 6 minutes.
204+
- `update` - Default is 6 minutes.
205+
- `delete` - Default is 6 minutes.
206206

207207
## Import
208208

0 commit comments

Comments
 (0)