Skip to content

Commit

Permalink
feat!: update tf providers and modules (#101)
Browse files Browse the repository at this point in the history
  • Loading branch information
apeabody authored Jul 1, 2022
1 parent f1eae45 commit a92318f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 15 deletions.
10 changes: 3 additions & 7 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,9 @@ resource "random_id" "suffix" {
byte_length = 4
}


module "gke_auth" {
source = "terraform-google-modules/kubernetes-engine/google//modules/auth"
version = "~> 10.0"
version = "~> 21.0"

project_id = module.project_services.project_id
cluster_name = module.gke.name
Expand All @@ -46,16 +45,13 @@ module "gke_auth" {

provider "helm" {
kubernetes {
load_config_file = false
cluster_ca_certificate = module.gke_auth.cluster_ca_certificate
host = module.gke_auth.host
token = module.gke_auth.token
}
}

provider "kubernetes" {
load_config_file = false

cluster_ca_certificate = module.gke_auth.cluster_ca_certificate
host = module.gke_auth.host
token = module.gke_auth.token
Expand All @@ -64,7 +60,7 @@ provider "kubernetes" {
// Services
module "project_services" {
source = "terraform-google-modules/project-factory/google//modules/project_services"
version = "~> 11.0"
version = "~> 13.0"

project_id = var.project_id
disable_services_on_destroy = false
Expand Down Expand Up @@ -248,7 +244,7 @@ resource "google_storage_bucket" "gitlab-runner-cache" {
// GKE Cluster
module "gke" {
source = "terraform-google-modules/kubernetes-engine/google"
version = "~> 12.0"
version = "~> 21.0"

# Create an implicit dependency on service activation
project_id = module.project_services.project_id
Expand Down
13 changes: 7 additions & 6 deletions test/setup/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,14 @@

module "gke-gitlab-proj" {
source = "terraform-google-modules/project-factory/google"
version = "~> 11.0"
version = "~> 13.0"

name = "ci-gitlab"
random_project_id = true
org_id = var.org_id
folder_id = var.folder_id
billing_account = var.billing_account
name = "ci-gitlab"
random_project_id = true
org_id = var.org_id
folder_id = var.folder_id
billing_account = var.billing_account
disable_services_on_destroy = false

auto_create_network = true

Expand Down
4 changes: 2 additions & 2 deletions versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ terraform {
}
helm = {
source = "hashicorp/helm"
version = "~> 1.2.0"
version = "~> 2.0"
}
kubernetes = {
source = "hashicorp/kubernetes"
version = "~> 1.11.0"
version = "~> 2.0"
}
null = {
source = "hashicorp/null"
Expand Down

0 comments on commit a92318f

Please sign in to comment.