Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OPSEXP-2398 Configurable version and wait time in setup-kind #376

Merged
merged 5 commits into from
Nov 16, 2023
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 12 additions & 5 deletions .github/actions/setup-kind/action.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,24 @@
name: "Setup a KinD cluster"
description: "Spin a local Kubernetes cluster with ingress-nginx"
inputs:
kind-version:
description: |
The kind version to use. Versions available at:
https://github.com/kubernetes-sigs/kind/releases
default: v0.20.0
kind-node-image:
description: |
The Kind docker node image to use. Check the Kind version
release notes to check the list of suitable images:
The Kind docker node image to use. Should match the same kind version at:
https://github.com/kubernetes-sigs/kind/releases
required: true
default: kindest/node:v1.27.3@sha256:3966ac761ae0136263ffdb6cfd4db23ef8a83cba8a463690e98317add2c9ba72
kind-wait:
description: The duration to wait for the control plane to become ready
default: 60s
ingress-nginx-ref:
description: |
the Nginx ingress ref to get the ingress congtroller deployment manifest from
the Nginx ingress ref to get the ingress controller deployment manifest from
(https://github.com/kubernetes/ingress-nginx). Consider main (the default) a floating tag which can result in
deploying any version (including betas) and non repeatable builds.
required: false
default: main
runs:
using: "composite"
Expand All @@ -22,7 +27,9 @@ runs:
uses: helm/[email protected] # https://github.com/helm/kind-action/releases/tag/v1.8.0
with:
config: ${{ github.action_path }}/kind.yml
version: ${{ inputs.kind-version }}
node_image: ${{ inputs.kind-node-image }}
wait: ${{ inputs.kind-wait }}

- name: Install ingress-nginx
shell: bash
Expand Down
4 changes: 2 additions & 2 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1237,8 +1237,8 @@ Spin up a local kubernetes cluster with nginx ingress exposing http/https ports.
uses: Alfresco/alfresco-build-tools/.github/actions/setup-kind@ref
with:
# See the available refs in the kind release notes at https://github.com/kubernetes-sigs/kind/releases
# Make sure to use a node image built for the same KinD version
# kind-node-image: kindest/node:v1.24.7@sha256:577c630ce8e509131eab1aea12c022190978dd2f745aac5eb1fe65c0807eb315
# kind-version: v0.20.0
# kind-node-image: kindest/node:v1.27.3@sha256:3966ac761ae0136263ffdb6cfd4db23ef8a83cba8a463690e98317add2c9ba72
ingress-nginx-ref: controller-v1.8.2
- name: Helm deploy
run: |
Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v3.7.0
v3.8.0
Loading