Skip to content

Commit

Permalink
Pelorus Operator v0.0.2
Browse files Browse the repository at this point in the history
Pelorus Operator that addresses dora-metrics#777

Signed-off-by: Michal Pryc <mpryc@redhat.com>
  • Loading branch information
mpryc committed Jan 18, 2023
1 parent c76bed4 commit 18171a2
Show file tree
Hide file tree
Showing 9 changed files with 75 additions and 113 deletions.
2 changes: 1 addition & 1 deletion pelorus-operator/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# To re-generate a bundle for another specific version without changing the standard setup, you can:
# - use the VERSION as arg of the bundle target (e.g make bundle VERSION=0.0.2)
# - use environment variables to overwrite this value (e.g export VERSION=0.0.2)
VERSION ?= 0.0.1
VERSION ?= 0.0.2

# CHANNELS define the bundle channels used in the bundle.
# Add a new line here if you would like to change its default config. (E.g CHANNELS = "candidate,fast,stable")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ metadata:
},
"spec": {
"exporters": {
"global": {},
"instances": [
{
"app_name": "deploytime-exporter",
Expand Down Expand Up @@ -50,16 +49,16 @@ metadata:
capabilities: Basic Install
categories: |
Modernization & Migration,Developer Tools,Monitoring,Integration & Delivery
containerImage: quay.io/pelorus/pelorus-operator:0.0.1
createdAt: "2022-12-19T11:26:21Z"
containerImage: quay.io/pelorus/pelorus-operator:0.0.2
createdAt: "2023-01-18T16:48:37Z"
description: |
Tool that helps IT organizations measure their impact on the overall performance of their organization
operatorframework.io/suggested-namespace: pelorus
operators.operatorframework.io/builder: operator-sdk-v1.26.0
operators.operatorframework.io/project_layout: helm.sdk.operatorframework.io/v1
repository: https://github.com/konveyor/pelorus/
support: Pelorus Community
name: pelorus-operator.v0.0.1
name: pelorus-operator.v0.0.2
namespace: placeholder
spec:
apiservicedefinitions: {}
Expand Down Expand Up @@ -152,63 +151,40 @@ spec:
- patch
- update
- watch
- apiGroups:
- rbac.authorization.k8s.io
resources:
- clusterrolebindings
- clusterroles
verbs:
- '*'
- apiGroups:
- apps.openshift.io
resources:
- deploymentconfigs
verbs:
- '*'
- apiGroups:
- integreatly.org
resources:
- grafanadashboards
- grafanadatasources
- grafanas
verbs:
- '*'
- apiGroups:
- image.openshift.io
resources:
- imagestreams
verbs:
- '*'
- apiGroups:
- monitoring.coreos.com
resources:
- prometheuses
- prometheusrules
- servicemonitors
verbs:
- '*'
- apiGroups:
- route.openshift.io
resources:
- routes
verbs:
- '*'
- apiGroups:
- ""
resources:
- pods
- services
- services/finalizers
- endpoints
- persistentvolumeclaims
- events
- configmaps
- secrets
- serviceaccounts
- services
verbs:
- '*'
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- rbac.authorization.k8s.io
- apps
resources:
- rolebindings
- roles
- deployments
- daemonsets
- replicasets
- statefulsets
verbs:
- '*'
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- operators.coreos.com
resources:
Expand Down Expand Up @@ -358,7 +334,7 @@ spec:
- --metrics-bind-address=127.0.0.1:8080
- --leader-elect
- --leader-election-id=pelorus-operator
image: quay.io/pelorus/pelorus-operator:0.0.1
image: quay.io/pelorus/pelorus-operator:0.0.2
livenessProbe:
httpGet:
path: /healthz
Expand Down Expand Up @@ -460,4 +436,4 @@ spec:
provider:
name: Red Hat
url: https://redhat.com
version: 0.0.1
version: 0.0.2
2 changes: 1 addition & 1 deletion pelorus-operator/config/manager/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ kind: Kustomization
images:
- name: controller
newName: quay.io/pelorus/pelorus-operator
newTag: 0.0.1
newTag: 0.0.2
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
capabilities: Basic Install
categories: |
Modernization & Migration,Developer Tools,Monitoring,Integration & Delivery
containerImage: quay.io/pelorus/pelorus-operator:0.0.1
containerImage: quay.io/pelorus/pelorus-operator:0.0.2
description: |
Tool that helps IT organizations measure their impact on the overall performance of their organization
operatorframework.io/suggested-namespace: pelorus
Expand Down
85 changes: 31 additions & 54 deletions pelorus-operator/config/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,62 +45,39 @@ rules:
- patch
- update
- watch
- verbs:
- "*"
apiGroups:
- "rbac.authorization.k8s.io"
resources:
- "clusterrolebindings"
- "clusterroles"
- verbs:
- "*"
apiGroups:
- "apps.openshift.io"
resources:
- "deploymentconfigs"
- verbs:
- "*"
apiGroups:
- "integreatly.org"
resources:
- "grafanadashboards"
- "grafanadatasources"
- "grafanas"
- verbs:
- "*"
apiGroups:
- "image.openshift.io"
resources:
- "imagestreams"
- verbs:
- "*"
apiGroups:
- "monitoring.coreos.com"
resources:
- "prometheuses"
- "prometheusrules"
- "servicemonitors"
- verbs:
- "*"
apiGroups:
- "route.openshift.io"
resources:
- "routes"
- verbs:
- "*"
apiGroups:
- apiGroups:
- ""
resources:
- "configmaps"
- "secrets"
- "serviceaccounts"
- "services"
- verbs:
- "*"
apiGroups:
- "rbac.authorization.k8s.io"
- pods
- services
- services/finalizers
- endpoints
- persistentvolumeclaims
- events
- configmaps
- secrets
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- apps
resources:
- "rolebindings"
- "roles"
- deployments
- daemonsets
- replicasets
- statefulsets
verbs:
- create
- delete
- get
- list
- patch
- update
- watch

#+kubebuilder:scaffold:rules
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ metadata:
spec:
# Default values copied from <project_dir>/helm-charts/pelorus/values.yaml
exporters:
global: {}
instances:
- app_name: deploytime-exporter
exporter_type: deploytime
Expand Down
2 changes: 1 addition & 1 deletion pelorus-operator/helm-charts/pelorus/Chart.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ dependencies:
repository: file://./subcharts/exporters
version: 2.0.4
digest: sha256:76d6f1ef53a7d8586a7d04dac9932b82460dcf135e48901741f510b401b906c3
generated: "2022-12-19T12:26:16.845346124+01:00"
generated: "2023-01-18T17:48:33.801502771+01:00"
1 change: 1 addition & 0 deletions pelorus-operator/watches.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
version: v1alpha1
kind: Pelorus
chart: helm-charts/pelorus
watchDependentResources: false
#+kubebuilder:scaffold:watch
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
--- watches.yaml.original 2023-01-18 17:44:32.236167254 +0100
+++ watches.yaml 2023-01-18 17:44:48.578216943 +0100
@@ -3,4 +3,5 @@
version: v1alpha1
kind: Pelorus
chart: helm-charts/pelorus
+ watchDependentResources: false
#+kubebuilder:scaffold:watch

0 comments on commit 18171a2

Please sign in to comment.