Skip to content

Add new operator configuration options to enable or disable the creation of ServiceMonitor and PrometheusRule for the operator itself #549

Add new operator configuration options to enable or disable the creation of ServiceMonitor and PrometheusRule for the operator itself

Add new operator configuration options to enable or disable the creation of ServiceMonitor and PrometheusRule for the operator itself #549

Workflow file for this run

name: "Scorecard tests"
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
scorecard-tests:
name: Scorecard test
runs-on: ubuntu-22.04
strategy:
matrix:
kube-version:
- "1.21"
- "1.27"
steps:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "1.20"
- name: Check out code into the Go module directory
uses: actions/checkout@v3
- name: "install kuttl"
run: ./hack/install/install-kuttl.sh
- name: "start kind"
env:
KUBE_VERSION: ${{ matrix.kube-version }}
run: |
# fix for https://bugs.launchpad.net/ubuntu/+source/libpod/+bug/2024394
wget http://archive.ubuntu.com/ubuntu/pool/universe/g/golang-github-containernetworking-plugins/containernetworking-plugins_1.1.1+ds1-3_amd64.deb
sudo dpkg -i containernetworking-plugins_1.1.1+ds1-3_amd64.deb
# attempt to fix https://github.com/grafana/tempo-operator/issues/380 by using podman instead of docker
sudo KIND_EXPERIMENTAL_PROVIDER=podman kind create cluster --config kind-$KUBE_VERSION.yaml --wait 5m
mkdir ~/.kube
sudo cp /root/.kube/config ~/.kube/config
sudo chown $(id -u):$(id -g) ~/.kube/config
- name: "run community scorecard tests"
run: make scorecard-tests
env:
BUNDLE_VARIANT: community
- name: "run OpenShift scorecard tests"
run: make scorecard-tests
env:
BUNDLE_VARIANT: openshift