forked from stolostron/prometheus-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge tag 'refs/tags/v0.79.0' into release-2.12
v0.79.0
- Loading branch information
Showing
852 changed files
with
97,268 additions
and
29,462 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
golang-version=1.22 | ||
kind-version=v0.23.0 | ||
kind-image=kindest/node:v1.30.0 | ||
golang-version=1.23 | ||
kind-version=v0.25.0 | ||
kind-image=kindest/node:v1.31.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: Lint GitHub action workflows | ||
on: | ||
push: | ||
paths: | ||
- ".github/workflows/**" | ||
pull_request : | ||
paths: | ||
- ".github/workflows/**" | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
- name: Download actionlint | ||
id: get_actionlint | ||
run: bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash) | ||
shell: bash | ||
- name: Check workflow files | ||
run: ${{ steps.get_actionlint.outputs.executable }} -color | ||
shell: bash |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: changed-files | ||
|
||
on: | ||
workflow_call: | ||
outputs: | ||
non-markdown-files: | ||
description: "changed files list" | ||
value: ${{ jobs.changed-files.outputs.non-markdown-files }} | ||
|
||
jobs: | ||
changed-files: | ||
# Map the job outputs to step outputs | ||
outputs: | ||
non-markdown-files : ${{ steps.changed-files.outputs.non-markdown-files}} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: checkout repo | ||
id: checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: get changed files | ||
id: changed-files | ||
run: | | ||
echo "non-markdown-files=$(git diff --name-only --diff-filter=ACMRT ${{ github.event.pull_request.base.sha }} ${{ github.sha }} | grep -iv .md$ | xargs)" >> "$GITHUB_OUTPUT" | ||
- run: | | ||
echo "${{ steps.changed-files.outputs.non-markdown-files}}" |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
name: e2e-prometheus3 | ||
|
||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: '30 14 * * *' # Every day 14:30 | ||
|
||
jobs: | ||
e2e-tests: | ||
name: E2E experimental version tests | ||
runs-on: ubuntu-latest | ||
if: github.repository == 'prometheus-operator/prometheus-operator' | ||
strategy: | ||
# since upgrade test was failing other tests were cancelled, setting this so that other test run | ||
fail-fast: false | ||
matrix: | ||
suite: [alertmanager, prometheus, prometheusAllNS, thanosruler, operatorUpgrade] | ||
include: | ||
- suite: alertmanager | ||
target: test-e2e-alertmanager | ||
- suite: prometheus | ||
target: test-e2e-prometheus | ||
- suite: prometheusAllNS | ||
target: test-e2e-prometheus-all-namespaces | ||
- suite: thanosruler | ||
target: test-e2e-thanos-ruler | ||
- suite: operatorUpgrade | ||
target: test-e2e-operator-upgrade | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Import environment variables from file | ||
run: | | ||
cat ".github/env" >> "$GITHUB_ENV" | ||
echo "E2E_DIAGNOSTIC_DIRECTORY=$(mktemp -d)" >> "$GITHUB_ENV" | ||
- name: Install Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: '${{ env.golang-version }}' | ||
check-latest: true | ||
- name: Build images | ||
run: | | ||
export SHELL="/bin/bash" | ||
make build image | ||
- name: Start kind cluster | ||
uses: helm/kind-action@v1.10.0 | ||
with: | ||
version: ${{ env.kind-version }} | ||
node_image: ${{ env.kind-image }} | ||
wait: 300s | ||
config: ./test/e2e/kind-conf.yaml | ||
cluster_name: e2e | ||
- name: Wait for cluster to finish bootstraping | ||
run: | | ||
echo "Waiting for all nodes to be ready..." | ||
kubectl wait --for=condition=Ready nodes --all --timeout=120s | ||
kubectl get nodes | ||
echo "Waiting for all pods to be ready..." | ||
kubectl wait --for=condition=Ready pods --all --all-namespaces --timeout=300s | ||
kubectl get pods -A | ||
echo "Cluster information" | ||
kubectl cluster-info | ||
- name: Load images | ||
run: | | ||
make test-e2e-images | ||
kubectl apply -f scripts/kind-rbac.yaml | ||
- name: Run tests | ||
env: | ||
E2E_DIAGNOSTIC_DIRECTORY: ${{ env.E2E_DIAGNOSTIC_DIRECTORY }} | ||
TEST_PROMETHEUS_V2: "true" | ||
run: | | ||
make ${{ matrix.target }} | ||
# Added to summarize the matrix and allow easy branch protection rules setup | ||
e2e-tests-result: | ||
name: End-to-End Test Results | ||
if: github.repository == 'prometheus-operator/prometheus-operator' | ||
needs: | ||
- e2e-tests | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Mark the job as a success | ||
if: needs.e2e-tests.result == 'success' | ||
run: exit 0 | ||
- name: Mark the job as a failure | ||
if: needs.e2e-tests.result != 'success' | ||
run: exit 1 |
Oops, something went wrong.