Skip to content

Commit

Permalink
Merge branch 'master' into feat/private-cluster
Browse files Browse the repository at this point in the history
  • Loading branch information
gtsorbo authored Sep 20, 2024
2 parents bd76135 + 658acb0 commit 2b3cc83
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 18 deletions.
8 changes: 6 additions & 2 deletions examples/gh-runner-gke-dind-rootless/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,15 @@

terraform {
required_providers {
# TODO: undo version constraint pending provider bug
# https://github.com/GoogleCloudPlatform/magic-modules/pull/11688
google = {
source = "hashicorp/google"
source = "hashicorp/google"
version = ">= 4.3.0, < 5.44"
}
google-beta = {
source = "hashicorp/google-beta"
source = "hashicorp/google-beta"
version = ">= 4.3.0, < 5.44"
}
kubernetes = {
source = "hashicorp/kubernetes"
Expand Down
8 changes: 6 additions & 2 deletions examples/gh-runner-gke-dind/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,15 @@

terraform {
required_providers {
# TODO: undo version constraint pending provider bug
# https://github.com/GoogleCloudPlatform/magic-modules/pull/11688
google = {
source = "hashicorp/google"
source = "hashicorp/google"
version = ">= 4.3.0, < 5.44"
}
google-beta = {
source = "hashicorp/google-beta"
source = "hashicorp/google-beta"
version = ">= 4.3.0, < 5.44"
}
kubernetes = {
source = "hashicorp/kubernetes"
Expand Down
8 changes: 6 additions & 2 deletions examples/gh-runner-gke-simple/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,15 @@

terraform {
required_providers {
# TODO: undo version constraint pending provider bug
# https://github.com/GoogleCloudPlatform/magic-modules/pull/11688
google = {
source = "hashicorp/google"
source = "hashicorp/google"
version = ">= 4.3.0, < 5.44"
}
google-beta = {
source = "hashicorp/google-beta"
source = "hashicorp/google-beta"
version = ">= 4.3.0, < 5.44"
}
kubernetes = {
source = "hashicorp/kubernetes"
Expand Down
7 changes: 4 additions & 3 deletions examples/oidc-simple/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,10 @@ module "oidc" {
source = "terraform-google-modules/github-actions-runners/google//modules/gh-oidc"
version = "~> 4.0"

project_id = var.project_id
pool_id = "example-pool"
provider_id = "example-gh-provider"
project_id = var.project_id
pool_id = "example-pool"
provider_id = "example-gh-provider"
attribute_condition = "assertion.repository_owner_id=='1342004'"
sa_mapping = {
(google_service_account.sa.account_id) = {
sa_name = google_service_account.sa.name
Expand Down
19 changes: 10 additions & 9 deletions modules/gh-runner-gke/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,16 @@ resource "google_compute_subnetwork" "gh-subnetwork" {
ip_cidr_range = var.subnet_ip
region = var.region
network = google_compute_network.gh-network[0].name
secondary_ip_range = [
{
range_name = var.ip_range_pods_name
ip_cidr_range = var.ip_range_pods_cidr
},
{ range_name = var.ip_range_services_name
ip_cidr_range = var.ip_range_services_cider
}
]

secondary_ip_range {
range_name = var.ip_range_pods_name
ip_cidr_range = var.ip_range_pods_cidr
}

secondary_ip_range {
range_name = var.ip_range_services_name
ip_cidr_range = var.ip_range_services_cider
}
}
/*****************************************
Runner GKE
Expand Down
5 changes: 5 additions & 0 deletions modules/gh-runner-gke/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ terraform {
version = ">= 4.3.0, < 7"
}

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

kubernetes = {
source = "hashicorp/kubernetes"
version = "~> 2.0"
Expand Down

0 comments on commit 2b3cc83

Please sign in to comment.