Skip to content

Commit

Permalink
Bump image timeout, add service to binauth basic (#2455)
Browse files Browse the repository at this point in the history
Merged PR #2455.
  • Loading branch information
rileykarson authored and modular-magician committed Oct 10, 2019
1 parent f10392b commit be81b7d
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build/inspec
Submodule inspec updated 3 files
+7 −2 CHANGELOG.md
+1 −1 VERSION
+1 −1 inspec.yml
2 changes: 1 addition & 1 deletion build/terraform
2 changes: 1 addition & 1 deletion build/terraform-beta
4 changes: 4 additions & 0 deletions products/compute/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4021,6 +4021,10 @@ objects:
path: 'name'
base_url: 'projects/{{project}}/global/operations/{{op_id}}'
wait_ms: 1000
timeouts: !ruby/object:Api::Timeouts
insert_minutes: 6
update_minutes: 6
delete_minutes: 6
result: !ruby/object:Api::Async::Result
path: 'targetLink'
status: !ruby/object:Api::Async::Status
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,11 @@ resource "google_project" "project" {
org_id = "%s"
billing_account = "%s"
}

resource "google_project_service" "binauthz" {
project = "${google_project.project.project_id}"
service = "binaryauthorization.googleapis.com"
}
`, pid, pname, org, billing)
}

Expand All @@ -203,6 +208,11 @@ resource "google_project" "project" {
billing_account = "%s"
}

resource "google_project_service" "binauthz" {
project = "${google_project.project.project_id}"
service = "binaryauthorization.googleapis.com"
}

resource "google_binary_authorization_policy" "policy" {
project = "${google_project.project.project_id}"

Expand All @@ -214,6 +224,8 @@ resource "google_binary_authorization_policy" "policy" {
evaluation_mode = "ALWAYS_DENY"
enforcement_mode = "ENFORCED_BLOCK_AND_AUDIT_LOG"
}

depends_on = ["google_project_service.binauthz"]
}
`, pid, pname, org, billing)
}
Expand Down

0 comments on commit be81b7d

Please sign in to comment.