Skip to content

Commit

Permalink
Update kind to 1.28.0
Browse files Browse the repository at this point in the history
Hardcode GKE version for now
  • Loading branch information
curtbushko committed Oct 30, 2023
1 parent 0d85bbc commit 6789bcc
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ jobs:
with:
workflow: test.yml
repo: hashicorp/consul-k8s-workflows
ref: mw/1-18-parallel-tproxy
ref: main
token: ${{ secrets.ELEVATED_GITHUB_TOKEN }}
inputs: '{ "context":"${{ env.CONTEXT }}", "repository":"${{ github.repository }}", "branch":"${{ env.BRANCH }}", "sha":"${{ env.SHA }}", "token":"${{ secrets.ELEVATED_GITHUB_TOKEN }}" }'
2 changes: 1 addition & 1 deletion acceptance/ci-inputs/kind-inputs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
# SPDX-License-Identifier: MPL-2.0

kindVersion: v0.19.0
kindNodeImage: kindest/node:v1.27.1
kindNodeImage: kindest/node:v1.28.0@sha256:dad5a6238c5e41d7cac405fae3b5eda2ad1de6f1190fa8bfc64ff5bb86173213
kubectlVersion: v1.27.1
17 changes: 13 additions & 4 deletions charts/consul/test/terraform/gke/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
terraform {
required_providers {
google = {
version = "~> 4.58.0"
version = "~> 5.3.0"
}
}
}
Expand All @@ -21,7 +21,7 @@ resource "random_id" "suffix" {

data "google_container_engine_versions" "main" {
location = var.zone
version_prefix = "1.25.9"
version_prefix = "1.28."
}

# We assume that the subnets are already created to save time.
Expand All @@ -37,14 +37,23 @@ resource "google_container_cluster" "cluster" {
project = var.project
initial_node_count = 3
location = var.zone
min_master_version = data.google_container_engine_versions.main.latest_master_version
node_version = data.google_container_engine_versions.main.latest_master_version
# 2023-10-30 - There is a bug with the terraform provider where lastest_master_version is not being returned by the
# api. Hardcode GKE version for now.
#min_master_version = data.google_container_engine_versions.main.latest_master_version
#node_version = data.google_container_engine_versions.main.latest_master_version
min_master_version = "1.28.2-gke.1157000"
node_version = "1.28.2-gke.1157000"
node_config {
tags = ["consul-k8s-${random_id.suffix[count.index].dec}"]
machine_type = "e2-standard-8"
}
subnetwork = data.google_compute_subnetwork.subnet.name
resource_labels = var.labels

release_channel {
channel = "RAPID"
}
deletion_protection = false
}

resource "google_compute_firewall" "firewall-rules" {
Expand Down
4 changes: 4 additions & 0 deletions charts/consul/test/terraform/gke/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,7 @@ output "cluster_names" {
output "kubeconfigs" {
value = [for cl in google_container_cluster.cluster : format("$HOME/.kube/%s", cl.name)]
}

output "versions" {
value = data.google_container_engine_versions.main
}

0 comments on commit 6789bcc

Please sign in to comment.