Skip to content

Commit

Permalink
fix!: update examples, bump gke module version (#52)
Browse files Browse the repository at this point in the history
* fix!: update examples, bump gke module version

* bump img
  • Loading branch information
bharathkkb authored Feb 2, 2022
1 parent 1aebd31 commit 882578e
Show file tree
Hide file tree
Showing 17 changed files with 25 additions and 28 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# Make will use bash instead of sh
SHELL := /usr/bin/env bash

DOCKER_TAG_VERSION_DEVELOPER_TOOLS := 1.1
DOCKER_TAG_VERSION_DEVELOPER_TOOLS := 1.3
DOCKER_IMAGE_DEVELOPER_TOOLS := cft/developer-tools
REGISTRY_URL := gcr.io/cloud-foundation-cicd

Expand Down
2 changes: 1 addition & 1 deletion build/int.cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,4 @@ tags:
- 'integration'
substitutions:
_DOCKER_IMAGE_DEVELOPER_TOOLS: 'cft/developer-tools'
_DOCKER_TAG_VERSION_DEVELOPER_TOOLS: '1.1'
_DOCKER_TAG_VERSION_DEVELOPER_TOOLS: '1.3'
2 changes: 1 addition & 1 deletion build/lint.cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ tags:
- 'lint'
substitutions:
_DOCKER_IMAGE_DEVELOPER_TOOLS: 'cft/developer-tools'
_DOCKER_TAG_VERSION_DEVELOPER_TOOLS: '1.0'
_DOCKER_TAG_VERSION_DEVELOPER_TOOLS: '1.3'
4 changes: 2 additions & 2 deletions examples/gh-org-runner-mig-native-simple/providers.tf
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ terraform {
required_providers {
google = {
source = "hashicorp/google"
version = "~> 3.53, < 5.0.0"
version = "~> 4.0"
}
google-beta = {
source = "hashicorp/google-beta"
version = "~> 3.53, < 5.0.0"
version = "~> 4.0"
}
}
required_version = ">= 0.13"
Expand Down
2 changes: 0 additions & 2 deletions examples/gh-runner-gke-dind/providers.tf
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ data "google_client_config" "default" {
}

provider "kubernetes" {
version = "~> 1.10"
load_config_file = false
host = module.runner-gke.kubernetes_endpoint
token = data.google_client_config.default.access_token
cluster_ca_certificate = base64decode(module.runner-gke.ca_certificate)
Expand Down
6 changes: 3 additions & 3 deletions examples/gh-runner-gke-dind/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ terraform {
required_providers {
google = {
source = "hashicorp/google"
version = "~> 3.1"
version = "~> 4.0"
}
google-beta = {
source = "hashicorp/google-beta"
version = "~> 3.1"
version = "~> 4.0"
}
kubernetes = {
source = "hashicorp/kubernetes"
version = "~> 1.10"
version = "~> 2.0"
}
}
required_version = ">= 0.13"
Expand Down
2 changes: 0 additions & 2 deletions examples/gh-runner-gke-simple/providers.tf
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ data "google_client_config" "default" {
}

provider "kubernetes" {
version = "~> 1.10"
load_config_file = false
host = module.runner-gke.kubernetes_endpoint
token = data.google_client_config.default.access_token
cluster_ca_certificate = base64decode(module.runner-gke.ca_certificate)
Expand Down
6 changes: 3 additions & 3 deletions examples/gh-runner-gke-simple/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ terraform {
required_providers {
google = {
source = "hashicorp/google"
version = "~> 3.1"
version = "~> 4.0"
}
google-beta = {
source = "hashicorp/google-beta"
version = "~> 3.1"
version = "~> 4.0"
}
kubernetes = {
source = "hashicorp/kubernetes"
version = "~> 1.10"
version = "~> 2.0"
}
}
required_version = ">= 0.13"
Expand Down
4 changes: 2 additions & 2 deletions examples/gh-runner-mig-container-vm-dind/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ terraform {
required_providers {
google = {
source = "hashicorp/google"
version = "~> 3.53, < 5.0.0"
version = "~> 4.0"
}
google-beta = {
source = "hashicorp/google-beta"
version = "~> 3.53, < 5.0.0"
version = "~> 4.0"
}
}
required_version = ">= 0.13"
Expand Down
4 changes: 2 additions & 2 deletions examples/gh-runner-mig-container-vm-simple/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ terraform {
required_providers {
google = {
source = "hashicorp/google"
version = "~> 3.53, < 5.0.0"
version = "~> 4.0"
}
google-beta = {
source = "hashicorp/google-beta"
version = "~> 3.53, < 5.0.0"
version = "~> 4.0"
}
}
required_version = ">= 0.13"
Expand Down
4 changes: 2 additions & 2 deletions examples/gh-runner-mig-native-packer/providers.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@


provider "google" {
version = "~> 3.16"
version = "~> 4.0"
}

provider "google-beta" {
version = "~> 3.16"
version = "~> 4.0"
}
4 changes: 2 additions & 2 deletions examples/gh-runner-mig-native-simple/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ terraform {
required_providers {
google = {
source = "hashicorp/google"
version = "~> 3.53, < 5.0.0"
version = "~> 4.0"
}
google-beta = {
source = "hashicorp/google-beta"
version = "~> 3.53, < 5.0.0"
version = "~> 4.0"
}
}
required_version = ">= 0.13"
Expand Down
1 change: 1 addition & 0 deletions kitchen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
driver:
name: terraform
command_timeout: 2700
verify_version: false

provisioner:
name: terraform
Expand Down
2 changes: 1 addition & 1 deletion modules/gh-runner-gke/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ resource "google_compute_subnetwork" "gh-subnetwork" {
*****************************************/
module "runner-cluster" {
source = "terraform-google-modules/kubernetes-engine/google//modules/beta-public-cluster/"
version = "~> 14.1"
version = "~> 19.0"
project_id = var.project_id
name = "gh-runner-${var.repo_name}"
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 = "~> 3.53, < 5.0.0"
version = ">= 4.3.0, < 5.0"
}
}

Expand Down
2 changes: 1 addition & 1 deletion modules/gh-runner-mig-container-vm/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ terraform {

google = {
source = "hashicorp/google"
version = "~> 3.53, < 5.0.0"
version = ">= 3.53, < 5.0.0"
}
}

Expand Down
4 changes: 2 additions & 2 deletions modules/gh-runner-mig-vm/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ terraform {

google = {
source = "hashicorp/google"
version = "~> 3.53, < 5.0.0"
version = ">= 3.53, < 5.0.0"
}
google-beta = {
source = "hashicorp/google-beta"
version = "~> 3.53, < 5.0.0"
version = ">= 3.53, < 5.0.0"
}
}

Expand Down

0 comments on commit 882578e

Please sign in to comment.