Skip to content

Commit bfa6a9b

Browse files
authored
added 1.31 support (#25)
1 parent ec8b22e commit bfa6a9b

File tree

4 files changed

+10
-8
lines changed

4 files changed

+10
-8
lines changed

aws-quickstart

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,15 @@ OPTIONS:
4040
Destroy the workload and infrastructure.
4141
4242
--kubernetes-version
43-
Kubernetes version to use. This must be one of: 1.23, 1.24, 1.25, 1.26, 1.27, 1.28, 1.29, 1.30
44-
(default: 1.30).
43+
Kubernetes version to use. This must be one of: 1.23, 1.24, 1.25, 1.26, 1.27, 1.28, 1.29, 1.30, 1.31
44+
(default: 1.31).
4545
EOF
4646
}
4747

4848
# Default arguments.
4949
AMI_ID=""
5050
DESTROY=""
51-
KUBERNETES_VERSION="1.30"
51+
KUBERNETES_VERSION="1.31"
5252
XR_USERNAME=""
5353
XR_PASSWORD=""
5454
BASTION_REMOTE_ACCESS_CIDR_BLOCKS=""
@@ -108,8 +108,9 @@ if [ "${KUBERNETES_VERSION}" != "1.23" ] &&
108108
[ "${KUBERNETES_VERSION}" != "1.27" ] &&
109109
[ "${KUBERNETES_VERSION}" != "1.28" ] &&
110110
[ "${KUBERNETES_VERSION}" != "1.29" ] &&
111-
[ "${KUBERNETES_VERSION}" != "1.30" ]; then
112-
>&2 echo "error: Kubernetes version (--kubernetes-version) must be one of: 1.23, 1.24, 1.25, 1.26, 1.27, 1.28, 1.29, 1.30"
111+
[ "${KUBERNETES_VERSION}" != "1.30" ] &&
112+
[ "${KUBERNETES_VERSION}" != "1.31" ]; then
113+
>&2 echo "error: Kubernetes version (--kubernetes-version) must be one of: 1.23, 1.24, 1.25, 1.26, 1.27, 1.28, 1.29, 1.30, 1.31"
113114
ERROR=1
114115
fi
115116

examples/bootstrap/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ terraform destroy
4242
|------|-------------|------|---------|:--------:|
4343
| <a name="input_azs"></a> [azs](#input\_azs) | List of exactly two availability zones in the currently configured AWS region.<br>A private subnet and a public subnet is created in each of these availability zones.<br>Each cluster node is launched in one of the private subnets.<br>If null, then the first two availability zones in the currently configured AWS region is used. | `list(string)` | `null` | no |
4444
| <a name="input_bastion_remote_access_cidr_blocks"></a> [bastion\_remote\_access\_cidr\_blocks](#input\_bastion\_remote\_access\_cidr\_blocks) | Allowed CIDR blocks for external SSH access to the Bastion instance.<br>This must be a list of strings.<br>If null, then access to the Bastion instance is prevented. | `list(string)` | n/a | yes |
45-
| <a name="input_cluster_version"></a> [cluster\_version](#input\_cluster\_version) | Cluster version | `string` | `"1.30"` | no |
45+
| <a name="input_cluster_version"></a> [cluster\_version](#input\_cluster\_version) | Cluster version | `string` | `"1.31"` | no |
4646
| <a name="input_name_prefix"></a> [name\_prefix](#input\_name\_prefix) | Used as a prefix for the 'Name' tag for each created resource.<br>If null, then a random name 'xrd-terraform-[0-9a-z]{8}' is used. | `string` | `null` | no |
4747

4848
## Outputs

examples/bootstrap/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,6 @@ variable "bastion_remote_access_cidr_blocks" {
3535
variable "cluster_version" {
3636
description = "Cluster version"
3737
type = string
38-
default = "1.30"
38+
default = "1.31"
3939
nullable = false
4040
}

tests/ut/test_eks.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def security_group(ec2: EC2ServiceResource, vpc: Vpc) -> SecurityGroup:
101101
@pytest.fixture
102102
def base_vars(subnet1: Subnet, subnet2: Subnet) -> dict[str, Any]:
103103
return {
104-
"cluster_version": "1.30",
104+
"cluster_version": "1.31",
105105
"name": str(uuid.uuid4()),
106106
"subnet_ids": [subnet1.id, subnet2.id],
107107
}
@@ -131,6 +131,7 @@ def test_defaults(
131131
"1.27",
132132
"1.28",
133133
"1.29",
134+
"1.30",
134135
),
135136
)
136137
def test_cluster_version(

0 commit comments

Comments
 (0)