Skip to content

Commit a88e930

Browse files
committed
Update to Kubernetes v1.33
Signed-off-by: Mikkel Oscar Lyderik Larsen <[email protected]>
1 parent d5dab09 commit a88e930

File tree

11 files changed

+342
-278
lines changed

11 files changed

+342
-278
lines changed

cluster/cluster.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ Resources:
147147
Type: AWS::EKS::Cluster
148148
Properties:
149149
Name: "{{.Cluster.Name}}"
150-
Version: "1.32"
150+
Version: "1.33"
151151
RoleArn: !GetAtt EKSClusterRole.Arn
152152
KubernetesNetworkConfig:
153153
IpFamily: "{{.Cluster.ConfigItems.eks_ip_family}}"

cluster/config-defaults.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -776,8 +776,8 @@ tracing_coredns_local_zone_traces_endpoint: ""
776776
# AMI id given the image name and the Image AWS account owner.
777777
#
778778
# [0]: https://github.com/zalando-incubator/cluster-lifecycle-manager/blob/8a9bd1cb2d094038a9e23e646421f8146b48886a/provisioner/template.go#L116
779-
kuberuntu_image_v1_32_new_amd64: {{ amiID "zalando-ubuntu-jammy-22.04-kubernetes-production-v1.32.4-amd64-master-373" "861068367966" }}
780-
kuberuntu_image_v1_32_new_arm64: {{ amiID "zalando-ubuntu-jammy-22.04-kubernetes-production-v1.32.4-arm64-master-373" "861068367966" }}
779+
kuberuntu_image_v1_33_new_amd64: {{ amiID "zalando-ubuntu-jammy-22.04-kubernetes-production-v1.33.1-amd64-master-374" "861068367966" }}
780+
kuberuntu_image_v1_33_new_arm64: {{ amiID "zalando-ubuntu-jammy-22.04-kubernetes-production-v1.33.1-arm64-master-374" "861068367966" }}
781781

782782
# This is used to determine which AMI to use for the cluster or individual node
783783
# pools. Possible values are 'new' or 'old'

cluster/node-pools/master-default/stack.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Mappings:
1010
Images:
1111
{{.Cluster.Region}}:
1212
# Use the node pool's architecture to construct the config item name that we're using to get the AMI name.
13-
MachineImage: '{{ index .NodePool.ConfigItems (print "kuberuntu_image_v1_32_" .NodePool.ConfigItems.kuberuntu_ami_version "_" .Values.InstanceInfo.Architecture) }}'
13+
MachineImage: '{{ index .NodePool.ConfigItems (print "kuberuntu_image_v1_33_" .NodePool.ConfigItems.kuberuntu_ami_version "_" .Values.InstanceInfo.Architecture) }}'
1414

1515
Resources:
1616
AutoScalingGroup:

cluster/node-pools/worker-combined/stack.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Mappings:
1111
Images:
1212
{{.Cluster.Region}}:
1313
# Use the node pool's architecture to construct the config item name that we're using to get the AMI name.
14-
MachineImage: '{{ index .NodePool.ConfigItems (print "kuberuntu_image_v1_32_" .NodePool.ConfigItems.kuberuntu_ami_version "_" .Values.InstanceInfo.Architecture) }}'
14+
MachineImage: '{{ index .NodePool.ConfigItems (print "kuberuntu_image_v1_33_" .NodePool.ConfigItems.kuberuntu_ami_version "_" .Values.InstanceInfo.Architecture) }}'
1515

1616
Resources:
1717
AutoScalingGroup:

cluster/node-pools/worker-karpenter/provisioners.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ spec:
77
amiFamily: Custom
88
amiSelectorTerms:
99
# Select on any AMI that has any of the following IDs
10-
- id: {{ index .NodePool.ConfigItems (print "kuberuntu_image_v1_32_" .NodePool.ConfigItems.kuberuntu_ami_version "_amd64") }}
11-
- id: {{ index .NodePool.ConfigItems (print "kuberuntu_image_v1_32_" .NodePool.ConfigItems.kuberuntu_ami_version "_arm64") }}
10+
- id: {{ index .NodePool.ConfigItems (print "kuberuntu_image_v1_33_" .NodePool.ConfigItems.kuberuntu_ami_version "_amd64") }}
11+
- id: {{ index .NodePool.ConfigItems (print "kuberuntu_image_v1_33_" .NodePool.ConfigItems.kuberuntu_ami_version "_arm64") }}
1212
metadataOptions:
1313
httpEndpoint: enabled
1414
# {{ if and (eq .Cluster.Provider "zalando-eks") (eq .Cluster.ConfigItems.eks_ip_family "ipv6") }}

cluster/node-pools/worker-splitaz/stack.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Mappings:
1111
Images:
1212
{{.Cluster.Region}}:
1313
# Use the node pool's architecture to construct the config item name that we're using to get the AMI name.
14-
MachineImage: '{{ index .NodePool.ConfigItems (print "kuberuntu_image_v1_32_" .NodePool.ConfigItems.kuberuntu_ami_version "_" .Values.InstanceInfo.Architecture) }}'
14+
MachineImage: '{{ index .NodePool.ConfigItems (print "kuberuntu_image_v1_33_" .NodePool.ConfigItems.kuberuntu_ami_version "_" .Values.InstanceInfo.Architecture) }}'
1515

1616
Resources:
1717
{{ with $data := . }}

test/e2e/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -qq bc curl
1616

