Skip to content

Commit

Permalink
refactor!: removes the grafana operator
Browse files Browse the repository at this point in the history
* refactor!: removes the grafana operator

BREAKING CHANGE: after contacting key users, they expressed that MSO deploying
the grafana operator was not interesing for them, thus we have deciced
to remove the grafana operator completely.
Issue: https://issues.redhat.com/browse/MON-2247

This PR also removes ability for MSO to create GrafanaDataSource

BREAKING CHANGE: since we removed the grafana operator from MSO, it
also does not make sense for MSO to manage a GrafanaDataSource
  • Loading branch information
JoaoBraveCoding authored May 17, 2022
1 parent cdf8ce4 commit 2f5ed6d
Show file tree
Hide file tree
Showing 13 changed files with 4 additions and 1,424 deletions.
54 changes: 0 additions & 54 deletions deploy/operator/monitoring-stack-operator-cluster-role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,6 @@ rules:
- get
- list
- watch
- apiGroups:
- ""
resources:
- namespaces
verbs:
- create
- list
- watch
- apiGroups:
- ""
resources:
Expand Down Expand Up @@ -162,49 +154,3 @@ rules:
- list
- update
- watch

---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
creationTimestamp: null
name: monitoring-stack-operator
namespace: monitoring-stack-operator
rules:
- apiGroups:
- integreatly.org
resources:
- grafanadatasources
verbs:
- create
- delete
- list
- update
- watch
- apiGroups:
- integreatly.org
resources:
- grafanas
verbs:
- create
- list
- update
- watch
- apiGroups:
- operators.coreos.com
resources:
- installplans
verbs:
- list
- update
- watch
- apiGroups:
- operators.coreos.com
resources:
- operatorgroups
- subscriptions
verbs:
- create
- list
- update
- watch
9 changes: 2 additions & 7 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ go 1.17

require (
github.com/go-logr/logr v1.2.0
github.com/grafana-operator/grafana-operator/v4 v4.0.1
github.com/operator-framework/api v0.10.3
github.com/operator-framework/operator-lifecycle-manager v0.19.1
github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring v0.49.0
github.com/prometheus/common v0.32.1
github.com/prometheus/prometheus v1.8.2-0.20211105201321-411021ada9ab
Expand All @@ -23,8 +20,6 @@ require (
github.com/alecthomas/units v0.0.0-20210927113745-59d0afb8317a // indirect
github.com/aws/aws-sdk-go v1.41.7 // indirect
github.com/beorn7/perks v1.0.1 // indirect
github.com/blang/semver v3.5.1+incompatible // indirect
github.com/blang/semver/v4 v4.0.0 // indirect
github.com/cespare/xxhash/v2 v2.1.2 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/dennwc/varint v1.0.0 // indirect
Expand Down Expand Up @@ -56,15 +51,14 @@ require (
github.com/modern-go/reflect2 v1.0.2 // indirect
github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f // indirect
github.com/oklog/ulid v1.3.1 // indirect
github.com/openshift/api v3.9.0+incompatible // indirect
github.com/opencontainers/image-spec v1.0.2-0.20190823105129-775207bd45b6 // indirect
github.com/opentracing/opentracing-go v1.2.0 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/prometheus/client_golang v1.11.0 // indirect
github.com/prometheus/client_model v0.2.0 // indirect
github.com/prometheus/common/sigv4 v0.1.0 // indirect
github.com/prometheus/procfs v0.6.0 // indirect
github.com/sirupsen/logrus v1.8.1 // indirect
github.com/spf13/pflag v1.0.5 // indirect
github.com/stretchr/testify v1.7.0 // indirect
github.com/uber/jaeger-client-go v2.29.1+incompatible // indirect
Expand All @@ -83,6 +77,7 @@ require (
gomodules.xyz/jsonpatch/v2 v2.2.0 // indirect
google.golang.org/appengine v1.6.7 // indirect
google.golang.org/protobuf v1.27.1 // indirect
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect
gopkg.in/inf.v0 v0.9.1 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect
Expand Down
315 changes: 0 additions & 315 deletions go.sum

Large diffs are not rendered by default.

37 changes: 0 additions & 37 deletions hack/grafana-dashboard.yaml

This file was deleted.

24 changes: 0 additions & 24 deletions hack/grafana.yaml

This file was deleted.

Loading

0 comments on commit 2f5ed6d

Please sign in to comment.