Skip to content

Commit

Permalink
Test against k8s 1.28 (#245)
Browse files Browse the repository at this point in the history
* Test against k8s 1.28

* Allow renovate patch updates of `kindest/node`

* Make cert-manager webhooks compliant with gardener
  • Loading branch information
timebertt authored May 6, 2024
1 parent f3a1a0f commit 0b1cd96
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .github/renovate.json5
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,9 @@
enabled: false
},
{
// kind k8s version should be updated together with shoot k8s version
// kind minor k8s version should be updated together with shoot k8s version
matchPackageNames: ["kindest/node"],
matchUpdateTypes: ["minor"],
enabled: false
},
{
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ WEBHOSTING_OPERATOR_IMG ?= $(GHCR_REPO)/webhosting-operator:$(TAG)
EXPERIMENT_IMG ?= $(GHCR_REPO)/experiment:$(TAG)

# ENVTEST_K8S_VERSION refers to the version of kubebuilder assets to be downloaded by envtest binary.
ENVTEST_K8S_VERSION = 1.27
ENVTEST_K8S_VERSION = 1.28

# Setting SHELL to bash allows bash commands to be executed by recipes.
# Options are set to exit when a recipe line exits non-zero or a piped command fails.
Expand Down
5 changes: 5 additions & 0 deletions hack/config/cert-manager/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,8 @@ kind: Kustomization

resources:
- https://github.com/cert-manager/cert-manager/releases/download/v1.14.5/cert-manager.yaml

patches:
# lower the webhook timeouts to make the webhooks compliant with gardener's requirements
- path: patch-validatingwebhook.yaml
- path: patch-mutatingwebhook.yaml
7 changes: 7 additions & 0 deletions hack/config/cert-manager/patch-mutatingwebhook.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
apiVersion: admissionregistration.k8s.io/v1
kind: MutatingWebhookConfiguration
metadata:
name: cert-manager-webhook
webhooks:
- name: webhook.cert-manager.io
timeoutSeconds: 15
7 changes: 7 additions & 0 deletions hack/config/cert-manager/patch-validatingwebhook.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
apiVersion: admissionregistration.k8s.io/v1
kind: ValidatingWebhookConfiguration
metadata:
name: cert-manager-webhook
webhooks:
- name: webhook.cert-manager.io
timeoutSeconds: 15
2 changes: 1 addition & 1 deletion hack/config/kind-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: kind.x-k8s.io/v1alpha4
kind: Cluster
nodes:
- role: control-plane
image: kindest/node:v1.27.3
image: kindest/node:v1.28.7
extraPortMappings:
# ingress-nginx
- containerPort: 30888
Expand Down
2 changes: 1 addition & 1 deletion hack/config/shoot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ spec:
nodeCIDRMaskSize: 24
kubeProxy:
mode: IPTables
version: "1.27"
version: "1.28"
maintenance:
autoUpdate:
kubernetesVersion: true
Expand Down

0 comments on commit 0b1cd96

Please sign in to comment.