-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (31 loc) · 954 Bytes
/
krr.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
---
name: "krr"
on:
workflow_dispatch:
env:
PROMETHEUS_URL: http://thanos-query-frontend.monitoring.svc.cluster.local:9090
jobs:
krr:
name: Run krr
runs-on: ["arc-runner-set-home-ops"]
steps:
- name: Setup Python
uses: actions/setup-python@b64ffcaf5b410884ad320a9cfac8866006a109aa # v4.8.0
with:
python-version: 3.x
- name: Setup krr
run: |
git clone https://github.com/robusta-dev/krr
cd krr
pip install -r requirements.txt
- name: Write kubeconfig
id: kubeconfig
uses: timheuer/base64-to-file@adaa40c0c581f276132199d4cf60afa07ce60eac # v1.2
with:
encodedString: ${{ secrets.KUBECONFIG }}
fileName: kubeconfig
- name: Run krr
env:
KUBECONFIG: ${{ steps.kubeconfig.outputs.filePath }}
run: |
python ./krr/krr.py simple --prometheus-url ${{ env.PROMETHEUS_URL }}