Skip to content

Commit 881918a

Browse files
author
Igor Velichkovich
authored
add support for 1.25 (#361)
1 parent 22fb986 commit 881918a

File tree

4 files changed

+9
-6
lines changed

4 files changed

+9
-6
lines changed

operator/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ apply: ## Apply the controller into your ~/.kube/config cluster
5151
$(HELM_OPTS) \
5252
--set controller.image=ko://github.com/awslabs/kubernetes-iteration-toolkit/operator/cmd/controller \
5353
--set webhook.image=ko://github.com/awslabs/kubernetes-iteration-toolkit/operator/cmd/webhook \
54+
--set serviceAccount.create=true \
5455
| KO_DOCKER_REPO=$(CONTAINER_IMAGE_REGISTRY)/kit $(WITH_GOFLAGS) ko apply --platform=linux/arm64,linux/amd64 --bare -f -
5556

5657
delete: ## Delete the controller from your ~/.kube/config cluster

operator/pkg/controllers/master/kubecontrollermanager.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ var (
271271

272272
func kcmPodSpecForVersion(version string, defaultSpec *v1.PodSpec) v1.PodSpec {
273273
switch version {
274-
case "1.22", "1.23", "1.24":
274+
case "1.22", "1.23", "1.24", "1.25":
275275
args := []string{}
276276
for _, arg := range defaultSpec.Containers[0].Args {
277277
if _, skip := disabledFlagsForKube122[strings.Split(arg, "=")[0]]; skip {
@@ -286,15 +286,15 @@ func kcmPodSpecForVersion(version string, defaultSpec *v1.PodSpec) v1.PodSpec {
286286

287287
func kcmHealthCheckPortForVersion(version string) intstr.IntOrString {
288288
switch version {
289-
case "1.22", "1.23", "1.24":
289+
case "1.22", "1.23", "1.24", "1.25":
290290
return intstr.FromInt(10257)
291291
}
292292
return intstr.FromInt(10252)
293293
}
294294

295295
func kcmHealthCheckSchemeForVersion(version string) v1.URIScheme {
296296
switch version {
297-
case "1.22", "1.23", "1.24":
297+
case "1.22", "1.23", "1.24", "1.25":
298298
return v1.URISchemeHTTPS
299299
}
300300
return v1.URISchemeHTTP

operator/pkg/controllers/master/kubescheduler.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,14 +149,14 @@ func schedulerPodSpecFor(controlPlane *v1alpha1.ControlPlane) v1.PodSpec {
149149

150150
func kschHealthCheckPortForVersion(version string) int {
151151
switch version {
152-
case "1.23", "1.24":
152+
case "1.23", "1.24", "1.25":
153153
return 10259
154154
}
155155
return 10251
156156
}
157157
func kschHealthCheckSchemeForVersion(version string) v1.URIScheme {
158158
switch version {
159-
case "1.23", "1.24":
159+
case "1.23", "1.24", "1.25":
160160
return v1.URISchemeHTTPS
161161
}
162162
return v1.URISchemeHTTP

operator/pkg/utils/imageprovider/imageprovider.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ var (
2222
"1.22": kubeVersion122Tag,
2323
"1.23": kubeVersion123Tag,
2424
"1.24": kubeVersion124Tag,
25+
"1.25": kubeVersion125Tag,
2526
}
2627
)
2728

@@ -38,6 +39,7 @@ const (
3839
kubeVersion122Tag = "v1.22.16-eks-1-22-14"
3940
kubeVersion123Tag = "v1.23.13-eks-1-23-9"
4041
kubeVersion124Tag = "v1.24.8-eks-1-24-5"
42+
kubeVersion125Tag = "v1.25.5-eks-1-25-3"
4143
repositoryName = "public.ecr.aws/eks-distro/"
4244
busyBoxImage = "public.ecr.aws/docker/library/busybox:stable"
4345
)
@@ -77,4 +79,4 @@ func AWSEncryptionProvider() string {
7779

7880
func BusyBox() string {
7981
return busyBoxImage
80-
}
82+
}

0 commit comments

Comments
 (0)