Skip to content

Commit 5e32dab

Browse files
authored
Switch Typhoon configuration away from Fedora CoreOS / delete 1.18 stage (#1147)
1 parent 40e0873 commit 5e32dab

File tree

4 files changed

+15
-15
lines changed

4 files changed

+15
-15
lines changed

kubernetes/test-infra/typhoon-aws/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ Example:
1919
## Versions
2020

2121
You can set the desired version of Kubernetes via the `kubernetes_version` Terraform variable. If unset it defaults to
22-
version 1.18.
22+
version 1.20.
2323
Example:
2424
```
25-
export TF_VAR_kubernetes_version=1.18
25+
export TF_VAR_kubernetes_version=1.20
2626
```
2727

2828
This configuration is only compatible with Terraform 0.13 and up due to the use of the count-on-module feature which is not available in earlier versions.

kubernetes/test-infra/typhoon-aws/module_1_19.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ locals {
66
enabled_1_19 = length(regexall("v?1.19.?[0-9]{0,2}", var.kubernetes_version))
77
}
88

9-
# This module builds a 1.19.x Typhoon cluster. It is mutually exlusive to the 1.18.x module.
9+
# This module builds a 1.19.x Typhoon cluster. It is mutually exlusive to other modules of different versions.
1010
#
1111
module "typhoon-acc-1_19" {
1212
count = local.enabled_1_19
13-
source = "git::https://github.com/poseidon/typhoon//aws/fedora-coreos/kubernetes?ref=v1.19.0"
13+
source = "git::https://github.com/poseidon/typhoon//aws/flatcar-linux/kubernetes?ref=v1.19.4"
1414

1515
cluster_name = var.cluster_name
1616
dns_zone = var.base_domain
Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
locals {
2-
# This local gets a value of 1 when the 'kubernetes_version' input variable requests a 1.18.x version, otherwise it is 0.
3-
# It's used to enable the module and resources specific to 1.18.x as a workaround for not being able
2+
# This local gets a value of 1 when the 'kubernetes_version' input variable requests a 1.20.x version, otherwise it is 0.
3+
# It's used to enable the module and resources specific to 1.20.x as a workaround for not being able
44
# to interpolate variables in the 'source' attribute of a module block.
55
#
6-
enabled_1_18 = length(regexall("v?1.18.?[0-9]{0,2}", var.kubernetes_version))
6+
enabled_1_20 = length(regexall("v?1.20.?[0-9]{0,2}", var.kubernetes_version))
77
}
88

9-
# This module builds a 1.19.x Typhoon cluster. It is mutually exlusive to the 1.18.x module.
9+
# This module builds a 1.20.x Typhoon cluster. It is mutually exlusive to other modules of different versions.
1010
#
11-
module "typhoon-acc-1_18" {
12-
count = local.enabled_1_18
13-
source = "git::https://github.com/poseidon/typhoon//aws/fedora-coreos/kubernetes?ref=v1.18.8"
11+
module "typhoon-acc-1_20" {
12+
count = local.enabled_1_20
13+
source = "git::https://github.com/poseidon/typhoon//aws/flatcar-linux/kubernetes?ref=v1.20.2"
1414

1515
cluster_name = var.cluster_name
1616
dns_zone = var.base_domain
@@ -25,8 +25,8 @@ module "typhoon-acc-1_18" {
2525
controller_type = var.worker_type
2626
}
2727

28-
resource "local_file" "typhoon-acc_1_18" {
29-
count = local.enabled_1_18
30-
content = module.typhoon-acc-1_18[0].kubeconfig-admin
28+
resource "local_file" "typhoon-acc-1_20" {
29+
count = local.enabled_1_20
30+
content = module.typhoon-acc-1_20[0].kubeconfig-admin
3131
filename = local.kubeconfig_path
3232
}

kubernetes/test-infra/typhoon-aws/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ variable "cluster_name" {
88

99
variable "kubernetes_version" {
1010
type = string
11-
default = "1.18.8"
11+
default = "1.20.2"
1212
}
1313

1414
variable "controller_count" {

0 commit comments

Comments
 (0)