Skip to content

Commit

Permalink
fix: revert and add provider constraint
Browse files Browse the repository at this point in the history
  • Loading branch information
gtsorbo committed Sep 20, 2024
1 parent c9589a6 commit 3d8f0be
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
7 changes: 3 additions & 4 deletions examples/oidc-simple/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,9 @@ module "oidc" {
source = "terraform-google-modules/github-actions-runners/google//modules/gh-oidc"
version = "~> 3.0"

project_id = var.project_id
pool_id = "example-pool"
provider_id = "example-gh-provider"
attribute_condition = "assertion.repository_owner_id=='1342004'"
project_id = var.project_id
pool_id = "example-pool"
provider_id = "example-gh-provider"
sa_mapping = {
(google_service_account.sa.account_id) = {
sa_name = google_service_account.sa.name
Expand Down
3 changes: 1 addition & 2 deletions modules/gh-runner-gke/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,12 @@ resource "google_compute_subnetwork" "gh-subnetwork" {
ip_cidr_range = var.ip_range_services_cider
}
}

/*****************************************
Runner GKE
*****************************************/
module "runner-cluster" {
source = "terraform-google-modules/kubernetes-engine/google//modules/beta-public-cluster/"
version = "~> 33.0"
version = "~> 32.0"
project_id = var.project_id
name = "gh-runner-${var.cluster_suffix}"
regional = false
Expand Down
2 changes: 1 addition & 1 deletion modules/gh-runner-gke/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ terraform {

google = {
source = "hashicorp/google"
version = ">= 4.3.0, < 7"
version = ">= 4.3.0, < 6.2"
}

kubernetes = {
Expand Down

0 comments on commit 3d8f0be

Please sign in to comment.