forked from wolfi-dev/os
-
Notifications
You must be signed in to change notification settings - Fork 0
/
grafana-operator.yaml
74 lines (68 loc) · 2.02 KB
/
grafana-operator.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
package:
name: grafana-operator
version: 5.15.1
epoch: 0
description: An operator for Grafana that installs and manages Grafana instances, Dashboards and Datasources through Kubernetes/OpenShift CRs
copyright:
- license: Apache-2.0
pipeline:
- uses: git-checkout
with:
repository: https://github.com/grafana-operator/grafana-operator
tag: v${{package.version}}
expected-commit: 6025362b1b61cd48e8473586015d4331f0e8e54c
- uses: go/build
with:
modroot: .
packages: .
output: grafana-operator
- uses: strip
update:
enabled: true
github:
identifier: grafana-operator/grafana-operator
strip-prefix: v
test:
environment:
contents:
packages:
- bash
- curl
- jq
- git
- kubectl
- kustomize
pipeline:
- name: "Verify help command output"
runs: |
grafana-operator --help
grafana-operator -h
- uses: test/kwok/cluster
- name: "Fetch and deploy operator manifests"
runs: |
git clone --depth=1 --branch v${{package.version}} https://github.com/grafana-operator/grafana-operator.git
kubectl create -f grafana-operator/deploy/kustomize/base/crds.yaml
- name: "Start and verify operator"
uses: test/daemon-check-output
with:
setup: |
kubectl create namespace grafana-operator-system
start: |
grafana-operator manager \
--metrics-bind-address=:8080 \
--health-probe-bind-address=:8081 \
--leader-elect=false \
--enable-webhooks=false
timeout: 30
expected_output: |
starting server
Starting Controller
Starting workers
# exception for a known limitation with kwok
error_strings: |
controller-runtime.source.EventHandler
post: |
# Verify metrics endpoint is working
curl -s http://localhost:8080/metrics
# Verify health endpoint
curl -s http://localhost:8081/healthz