Skip to content

Commit

Permalink
Update KinD to v0.24.0 (#485)
Browse files Browse the repository at this point in the history
  • Loading branch information
sebrandon1 authored Sep 4, 2024
1 parent 71a0036 commit 427e1bb
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/pre-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ name: Test Incoming Changes
workflow_dispatch:
env:
REGISTRY: quay.io
CERTSUITE_IMAGE_NAME: testnetworkfunction/k8s-best-practices-certsuite
CERTSUITE_IMAGE_NAME: redhat-best-practices-for-k8s/certsuite
CERTSUITE_IMAGE_TAG: unstable
CERTSUITE_CONFIG_DIR: /tmp/certsuite/config
CERTSUITE_OUTPUT_DIR: /tmp/certsuite/output
Expand Down Expand Up @@ -130,7 +130,7 @@ jobs:
--preflight-dockerconfig=/usr/certsuite/config/dockerconfig \
--offline-db=/usr/offline-db \
--log-level=${SMOKE_TESTS_LOG_LEVEL} \
--config-file=/usr/certsuite/config/tnf_config.yml \
--config-file=/usr/certsuite/config/certsuite_config.yml \
--kubeconfig=/usr/certsuite/config/kubeconfig \
working-directory: certsuite

Expand All @@ -146,7 +146,7 @@ jobs:
--offline-db=/usr/offline-db \
--enable-data-collection=true \
--log-level=${SMOKE_TESTS_LOG_LEVEL} \
--config-file=/usr/certsuite/config/tnf_config.yml \
--config-file=/usr/certsuite/config/certsuite_config.yml \
--kubeconfig=/usr/certsuite/config/kubeconfig \
--label-filter="${SMOKE_TESTS_LABELS_FILTER}"
working-directory: certsuite
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ sudo systemctl restart docker
Download and install Kubernetes In Docker (Kind):

```shell-script
curl -Lo kind https://github.com/kubernetes-sigs/kind/releases/download/v0.23.0/kind-linux-amd64
curl -Lo kind https://github.com/kubernetes-sigs/kind/releases/download/v0.24.0/kind-linux-amd64
```

Configure a cluster with 4 worker nodes and one master node ( dual stack ):
Expand Down Expand Up @@ -190,7 +190,7 @@ make install
```

This will create a PUT named "test" in `CERTSUITE_EXAMPLE_NAMESPACE` [namespace](#namespace) and Debug Daemonset named "debug". The
example `tnf_config.yml` in [`certsuite`](https://github.com/redhat-best-practices-for-k8s/certsuite)
example `certsuite_config.yml` in [`certsuite`](https://github.com/redhat-best-practices-for-k8s/certsuite)
will use this local infrastructure by default.

Note that this command also creates OT and CRD resources.
Expand Down
8 changes: 4 additions & 4 deletions config/k8s-cluster/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ networking:
apiServerPort: 6443
nodes:
- role: control-plane
image: kindest/node:v1.30.0@sha256:047357ac0cfea04663786a612ba1eaba9702bef25227a794b52890dd8bcd692e
image: kindest/node:v1.31.0@sha256:53df588e04085fd41ae12de0c3fe4c72f7013bba32a20e7325357a1ac94ba865
- role: worker
image: kindest/node:v1.30.0@sha256:047357ac0cfea04663786a612ba1eaba9702bef25227a794b52890dd8bcd692e
image: kindest/node:v1.31.0@sha256:53df588e04085fd41ae12de0c3fe4c72f7013bba32a20e7325357a1ac94ba865
- role: worker
image: kindest/node:v1.30.0@sha256:047357ac0cfea04663786a612ba1eaba9702bef25227a794b52890dd8bcd692e
image: kindest/node:v1.31.0@sha256:53df588e04085fd41ae12de0c3fe4c72f7013bba32a20e7325357a1ac94ba865
- role: worker
image: kindest/node:v1.30.0@sha256:047357ac0cfea04663786a612ba1eaba9702bef25227a794b52890dd8bcd692e
image: kindest/node:v1.31.0@sha256:53df588e04085fd41ae12de0c3fe4c72f7013bba32a20e7325357a1ac94ba865
4 changes: 2 additions & 2 deletions config/vagrant/scripts/bootstrap-cluster.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
# shellcheck disable=SC2207

# Download and install Kubernetes In Docker (Kind):
sudo curl -Lo /usr/bin/kind https://github.com/kubernetes-sigs/kind/releases/download/v0.23.0/kind-linux-amd64
sudo curl -Lo /usr/bin/kind https://github.com/kubernetes-sigs/kind/releases/download/v0.24.0/kind-linux-amd64
sudo chmod +x /usr/bin/kind

# download the latest openshift client at a certain release level
RELEASE_LEVEL="4.12"
RELEASE_LEVEL="4.16"
VERSIONS=($(sudo curl -sH 'Accept: application/json' "https://api.openshift.com/api/upgrades_info/v1/graph?channel=stable-${RELEASE_LEVEL}&arch=amd64" | jq -r '.nodes[].version' | sort))
IFS=$'\n' SORTED_VERSIONS=($(sort -V <<<"${VERSIONS[*]}")); unset IFS
OPENSHIFT_VERSION=${SORTED_VERSIONS[${#SORTED_VERSIONS[@]} - 1]}
Expand Down

0 comments on commit 427e1bb

Please sign in to comment.