Skip to content

Commit

Permalink
add node exporter, kube state metrics and thanos
Browse files Browse the repository at this point in the history
Signed-off-by: Coleen Iona Quadros <coleen.quadros27@gmail.com>
  • Loading branch information
coleenquadros committed Jul 22, 2024
1 parent bc69fbf commit 28661ff
Show file tree
Hide file tree
Showing 3 changed files with 107 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/merge-acm-kube-state-metrics.yaml
Original file line number Diff line number Diff line change
@@ -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 }}
36 changes: 36 additions & 0 deletions .github/workflows/merge-acm-node-exporter.yaml
Original file line number Diff line number Diff line change
@@ -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 }}
40 changes: 40 additions & 0 deletions .github/workflows/merge-acm-thanos.yaml
Original file line number Diff line number Diff line change
@@ -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 }}

0 comments on commit 28661ff

Please sign in to comment.