Skip to content

Commit 82b104d

Browse files
committed
Merge branch 'master' into release-v0.1.29
Signed-off-by: Anthony Floeder <anthony.floeder@hpe.com>
2 parents 472a5fd + b9befde commit 82b104d

7 files changed

Lines changed: 38 additions & 9 deletions

File tree

config/repositories.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ thirdPartyServices:
6868
- name: storage-version-migrator
6969
useRemoteKTar: false
7070
kustomization: config/storage-version-migrator/kustomization.yaml
71-
url: https://github.com/NearNodeFlash/kube-storage-version-migrator/releases/download/v0.1.2/manifests.tar
71+
url: https://github.com/NearNodeFlash/kube-storage-version-migrator/releases/download/v0.1.3/manifests.tar
7272
waitCmd: kubectl wait deploy -n kube-system trigger --for jsonpath='{.status.availableReplicas}=1'
7373
- name: nnf-storedversions-maint
7474
useRemoteFTar: false

nnf-sos

Submodule nnf-sos updated 81 files

tools/kind.sh

Lines changed: 32 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,25 @@
2222
set -e
2323
set -o pipefail
2424

25+
# This script must be run from the root of the nnf-deploy repo, not from tools/.
26+
if [[ ! -f "tools/kind.sh" ]]; then
27+
echo "ERROR: kind.sh must be run from the root of the nnf-deploy repo."
28+
echo " cd \$(git -C \"\$(dirname \"\$0\")\" rev-parse --show-toplevel) && tools/kind.sh $*"
29+
exit 1
30+
fi
31+
32+
# kind v0.31.0+ is required for Kubernetes 1.35 support.
33+
KIND_MIN_VERSION="0.31.0"
34+
KIND_VERSION=$(kind version 2>/dev/null | grep -oE '[0-9]+\.[0-9]+\.[0-9]+' | head -1)
35+
if [[ -z "$KIND_VERSION" ]]; then
36+
echo "ERROR: kind is not installed or not in PATH."
37+
exit 1
38+
fi
39+
if ! printf '%s\n%s\n' "$KIND_MIN_VERSION" "$KIND_VERSION" | sort -V -C; then
40+
echo "ERROR: kind v$KIND_VERSION is installed but v$KIND_MIN_VERSION or later is required for Kubernetes 1.35."
41+
exit 1
42+
fi
43+
2544
usage() {
2645
echo "Usage: $0 [--no-argocd] <CMD>"
2746
echo
@@ -103,8 +122,17 @@ function inject_ca_certs {
103122

104123
echo "Injecting CA certificates from $certs into KIND nodes..."
105124
for node in $(kind get nodes); do
106-
docker cp "$certs" "$node:/usr/local/share/ca-certificates/extra-ca-certs.crt"
107-
docker exec "$node" update-ca-certificates
125+
# Pipe the bundle via stdin and split into individual .crt files so that
126+
# update-ca-certificates / c_rehash does not emit
127+
# "skipping ... it does not contain exactly one certificate or CRL".
128+
docker exec -i "$node" bash -c '
129+
awk "/-----BEGIN CERTIFICATE-----/{n++; f=sprintf(\"/usr/local/share/ca-certificates/extra-ca-cert-%d.crt\",n)} f{print > f}"
130+
' < "$certs"
131+
# The ca-certificates.crt bundle always triggers a benign c_rehash warning;
132+
# filter it so only real warnings surface.
133+
local uca_out
134+
uca_out=$(docker exec "$node" update-ca-certificates 2>&1)
135+
echo "$uca_out" | grep -Fv "skipping ca-certificates.crt" || true
108136
docker exec "$node" systemctl restart containerd
109137
echo " $node: done"
110138
done
@@ -152,6 +180,7 @@ nodes:
152180
kubeadmConfigPatches:
153181
- |
154182
kind: ClusterConfiguration
183+
apiVersion: kubeadm.k8s.io/v1beta3
155184
apiServer:
156185
# enable auditing flags on the API server
157186
extraArgs:
@@ -187,7 +216,7 @@ EOF
187216
mkdir -p /tmp/nnf && dd if=/dev/zero of=/tmp/nnf/file.in bs=128 count=0 seek=$((1024 * 1024))
188217
fi
189218

190-
kind create cluster --wait 60s --image=kindest/node:v1.31.2 --config $CONFIG
219+
kind create cluster --wait 60s --image=kindest/node:v1.35.0@sha256:452d707d4862f52530247495d180205e029056831160e22870e37e3f6c1ac31f --config $CONFIG
191220

192221
# If corporate/custom CA certificates are available, inject them into
193222
# each KIND node so containerd can pull from registries behind a TLS

0 commit comments

Comments
 (0)