Skip to content

Commit

Permalink
Update kind images to v0.17.0, add k8s 1.26. (#584)
Browse files Browse the repository at this point in the history
Updates kind images to match [kind release v0.17.0](https://github.com/kubernetes-sigs/kind/releases/tag/v0.17.0),
plus adds support for kubernetes 1.26.0.

Updates chainguard-dev/actions/setup-kind to
cc7afeaca6e5871be191ecc1b8bce10274bc1ee4 to add support for k8s 1.26.

Updates installed Knative version to 1.8.x to update
HorizontalPodAutoscaler to v2, since these were removed in k8s 1.26.

Signed-off-by: Billy Lynch <[email protected]>
  • Loading branch information
wlynch authored Mar 24, 2023
1 parent c0ecca2 commit 0bcfba7
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 14 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/add-remove-new-fulcio.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ jobs:
- uses: sigstore/cosign-installer@9becc617647dfa20ae7b1151972e9b3a2c338a2b # v2

- name: Setup Cluster
uses: chainguard-dev/actions/setup-kind@52eca3baf7c09ec1dbc4195449779fa59cc618e6
uses: chainguard-dev/actions/setup-kind@cc7afeaca6e5871be191ecc1b8bce10274bc1ee4
id: kind
with:
k8s-version: ${{ matrix.k8s-version }}
Expand All @@ -83,7 +83,7 @@ jobs:
- name: Setup Knative
uses: chainguard-dev/actions/setup-knative@main
with:
version: "1.7.x"
version: "1.8.x"
serving-features: >
{
"kubernetes.podspec-fieldref": "enabled"
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/fulcio-rekor-kind.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ jobs:
- v1.23.x
- v1.24.x
- v1.25.x
- v1.26.x

leg:
- fulcio rekor ctlog e2e
Expand Down Expand Up @@ -75,7 +76,7 @@ jobs:
- uses: sigstore/cosign-installer@9becc617647dfa20ae7b1151972e9b3a2c338a2b # v2

- name: Setup Cluster
uses: chainguard-dev/actions/setup-kind@52eca3baf7c09ec1dbc4195449779fa59cc618e6
uses: chainguard-dev/actions/setup-kind@cc7afeaca6e5871be191ecc1b8bce10274bc1ee4
id: kind
with:
k8s-version: ${{ matrix.k8s-version }}
Expand All @@ -85,7 +86,7 @@ jobs:
- name: Setup Knative
uses: chainguard-dev/actions/setup-knative@main
with:
version: "1.7.x"
version: "1.8.x"
serving-features: >
{
"kubernetes.podspec-fieldref": "enabled"
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test-action-tuf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ jobs:
- v1.23.x
- v1.24.x
- v1.25.x
# TODO: need release w/ 1.26 support first.
# - v1.26.x
release-version:
- "latest-release" # Test explicitly with latest
go-version:
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/test-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ jobs:
- v1.23.x
- v1.24.x
- v1.25.x
# TODO: enable after next release.
# - 1.26.x
leg:
- fulcio rekor ctlog e2e
go-version:
Expand All @@ -49,6 +51,7 @@ jobs:
- uses: ko-build/setup-ko@ace48d793556083a76f1e3e6068850c1f4a369aa # v0.6

- name: Setup Cluster
# TODO: update after next release.
uses: chainguard-dev/actions/setup-kind@52eca3baf7c09ec1dbc4195449779fa59cc618e6
id: kind
with:
Expand All @@ -59,7 +62,7 @@ jobs:
- name: Setup Knative
uses: chainguard-dev/actions/setup-knative@main
with:
version: "1.7.x"
version: "1.8.x"
serving-features: >
{
"kubernetes.podspec-fieldref": "enabled"
Expand Down
2 changes: 1 addition & 1 deletion actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ inputs:
required: true
default: 'cluster.local'
k8s-version:
description: 'kubernetes version to install (v1.23.x, v1.24.x, v1.25.x), default: v1.24.x'
description: 'kubernetes version to install (v1.23.x, v1.24.x, v1.25.x, v1.26.x), default: v1.24.x'
required: true
default: 'v1.24.x'
runs:
Expand Down
2 changes: 1 addition & 1 deletion config/fulcio/fulcio/200-configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ data:
{
"OIDCIssuers": {
"https://kubernetes.default.svc.cluster.local": {
"IssuerURL": "https://kubernetes.default.svc.cluster.local",
"IssuerURL": "https://kubernetes.default.svc",
"ClientID": "sigstore",
"Type": "kubernetes"
},
Expand Down
17 changes: 11 additions & 6 deletions hack/setup-kind.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,18 +68,23 @@ done
KIND_VERSION="v0.15.0"
case ${K8S_VERSION} in
v1.23.x)
K8S_VERSION="1.23.10"
KIND_IMAGE_SHA="sha256:f047448af6a656fae7bc909e2fab360c18c487ef3edc93f06d78cdfd864b2d12"
K8S_VERSION="1.23.13"
KIND_IMAGE_SHA="sha256:ef453bb7c79f0e3caba88d2067d4196f427794086a7d0df8df4f019d5e336b61"
KIND_IMAGE="kindest/node:v${K8S_VERSION}@${KIND_IMAGE_SHA}"
;;
v1.24.x)
K8S_VERSION="1.24.4"
KIND_IMAGE_SHA="sha256:adfaebada924a26c2c9308edd53c6e33b3d4e453782c0063dc0028bdebaddf98"
K8S_VERSION="1.24.7"
KIND_IMAGE_SHA="sha256:577c630ce8e509131eab1aea12c022190978dd2f745aac5eb1fe65c0807eb315"
KIND_IMAGE=kindest/node:${K8S_VERSION}@${KIND_IMAGE_SHA}
;;
v1.25.x)
K8S_VERSION="1.25.0"
KIND_IMAGE_SHA="sha256:428aaa17ec82ccde0131cb2d1ca6547d13cf5fdabcc0bbecf749baa935387cbf"
K8S_VERSION="1.25.3"
KIND_IMAGE_SHA="sha256:f52781bc0d7a19fb6c405c2af83abfeb311f130707a0e219175677e366cc45d1"
KIND_IMAGE=kindest/node:${K8S_VERSION}@${KIND_IMAGE_SHA}
;;
v1.26.x)
K8S_VERSION="1.26.0"
KIND_IMAGE_SHA="sha256:691e24bd2417609db7e589e1a479b902d2e209892a10ce375fab60a8407c7352"
KIND_IMAGE=kindest/node:${K8S_VERSION}@${KIND_IMAGE_SHA}
;;
*) echo "Unsupported version: ${K8S_VERSION}"; exit 1 ;;
Expand Down
2 changes: 1 addition & 1 deletion hack/setup-scaffolding-from-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ if [ "${MINOR}" -ge 5 ]; then
INSTALL_TSA="true"
fi

# Since the behaviour on oidc is different on k8s <1.23, check to see if we
# Since the behaviour on oidc is different on certain k8s versions, check to see if we
# need to do some mucking with the Fulcio config
NEED_TO_UPDATE_FULCIO_CONFIG="false"
K8S_SERVER_VERSION=$(kubectl version -ojson | yq '.serverVersion.minor' -)
Expand Down

0 comments on commit 0bcfba7

Please sign in to comment.