Skip to content

chore: Adding additional rules for openstack resource failure rates #24

chore: Adding additional rules for openstack resource failure rates

chore: Adding additional rules for openstack resource failure rates #24

name: Helm GitHub Actions for Prometheus
on:
pull_request:
paths:
- base-helm-configs/prometheus/**
- base-kustomize/prometheus/**
- .github/workflows/helm-prometheus.yaml
jobs:
helm:
strategy:
matrix:
overlays:
- base
name: Helm
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: azure/setup-helm@v3
with:
version: latest
token: "${{ secrets.GITHUB_TOKEN }}"
id: helm
- name: Add prometheus-community repo to helm
run: |
${{ steps.helm.outputs.helm-path }} repo add prometheus-community https://prometheus-community.github.io/helm-charts
${{ steps.helm.outputs.helm-path }} repo update
- name: Run Helm Template
run: |
${{ steps.helm.outputs.helm-path }} template prometheus prometheus-community/kube-prometheus-stack \
--create-namespace \
--namespace=prometheus \
-f ${{ github.workspace }}//base-helm-configs/prometheus/prometheus-helm-overrides.yaml \
-f ${{ github.workspace }}//base-helm-configs/prometheus/alerting_rules.yaml \
-f ${{ github.workspace }}//base-helm-configs/prometheus/alertmanager_config.yaml \
--post-renderer ${{ github.workspace }}/base-kustomize/kustomize.sh \
--post-renderer-args prometheus/${{ matrix.overlays }} > /tmp/rendered.yaml
- name: Return helm Build
uses: actions/upload-artifact@v4
with:
name: helm-prometheus-artifact-${{ matrix.overlays }}
path: /tmp/rendered.yaml