Repository navigation
Expand file tree
/
Copy pathaction.yml
More file actions
56 lines (56 loc) · 2.19 KB
/
Copy pathaction.yml
File metadata and controls
56 lines (56 loc) · 2.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: setup-kubernetes
author: "The Flux Authors"
description: Setups Kubernetes Kind cluster and Docker BuildKit for Flux controller e2e testing
inputs:
go-version:
description: 'Go version to setup'
required: true
kind-version:
description: 'Kind version to setup'
required: false
default: 'v0.32.0'
cluster-name:
description: 'Name of the kind cluster'
required: false
default: 'kind'
kind-config:
description: 'Path to a kind cluster configuration file (optional)'
required: false
skip-checkout:
description: 'Skip checking out the repository (useful when the caller has already run checkout) Example: generating kind-configs / spinning up multiple clusters'
required: false
default: 'false'
skip-tools:
description: 'Skip the toolchain setup steps (Kustomize, QEMU, Buildx, Go) and only create the kind cluster Example: spinning up a second or third cluster after a first run of this action has already setup tools'
required: false
default: 'false'
runs:
using: "composite"
steps:
- name: Checkout
if: ${{ inputs.skip-checkout != 'true' }}
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Setup Kustomize
if: ${{ inputs.skip-tools != 'true' }}
uses: fluxcd/pkg/actions/kustomize@fc29ca0375323410da6588eb84a304444943f898 # main
- name: Setup QEMU
if: ${{ inputs.skip-tools != 'true' }}
uses: docker/setup-qemu-action@99012661954931238ded8c8b007157a8430204e1 # v4.4.0
- name: Setup Docker Buildx
id: buildx
if: ${{ inputs.skip-tools != 'true' }}
uses: docker/setup-buildx-action@f87e5991a6d7451dcb8d9637bfbc97413f497069 # v4.4.1
- name: Setup Go
if: ${{ inputs.skip-tools != 'true' }}
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
with:
go-version: ${{ inputs.go-version }}
cache-dependency-path: |
**/go.sum
**/go.mod
- name: Setup Kubernetes
uses: helm/kind-action@06c1ae10762d3b9c1644e7fe69596ae519e015a2 # v1.15.0
with:
version: ${{ inputs.kind-version }}
cluster_name: ${{ inputs.cluster-name }}
config: ${{ inputs.kind-config }}