Skip to content

Commit

Permalink
refactor: make k8s version a variable and mandatory
Browse files Browse the repository at this point in the history
  • Loading branch information
mirestrepo committed Jan 11, 2023
1 parent 715a195 commit 5b08be3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions examples/sample-jhub/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ module "sample-jhub" {
record_domain = local.jhub_domain

# ---------------- CLUSTER VARIABLES -----------------------
kubernetes_version = 1.24
regional = false
region = local.gcp_region
gcp_zone = local.gcp_zone
Expand Down
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ module "jhub_cluster" {
source = "git::https://github.com/BrownUniversity/terraform-gcp-cluster.git?ref= v0.1.5"
cluster_name = var.cluster_name
project_id = module.jhub_project.project_id
kubernetes_version = "1.24"
kubernetes_version = var.kubernetes_version
regional = var.regional
region = var.region
node_zones = [var.gcp_zone]
Expand Down
5 changes: 5 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,11 @@ variable "helm_values_file" {
description = "Relative path and file name. Example: values.yaml"
}

variable "kubernetes_version" {
type = string
description = "The Kubernetes version of the masters. If set to 'latest' it will pull latest available version in the selected region."
}

variable "jhub_helm_version" {
type = string
description = "Version of the JupyterHub Helm Chart Release"
Expand Down

0 comments on commit 5b08be3

Please sign in to comment.