Skip to content

Commit

Permalink
OPSEXP-2398 Configurable version and wait time in setup-kind (#376)
Browse files Browse the repository at this point in the history
  • Loading branch information
gionn authored Nov 16, 2023
1 parent 1cddbdf commit 42399e8
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 12 deletions.
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
13 changes: 7 additions & 6 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1236,18 +1236,19 @@ Spin up a local kubernetes cluster with nginx ingress exposing http/https ports.
- name: Setup cluster
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
ingress-nginx-ref: controller-v1.8.2
# Specify kind and k8s version to use.
# see https://github.com/kubernetes-sigs/kind/releases
# kind-version: v0.20.0
# kind-node-image: kindest/node:v1.27.3@sha256:3966ac761ae0136263ffdb6cfd4db23ef8a83cba8a463690e98317add2c9ba72
# Optional but ensure repeatable builds (defaults to latest nginx ingress version otherwise).
# see https://github.com/kubernetes/ingress-nginx
# ingress-nginx-ref: controller-v1.8.2
- name: Helm deploy
run: |
helm dep up ./helm/chart
helm install acs ./helm/chart
```

> Although not required we recommend setting the `ingress-nginx-ref``to ensure repeatable builds

### update-project-base-tag

Used to update a base tag in the release descriptor. It will add or update the
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

0 comments on commit 42399e8

Please sign in to comment.