File tree Expand file tree Collapse file tree 7 files changed +41
-11
lines changed Expand file tree Collapse file tree 7 files changed +41
-11
lines changed Original file line number Diff line number Diff line change @@ -96,7 +96,8 @@ data "aws_iam_policy_document" "eks_plan" {
96
96
" s3:GetObject" ,
97
97
" s3:ListBucket" ,
98
98
" sqs:GetQueueAttributes" ,
99
- " sqs:ListQueueTags"
99
+ " sqs:ListQueueTags" ,
100
+ " ssm:GetParameter"
100
101
]
101
102
}
102
103
}
Original file line number Diff line number Diff line change @@ -45,6 +45,25 @@ resource "aws_iam_role" "eks_prow_admin" {
45
45
]
46
46
}
47
47
}
48
+ },
49
+ {
50
+ " Effect" : " Allow" ,
51
+ " Principal" : {
52
+ " Federated" : aws_iam_openid_connect_provider.k8s_infra_prow[0 ].arn
53
+ },
54
+ " Action" : " sts:AssumeRoleWithWebIdentity" ,
55
+ " Condition" : {
56
+ " StringEquals" : {
57
+ " container.googleapis.com/v1/projects/k8s-infra-prow/locations/us-central1/clusters/prow:sub" : [
58
+ " system:serviceaccount:default:deck" ,
59
+ " system:serviceaccount:default:config-bootstrapper" ,
60
+ " system:serviceaccount:default:crier" ,
61
+ " system:serviceaccount:default:sinker" ,
62
+ " system:serviceaccount:default:prow-controller-manager" ,
63
+ " system:serviceaccount:default:hook"
64
+ ]
65
+ }
66
+ }
48
67
}
49
68
]
50
69
})
Original file line number Diff line number Diff line change @@ -33,8 +33,10 @@ locals {
33
33
34
34
iam_role_permissions_boundary = data.aws_iam_policy.eks_resources_permission_boundary.arn
35
35
36
- ami_type = " BOTTLEROCKET_x86_64"
37
- platform = " bottlerocket"
36
+ ami_type = " BOTTLEROCKET_x86_64"
37
+ platform = " bottlerocket"
38
+ use_latest_ami_release_version = true
39
+
38
40
bootstrap_extra_args = <<- EOT
39
41
# Bottlerocket instances don't have SSH installed by default, but
40
42
# there's the admin container that can be enabled and that comes
@@ -56,7 +58,7 @@ locals {
56
58
57
59
force_update_version = false
58
60
update_config = {
59
- max_unavailable_percentage = var.node_max_unavailable_percentage
61
+ max_unavailable = var.node_max_unavailable
60
62
}
61
63
62
64
capacity_type = " ON_DEMAND"
Original file line number Diff line number Diff line change @@ -25,3 +25,11 @@ resource "aws_iam_openid_connect_provider" "k8s_prow" {
25
25
client_id_list = [" sts.amazonaws.com" ]
26
26
thumbprint_list = [" 08745487e891c19e3078c1f2a07e452950ef36f6" ]
27
27
}
28
+
29
+ resource "aws_iam_openid_connect_provider" "k8s_infra_prow" {
30
+ count = local. configure_prow ? 1 : 0
31
+
32
+ url = " https://container.googleapis.com/v1/projects/k8s-infra-prow/locations/us-central1/clusters/prow"
33
+ client_id_list = [" sts.amazonaws.com" ]
34
+ thumbprint_list = [" 08745487e891c19e3078c1f2a07e452950ef36f6" ]
35
+ }
Original file line number Diff line number Diff line change @@ -31,9 +31,9 @@ eks_cluster_admins = [
31
31
]
32
32
33
33
cluster_name = " prow-canary-cluster"
34
- cluster_version = " 1.28 "
34
+ cluster_version = " 1.29 "
35
35
36
- node_group_version_stable = " 1.28 "
36
+ node_group_version_stable = " 1.29 "
37
37
node_instance_types_stable = [" r5ad.xlarge" ]
38
38
node_desired_size_stable = 1
39
39
@@ -50,4 +50,4 @@ node_labels_stable = {
50
50
51
51
node_volume_size = 100
52
52
53
- node_max_unavailable_percentage = 100 # To ease testing
53
+ node_max_unavailable = 1
Original file line number Diff line number Diff line change @@ -33,9 +33,9 @@ eks_cluster_viewers = [
33
33
]
34
34
35
35
cluster_name = " prow-build-cluster"
36
- cluster_version = " 1.28 "
36
+ cluster_version = " 1.30 "
37
37
38
- node_group_version_stable = " 1.28 "
38
+ node_group_version_stable = " 1.30 "
39
39
node_instance_types_stable = [" r5ad.2xlarge" ]
40
40
node_desired_size_stable = 3
41
41
@@ -52,4 +52,4 @@ node_labels_stable = {
52
52
53
53
node_volume_size = 100
54
54
55
- node_max_unavailable_percentage = 100 # To ease testing
55
+ node_max_unavailable = 1
Original file line number Diff line number Diff line change @@ -113,7 +113,7 @@ variable "node_desired_size_stable" {
113
113
nullable = false
114
114
}
115
115
116
- variable "node_max_unavailable_percentage " {
116
+ variable "node_max_unavailable " {
117
117
type = number
118
118
description = " Maximum unavailable nodes in a node group"
119
119
}
You can’t perform that action at this time.
0 commit comments