1717
ARG KUBE_VERSION
1818
RUN curl -L -s --fail "https://dl.k8s.io/${KUBE_VERSION}/kubernetes-client-linux-${TARGETARCH}.tar.gz" -o "kubernetes-client-linux-${TARGETARCH}.tar.gz" && \
19-
printf "924bd0cdbef91caab04b5e9c31017c24d9d7c718f6db9e2c61d5c203d579c8f0c00ac7451bd3658d5cdf31d7a08c8ee5884511d8e961f0e9331d00b1f6f03bee kubernetes-client-linux-amd64.tar.gz\nbf84363c16f72863e38d9d67194531aabafb6a82a20e3361354cc037964205557e8a39b62fa23b3c435c87f989838b6619980ea5c325c456e5cd5d47564d1644 kubernetes-client-linux-arm64.tar.gz" | grep "${TARGETARCH}" | sha512sum -c - && \
19+
printf "e1681d7addac6d1a192d17d8989764fb8f1143b1bc568de491f757313f6836c8c3180c0ad0d101679f9ac6a27c447865977d691df0db642390923082b5b4024d kubernetes-client-linux-amd64.tar.gz\n47692ea55565da56cddcb57820cd36d586d3a785dadc529d73ab659a904169aa15556d094ace5d2d40e47173c223af98203760abc53f361311bb1496734f6605 kubernetes-client-linux-arm64.tar.gz" | grep "${TARGETARCH}" | sha512sum -c - && \
2020
tar xvf "kubernetes-client-linux-${TARGETARCH}.tar.gz" --strip-components 3 kubernetes/client/bin/ && \
2121
rm "kubernetes-client-linux-${TARGETARCH}.tar.gz" && \
2222
mv kubectl /usr/bin/kubectl

test/e2e/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
BINARY ?= kubernetes-on-aws-e2e
44
VERSION ?= $(shell git describe --tags --always --dirty)
5-
KUBE_VERSION ?= v1.32.4
5+
KUBE_VERSION ?= v1.33.1
66
IMAGE ?= pierone.stups.zalan.do/teapot/$(BINARY)
77
SOURCES = $(shell find . -name '*.go')
88
TAG ?= $(VERSION)
@@ -11,7 +11,7 @@ DOCKERFILE ?= Dockerfile
1111
default: build
1212

1313
deps:
14-
CGO_ENABLED=0 go install github.com/onsi/ginkgo/v2/ginkgo@v2.15.0
14+
CGO_ENABLED=0 go install github.com/onsi/ginkgo/v2/ginkgo@v2.21.0
1515

1616
e2e.test: go.mod $(SOURCES)
1717
go test -v -c -o e2e.test

test/e2e/apiserver.go

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ import (
3535
e2epod "k8s.io/kubernetes/test/e2e/framework/pod"
3636
"k8s.io/kubernetes/test/e2e/framework/statefulset"
3737
admissionapi "k8s.io/pod-security-admission/api"
38-
"k8s.io/utils/ptr"
3938
)
4039

4140
const (
@@ -474,7 +473,7 @@ var _ = describe("Image Policy Tests (Job)", func() {
474473
framework.ExpectNoError(err)
475474
}()
476475

477-
job.WaitForJobComplete(context.TODO(), cs, namespace, jobObj.Name, ptr.To(batchv1.JobReasonCompletionsReached), 1)
476+
job.WaitForJobComplete(context.TODO(), cs, namespace, jobObj.Name, batchv1.JobReasonCompletionsReached, 1)
478477
})
479478

480479
It("Should not create Job using non-compliant image [Image-Policy] [Non-Compliant] [Zalando]", func() {
@@ -495,7 +494,7 @@ var _ = describe("Image Policy Tests (Job)", func() {
495494
framework.ExpectNoError(err)
496495
}()
497496

498-
job.WaitForJobComplete(context.TODO(), cs, namespace, jobObj.Name, ptr.To(batchv1.JobReasonCompletionsReached), 1)
497+
job.WaitForJobComplete(context.TODO(), cs, namespace, jobObj.Name, batchv1.JobReasonCompletionsReached, 1)
499498
})
500499
})
501500

@@ -526,7 +525,7 @@ var _ = describe("Image Policy Tests (Job) (when disabled)", func() {
526525
framework.ExpectNoError(err)
527526
}()
528527

529-
job.WaitForJobComplete(context.TODO(), cs, namespace, jobObj.Name, ptr.To(batchv1.JobReasonCompletionsReached), 1)
528+
job.WaitForJobComplete(context.TODO(), cs, namespace, jobObj.Name, batchv1.JobReasonCompletionsReached, 1)
530529
})
531530
})
532531

@@ -560,7 +559,7 @@ var _ = describe("ECR Registry Pull", func() {
560559
framework.ExpectNoError(err)
561560
}()
562561

563-
job.WaitForJobComplete(context.TODO(), cs, namespace, jobObj.Name, ptr.To(batchv1.JobReasonCompletionsReached), 1)
562+
job.WaitForJobComplete(context.TODO(), cs, namespace, jobObj.Name, batchv1.JobReasonCompletionsReached, 1)
564563
})
565564

566565
It("Should run a Job using a vanity image from the staging registry [ECR] [Zalando]", func() {
@@ -584,6 +583,6 @@ var _ = describe("ECR Registry Pull", func() {
584583
framework.ExpectNoError(err)
585584
}()
586585

587-
job.WaitForJobComplete(context.TODO(), cs, namespace, jobObj.Name, ptr.To(batchv1.JobReasonCompletionsReached), 1)
586+
job.WaitForJobComplete(context.TODO(), cs, namespace, jobObj.Name, batchv1.JobReasonCompletionsReached, 1)
588587
})
589588
})

0 commit comments

Comments
 (0)