forked from prometheus-operator/prometheus-operator
-
Notifications
You must be signed in to change notification settings - Fork 7
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.77.2' into release-2.12
v0.77.2
- Loading branch information
Showing
474 changed files
with
77,773 additions
and
26,014 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.24.0 | ||
kind-image=kindest/node:v1.31.0 |
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,105 @@ | ||
name: e2e-prometheus3 | ||
on: | ||
schedule: | ||
- cron: '30 14 * * *' # Every day 14:30 | ||
jobs: | ||
e2e-tests: | ||
name: E2E experimental version tests | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
suite: [alertmanager, prometheus, prometheusAllNS, thanosruler, operatorUpgrade] | ||
include: | ||
- suite: alertmanager | ||
prometheus: "exclude" | ||
prometheusAllNS: "exclude" | ||
alertmanager: "" | ||
thanosruler: "exclude" | ||
operatorUpgrade: "exclude" | ||
- suite: prometheus | ||
prometheus: "" | ||
prometheusAllNS: "exclude" | ||
alertmanager: "exclude" | ||
thanosruler: "exclude" | ||
operatorUpgrade: "exclude" | ||
- suite: prometheusAllNS | ||
prometheus: "exclude" | ||
prometheusAllNS: "" | ||
alertmanager: "exclude" | ||
thanosruler: "exclude" | ||
operatorUpgrade: "exclude" | ||
- suite: thanosruler | ||
prometheus: "exclude" | ||
prometheusAllNS: "exclude" | ||
alertmanager: "exclude" | ||
thanosruler: "" | ||
operatorUpgrade: "exclude" | ||
- suite: operatorUpgrade | ||
prometheus: "exclude" | ||
prometheusAllNS: "exclude" | ||
alertmanager: "exclude" | ||
thanosruler: "exclude" | ||
operatorUpgrade: "" | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Import environment variables from file | ||
run: cat ".github/env" >> $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/[email protected] | ||
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: | | ||
kind load docker-image -n e2e quay.io/prometheus-operator/prometheus-operator:$(git rev-parse --short HEAD) | ||
kind load docker-image -n e2e quay.io/prometheus-operator/prometheus-config-reloader:$(git rev-parse --short HEAD) | ||
kind load docker-image -n e2e quay.io/prometheus-operator/admission-webhook:$(git rev-parse --short HEAD) | ||
kubectl apply -f scripts/kind-rbac.yaml | ||
- name: Run tests | ||
run: > | ||
TEST_EXPERIMENTAL_PROMETHEUS=true | ||
EXCLUDE_ALERTMANAGER_TESTS=${{ matrix.alertmanager }} | ||
EXCLUDE_PROMETHEUS_TESTS=${{ matrix.prometheus }} | ||
EXCLUDE_PROMETHEUS_ALL_NS_TESTS=${{ matrix.prometheusAllNS }} | ||
EXCLUDE_THANOSRULER_TESTS=${{ matrix.thanosruler }} | ||
EXCLUDE_OPERATOR_UPGRADE_TESTS=${{ matrix.operatorUpgrade }} | ||
EXCLUDE_FEATURE_GATED_TESTS=exclude | ||
EXCLUDE_PROMETHEUS_UPGRADE_TESTS=exclude | ||
make test-e2e | ||
# Added to summarize the matrix and allow easy branch protection rules setup | ||
e2e-tests-result: | ||
name: End-to-End Test Results | ||
if: always() | ||
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 |
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
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
Oops, something went wrong.