Update prometheus-federator to use dependencies from k8s 1.32.X+ #2
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 : Integration test | |
permissions: | |
contents : read | |
on: | |
workflow_call: | |
push: | |
branches: | |
- main | |
- release/v[0-9]+.(0|x) | |
- release/v[0-9]+.[0-9]+.[0-9]+ | |
paths-ignore: | |
- 'docs/**' | |
- '*.md' | |
- '.gitignore' | |
- 'CODEOWNERS' | |
- 'LICENSE' | |
pull_request: | |
paths-ignore: | |
- 'docs/**' | |
- '*.md' | |
- '.gitignore' | |
- 'CODEOWNERS' | |
- 'LICENSE' | |
env: | |
REPO : rancher | |
REGISTRY : ghcr.io | |
jobs: | |
test: | |
strategy: | |
matrix: | |
arch: | |
- x64 | |
- arm64 | |
K3S_VERSION : | |
- v1.28.9-k3s1 | |
- v1.31.4-k3s1 | |
name : integration-test | |
runs-on : runs-on,image=ubuntu22-full-${{ matrix.arch }},runner=4cpu-linux-${{ matrix.arch }},run-id=${{ github.run_id }} | |
steps: | |
- name : Checkout repository | |
uses : actions/checkout@v4 | |
- name: Install go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.23 | |
- name : Install helm | |
uses: azure/setup-helm@v3 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name : Install k3d | |
run : ./.github/workflows/e2e/scripts/install-k3d.sh | |
- name : Setup test environment | |
run : | | |
CLUSTER_NAME=test-cluster K3S_VERSION=${{ matrix.K3S_VERSION }} ./.github/workflows/e2e/scripts/setup_cluster.sh | |
k3d kubeconfig get test-cluster > kubeconfig.yaml | |
- name : Debug kubeconfig | |
run : cat kubeconfig.yaml | |
# (start) FIXME: the following steps won't be required once the integration tests run the helm-project-operator code in-process | |
- name: Build Helm Project Operator image | |
uses: docker/build-push-action@v5 | |
with: | |
context: . | |
file: ./package/Dockerfile-helm-project-operator | |
push: false | |
tags: ${{ env.REGITRY }}/${{ env.REPO }}/helm-project-operator:dev | |
- name : Import dev image into cluster | |
run : | | |
k3d image import ${{ env.REGISTRY }}/${{ env.REPO }}/helm-project-operator:dev -c test-cluster | |
# (end) | |
- name : Run e2e tests | |
run : | | |
./scripts/integration | |
env: | |
KUBECONFIG: ${{ github.workspace }}/kubeconfig.yaml |