Skip to content

Commit

Permalink
allow defining ingress controller version
Browse files Browse the repository at this point in the history
  • Loading branch information
bakito committed Oct 21, 2024
1 parent 1b709d1 commit 09166f0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@ Optionally ingress can be enabled.
- name: Install Kind
uses: bakito/kind-with-registry-action@main
with:
kind_version: v0.23.0 // (optional) kind version to be used
kubectl_version: v1.30.0 // (optional) kubectl version to be used
kind_version: v0.24.0 // (optional) kind version to be used
kubectl_version: v1.31.0 // (optional) kubectl version to be used
ingress_enabled: true // (optional) enable ingress-nginx
ingress_version: 4.11.3 // (optional) The ingress controller version (git tag)
registry_image: registry:2 // (optional) The registry docker image to be used
node_image: kindest/node:v1.27.3 // (optional) The k8s node imaage to be used
node_image: kindest/node:vv1.31.1 // (optional) The k8s node imaage to be used
```
## Outputs
Expand Down
8 changes: 6 additions & 2 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,15 @@ inputs:
description: 'The version of node image to use'
required: false
# renovate: docker
default: 'kindest/node:v1.31.0'
default: 'kindest/node:v1.31.1'
ingress_enabled:
description: 'enable ingress for the cluster'
required: false
default: false
ingress_version:
description: 'The ingress controller version (git tag)'
required: false
default: 4.11.3
registry_image:
description: 'The registry docker image to be used'
required: false
Expand Down Expand Up @@ -70,7 +74,7 @@ runs:
shell: bash
run: |
# https://kind.sigs.k8s.io/docs/user/ingress/
kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/main/deploy/static/provider/kind/deploy.yaml
kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/helm-chart-${{ inputs.ingress_version }}/deploy/static/provider/kind/deploy.yaml
kubectl wait --namespace ingress-nginx \
--for=condition=ready pod \
--selector=app.kubernetes.io/component=controller \
Expand Down

0 comments on commit 09166f0

Please sign in to comment.