From 28661ffd14c85da1283806f8bb2c694499e512cf Mon Sep 17 00:00:00 2001 From: Coleen Iona Quadros Date: Mon, 22 Jul 2024 13:26:55 +0200 Subject: [PATCH] add node exporter, kube state metrics and thanos Signed-off-by: Coleen Iona Quadros --- .../merge-acm-kube-state-metrics.yaml | 31 ++++++++++++++ .../workflows/merge-acm-node-exporter.yaml | 36 +++++++++++++++++ .github/workflows/merge-acm-thanos.yaml | 40 +++++++++++++++++++ 3 files changed, 107 insertions(+) create mode 100644 .github/workflows/merge-acm-kube-state-metrics.yaml create mode 100644 .github/workflows/merge-acm-node-exporter.yaml create mode 100644 .github/workflows/merge-acm-thanos.yaml diff --git a/.github/workflows/merge-acm-kube-state-metrics.yaml b/.github/workflows/merge-acm-kube-state-metrics.yaml new file mode 100644 index 0000000..dd0e77f --- /dev/null +++ b/.github/workflows/merge-acm-kube-state-metrics.yaml @@ -0,0 +1,31 @@ +name: kube-state-metrics merger + +on: + workflow_dispatch: + schedule: + - cron: '0 0 * * 1' #@weekly + pull_request: + paths: + - '.github/workflows/merge-acm-flow.yaml' + - '.github/workflows/merge-acm-kube-state-metrics.yaml' + push: + paths: + - '.github/workflows/merge-acm-flow.yaml' + - '.github/workflows/merge-acm-kube-state-metrics.yaml' + +jobs: + kube-state-metrics-merge: + uses: ./.github/workflows/merge-acm-flow.yaml + with: + upstream: kubernetes/kube-state-metrics + downstream: stolostron/kube-state-metrics + sandbox: rhobs/acm-kube-state-metrics + go-version: "1.21" + restore-upstream: CHANGELOG.md VERSION + restore-downstream: OWNERS + secrets: + pr-app-id: ${{ secrets.ACM_APP_ID }} + pr-app-private-key: ${{ secrets.ACM_APP_PRIVATE_KEY }} + cloner-app-id: ${{ secrets.ACM_CLONER_APP_ID }} + cloner-app-private-key: ${{ secrets.ACM_CLONER_APP_PRIVATE_KEY }} + slack-webhook-url: ${{ secrets.ACM_SLACK_WEBHOOK_URL }} diff --git a/.github/workflows/merge-acm-node-exporter.yaml b/.github/workflows/merge-acm-node-exporter.yaml new file mode 100644 index 0000000..52f42b7 --- /dev/null +++ b/.github/workflows/merge-acm-node-exporter.yaml @@ -0,0 +1,36 @@ +name: Node exporter merger + +on: + workflow_dispatch: + schedule: + - cron: '0 0 * * 1' #@weekly + pull_request: + paths: + - '.github/workflows/merge-acm-flow.yaml' + - '.github/workflows/merge-acm-node-exporter.yaml' + push: + paths: + - '.github/workflows/merge-acm-flow.yaml' + - '.github/workflows/merge-acm-node-exporter.yaml' +jobs: + node-exporter-merge: + uses: ./.github/workflows/merge-acm-flow.yaml + with: + upstream: prometheus/node-exporter + downstream: stolostron/node-exporter + sandbox: rhobs/acm-node-exporter + go-version: "1.21" + restore-downstream: >- + OWNERS + restore-upstream: >- + CHANGELOG.md + VERSION + collector + go.mod + go.sum + secrets: + pr-app-id: ${{ secrets.ACM_APP_ID }} + pr-app-private-key: ${{ secrets.ACM_APP_PRIVATE_KEY }} + cloner-app-id: ${{ secrets.ACM_CLONER_APP_ID }} + cloner-app-private-key: ${{ secrets.ACM_CLONER_APP_PRIVATE_KEY }} + slack-webhook-url: ${{ secrets.ACM_SLACK_WEBHOOK_URL }} diff --git a/.github/workflows/merge-acm-thanos.yaml b/.github/workflows/merge-acm-thanos.yaml new file mode 100644 index 0000000..14389a2 --- /dev/null +++ b/.github/workflows/merge-acm-thanos.yaml @@ -0,0 +1,40 @@ +name: Thanos merger + +on: + workflow_dispatch: + schedule: + - cron: '0 0 * * *' #@daily + pull_request: + paths: + - '.github/workflows/merge-acm-flow.yaml' + - '.github/workflows/merge-acm-thanos.yaml' + push: + paths: + - '.github/workflows/merge-acm-flow.yaml' + - '.github/workflows/merge-acm-thanos.yaml' +jobs: + thanos-merge: + uses: ./.github/workflows/merge-acm-flow.yaml + with: + upstream: thanos-io/thanos + downstream: openshift/thanos + sandbox: rhobs/thanos + go-version: "1.22" + restore-downstream: >- + OWNERS + restore-upstream: >- + CHANGELOG.md + VERSION + docs + go.mod + go.sum + pkg + tutorials + .busybox-versions + .devcontainer + secrets: + pr-app-id: ${{ secrets.APP_ID }} + pr-app-private-key: ${{ secrets.APP_PRIVATE_KEY }} + cloner-app-id: ${{ secrets.CLONER_APP_ID }} + cloner-app-private-key: ${{ secrets.CLONER_APP_PRIVATE_KEY }} + slack-webhook-url: ${{ secrets.SLACK_WEBHOOK_URL }}