Skip to content

Commit 81121fc

Browse files
committed
Add kindest/node digest and let renovate update it
1 parent c0e73c6 commit 81121fc

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

.github/renovate.json5

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,17 @@
5555
'# renovate: datasource=(?<datasource>[a-z-.]+?) depName=(?<depName>[^\\s]+?)(?: (lookupName|packageName)=(?<packageName>[^\\s]+?))?(?: versioning=(?<versioning>[^\\s]+?))?(?: extractVersion=(?<extractVersion>[^\\s]+?))?(?: registryUrl=(?<registryUrl>[^\\s]+?))?\\s.+?_VERSION *[?:]?= *"?(?<currentValue>.+?)"?\\s',
5656
],
5757
},
58+
{
59+
// custom manager for updating kind node image tag and digest
60+
customType: "regex",
61+
managerFilePatterns: [
62+
"/^Makefile$/",
63+
],
64+
matchStrings: [
65+
"(?<depName>kindest/node):(?<currentValue>[^@]+)(?:@(?<currentDigest>[^\\s]+))?",
66+
],
67+
datasourceTemplate: "docker",
68+
}
5869
],
5970
packageRules: [
6071
{

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ kind-up kind-down: export KUBECONFIG = $(KIND_KUBECONFIG)
164164

165165
.PHONY: kind-up
166166
kind-up: $(KIND) $(KUBECTL) ## Launch a kind cluster for local development and testing.
167-
$(KIND) create cluster --name sharding --config hack/config/kind-config.yaml
167+
$(KIND) create cluster --name sharding --config hack/config/kind-config.yaml --image kindest/node:v1.33.1@sha256:050072256b9a903bd914c0b2866828150cb229cea0efe5892e2b644d5dd3b34f
168168
# workaround https://kind.sigs.k8s.io/docs/user/known-issues/#pod-errors-due-to-too-many-open-files
169169
$(KUBECTL) get nodes -o name | cut -d/ -f2 | xargs -I {} docker exec {} sh -c "sysctl fs.inotify.max_user_instances=8192"
170170
# run `export KUBECONFIG=$$PWD/hack/kind_kubeconfig.yaml` to target the created kind cluster.

hack/config/kind-config.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ apiVersion: kind.x-k8s.io/v1alpha4
22
kind: Cluster
33
nodes:
44
- role: control-plane
5-
image: kindest/node:v1.31.9
65
extraPortMappings:
76
# ingress-nginx
87
- containerPort: 30888

0 commit comments

Comments
 (0)