Add .spec.certSecretRef
to Bucket API
#5184
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: e2e | |
on: | |
workflow_dispatch: | |
pull_request: | |
branches: | |
- 'main' | |
- 'release/**' | |
push: | |
branches: | |
- 'main' | |
- 'release/**' | |
permissions: | |
contents: read # for actions/checkout to fetch code | |
jobs: | |
kind-linux-amd64: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4 | |
- name: Setup Go | |
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1 | |
with: | |
go-version-file: 'go.mod' | |
cache-dependency-path: | | |
**/go.sum | |
**/go.mod | |
- name: Enable integration tests | |
# Only run integration tests for main and release branches | |
if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release/') | |
run: | | |
echo 'GO_TAGS=integration' >> $GITHUB_ENV | |
- name: Setup Kubernetes | |
uses: helm/kind-action@0025e74a8c7512023d06dc019c617aa3cf561fde # v1.10.0 | |
with: | |
cluster_name: kind | |
- name: Setup Kustomize | |
uses: fluxcd/pkg/actions/kustomize@main | |
- name: Setup Helm | |
uses: fluxcd/pkg/actions/helm@main | |
- name: Run E2E tests | |
env: | |
SKIP_COSIGN_VERIFICATION: true | |
CREATE_CLUSTER: false | |
run: make e2e | |
- name: Print controller logs | |
if: always() | |
continue-on-error: true | |
run: | | |
kubectl -n source-system logs -l app=source-controller | |
kind-linux-arm64: | |
# Hosted on Equinix | |
# Docs: https://github.com/fluxcd/flux2/tree/main/.github/runners | |
runs-on: [self-hosted, Linux, ARM64, equinix] | |
if: (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) && github.actor != 'dependabot[bot]' | |
steps: | |
- name: Checkout | |
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4 | |
- name: Setup Go | |
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1 | |
with: | |
go-version-file: 'go.mod' | |
cache-dependency-path: | | |
**/go.sum | |
**/go.mod | |
- name: Enable integration tests | |
# Only run integration tests for main and release branches | |
if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release/') | |
run: | | |
echo 'GO_TAGS=integration' >> $GITHUB_ENV | |
- name: Prepare | |
id: prep | |
run: | | |
echo "CLUSTER=arm64-${GITHUB_SHA:0:7}-$(date +%s)" >> $GITHUB_OUTPUT | |
echo "CONTEXT=kind-arm64-${GITHUB_SHA:0:7}-$(date +%s)" >> $GITHUB_OUTPUT | |
- name: Setup Kubernetes Kind | |
run: | | |
kind create cluster --name ${{ steps.prep.outputs.CLUSTER }} --kubeconfig=/tmp/${{ steps.prep.outputs.CLUSTER }} | |
- name: Run e2e tests | |
env: | |
SKIP_COSIGN_VERIFICATION: true | |
KIND_CLUSTER_NAME: ${{ steps.prep.outputs.CLUSTER }} | |
KUBECONFIG: /tmp/${{ steps.prep.outputs.CLUSTER }} | |
CREATE_CLUSTER: false | |
BUILD_PLATFORM: linux/arm64 | |
MINIO_TAG: RELEASE.2020-09-17T04-49-20Z-arm64 | |
run: make e2e | |
- name: Cleanup | |
if: always() | |
run: | | |
kind delete cluster --name ${{ steps.prep.outputs.CLUSTER }} | |
rm /tmp/${{ steps.prep.outputs.CLUSTER }} |