Skip to content
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.

Commit

Permalink
Merge pull request #43 from integr8ly/grafana-latest
Browse files Browse the repository at this point in the history
Grafana latest
  • Loading branch information
david-martin authored Jun 4, 2019
2 parents 889e278 + 67146fd commit 9f0e986
Show file tree
Hide file tree
Showing 230 changed files with 16,271 additions and 2,962 deletions.
52 changes: 26 additions & 26 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Gopkg.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ required = [
name = "github.com/operator-framework/operator-sdk"
# The version rule is used for a specific release and the master branch for in between releases.
# branch = "v0.2.x" #osdk_branch_annotation
version = "=v0.2.1" #osdk_version_annotation
version = "=v0.8.1" #osdk_version_annotation

[prune]
go-tests = true
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ NAMESPACE ?= application-monitoring
PROJECT ?= application-monitoring-operator
REG=quay.io
SHELL=/bin/bash
TAG ?= 0.0.9
TAG ?= 0.0.10
PKG=github.com/integr8ly/application-monitoring-operator
TEST_DIRS?=$(shell sh -c "find $(TOP_SRC_DIRS) -name \\*_test.go -exec dirname {} \\; | sort | uniq")
TEST_POD_NAME=application-monitoring-operator-test
Expand All @@ -18,7 +18,7 @@ setup/dep:
.PHONY: setup/travis
setup/travis:
@echo Installing Operator SDK
@curl -Lo operator-sdk https://github.com/operator-framework/operator-sdk/releases/download/v0.2.1/operator-sdk-v0.2.1-x86_64-linux-gnu && chmod +x operator-sdk && sudo mv operator-sdk /usr/local/bin/
@curl -Lo operator-sdk https://github.com/operator-framework/operator-sdk/releases/download/v0.8.1/operator-sdk-v0.8.1-x86_64-linux-gnu && chmod +x operator-sdk && sudo mv operator-sdk /usr/local/bin/

.PHONY: code/run
code/run:
Expand Down
2 changes: 1 addition & 1 deletion deploy/operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ spec:
serviceAccountName: application-monitoring-operator
containers:
- name: application-monitoring-operator
image: quay.io/integreatly/application-monitoring-operator:0.0.9
image: quay.io/integreatly/application-monitoring-operator:latest
ports:
- containerPort: 60000
name: metrics
Expand Down
17 changes: 16 additions & 1 deletion deploy/operator_roles/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,12 @@ rules:
- apiGroups:
- integreatly.org
resources:
- grafanadatasources
- grafanadashboards
- grafanas
- grafanas/finalizers
- grafanadatasources/finalizers
- grafanadashboards/finalizers
verbs:
- '*'
- apiGroups:
Expand All @@ -70,4 +73,16 @@ rules:
resources:
- ingresses
verbs:
- '*'
- '*'
- apiGroups:
- authentication.k8s.io
resources:
- tokenreviews
verbs:
- create
- apiGroups:
- authorization.k8s.io
resources:
- subjectaccessreviews
verbs:
- create
26 changes: 13 additions & 13 deletions deploy/roles/grafana-operator-clusterrole.yaml
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
apiVersion: authorization.openshift.io/v1
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: grafana-operator-cluster-role
name: grafana-operator
rules:
- apiGroups:
- ""
attributeRestrictions: null
- integreatly.org
resources:
- grafanadashboards
verbs: ['get', 'list', 'update', 'watch']
- apiGroups:
- authentication.k8s.io
resources:
- namespaces
- tokenreviews
verbs:
- get
- list
- watch
- create
- apiGroups:
- integreatly.org
attributeRestrictions: null
- authorization.k8s.io
resources:
- grafanadashboards
- grafanas
- subjectaccessreviews
verbs:
- '*'
- create
4 changes: 2 additions & 2 deletions deploy/roles/grafana-operator-clusterrole_binding.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ roleRef:
name: grafana-operator-cluster-role
subjects:
- kind: ServiceAccount
name: grafana-serviceaccount
name: grafana-operator
namespace: application-monitoring
userNames:
- system:serviceaccount:application-monitoring:grafana-serviceaccount
- system:serviceaccount:application-monitoring:grafana-operator
17 changes: 17 additions & 0 deletions deploy/roles/proxy-clusterrole.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: grafana-proxy
rules:
- apiGroups:
- authentication.k8s.io
resources:
- tokenreviews
verbs:
- create
- apiGroups:
- authorization.k8s.io
resources:
- subjectaccessreviews
verbs:
- create
12 changes: 12 additions & 0 deletions deploy/roles/proxy-clusterrole_binding.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: authorization.openshift.io/v1
kind: ClusterRoleBinding
metadata:
name: grafana-proxy
roleRef:
name: grafana-proxy
subjects:
- kind: ServiceAccount
name: grafana-serviceaccount
namespace: monitoring2
userNames:
- system:serviceaccount:application-monitoring:grafana-serviceaccount
Loading

0 comments on commit 9f0e986

Please sign in to comment.