Skip to content

Commit

Permalink
Update chart to be compatible with new version of grafana crd
Browse files Browse the repository at this point in the history
Signed-off-by: Eric Sauer <[email protected]>
  • Loading branch information
etsauer committed Sep 18, 2024
1 parent 4444f22 commit 7b225d1
Show file tree
Hide file tree
Showing 28 changed files with 79 additions and 79 deletions.
2 changes: 1 addition & 1 deletion charts/operators/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ type: application

# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
version: 2.0.13-rc.5
version: 2.0.13-rc.6
4 changes: 2 additions & 2 deletions charts/operators/values.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
---
grafana_subscription_version: 5.12.0
prometheus_subscription_version: 0.56.3
grafana_subscription_version: ">=5.12.0"
prometheus_subscription_version: ">=0.56.3"
6 changes: 3 additions & 3 deletions charts/pelorus/Chart.lock
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
dependencies:
- name: exporters
repository: file://./charts/exporters
version: 2.0.13-rc.5
digest: sha256:8e2357c1c6a1dd97e1875e6faa59cfa04480ed10fa6b96aee01ed00df4fb0b94
generated: "2024-09-11T14:40:09.478494302Z"
version: 2.0.13-rc.6
digest: sha256:c8732216313eb1f6ddacb5b7200c9405dd0f24f35ecab0d7c691cc94c9adbd26
generated: "2024-09-18T19:32:18.988569071Z"
4 changes: 2 additions & 2 deletions charts/pelorus/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ type: application

# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
version: 2.0.13-rc.5
version: 2.0.13-rc.6

dependencies:
- name: exporters
version: 2.0.13-rc.5
version: 2.0.13-rc.6
repository: file://./charts/exporters
2 changes: 1 addition & 1 deletion charts/pelorus/charts/exporters/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ type: application

# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
version: 2.0.13-rc.5
version: 2.0.13-rc.6
4 changes: 2 additions & 2 deletions charts/pelorus/charts/exporters/templates/_deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ spec:
containers:
- name: {{ .app_name }}
imagePullPolicy: Always
image: quay.io/pelorus/pelorus-{{ .exporter_type }}-exporter:{{ .image_tag | default "v2.0.13-rc.5" }}
image: quay.io/pelorus/pelorus-{{ .exporter_type }}-exporter:{{ .image_tag | default "v2.0.13-rc.6" }}
volumeMounts:
{{- range $config := .custom_certs }}
- name: custom-cert-volume-{{$config.map_name}}
Expand Down Expand Up @@ -62,7 +62,7 @@ spec:
value: {{ .image_name }}:{{ .image_tag | default "latest" }}
{{- end }}
{{- else }}
value: quay.io/pelorus/pelorus-{{ .exporter_type }}-exporter:{{ .image_tag | default "v2.0.13-rc.5" }}
value: quay.io/pelorus/pelorus-{{ .exporter_type }}-exporter:{{ .image_tag | default "v2.0.13-rc.6" }}
{{- end }}
{{- end }}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ spec:
name: {{ .image_name }}:{{ .image_tag | default "latest" }}
{{- end }}
{{- else }}
name: quay.io/pelorus/pelorus-{{ .exporter_type }}-exporter:{{ .image_tag | default "v2.0.13-rc.5" }}
name: quay.io/pelorus/pelorus-{{ .exporter_type }}-exporter:{{ .image_tag | default "v2.0.13-rc.6" }}
# .image_name
{{- end }}
name: {{ .image_tag | default "stable" }}
Expand Down
2 changes: 1 addition & 1 deletion charts/pelorus/templates/dashboard-sdp-byapp.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
apiVersion: integreatly.org/v1alpha1
apiVersion: integreatly.org/v1beta1
kind: GrafanaDashboard
metadata:
name: dashboard-sdp-byapp
Expand Down
2 changes: 1 addition & 1 deletion charts/pelorus/templates/dashboard-sdp.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
apiVersion: integreatly.org/v1alpha1
apiVersion: integreatly.org/v1beta1
kind: GrafanaDashboard
metadata:
name: dashboard-sdp
Expand Down
2 changes: 1 addition & 1 deletion charts/pelorus/templates/grafana-thanos-datasource.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
apiVersion: integreatly.org/v1alpha1
apiVersion: integreatly.org/v1beta1
kind: GrafanaDataSource
metadata:
name: prometheus-grafana-datasource
Expand Down
2 changes: 1 addition & 1 deletion charts/pelorus/templates/grafana.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
apiVersion: integreatly.org/v1alpha1
apiVersion: integreatly.org/v1beta1
kind: Grafana
metadata:
name: grafana-oauth
Expand Down
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.10-rc.5
VERSION ?= 0.0.10-rc.6

# 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 @@ -49,16 +49,16 @@ metadata:
capabilities: Basic Install
categories: |
Modernization & Migration,Developer Tools,Monitoring,Integration & Delivery
containerImage: quay.io/pelorus/pelorus-operator:0.0.10-rc.5
createdAt: "2024-09-11T14:40:10Z"
containerImage: quay.io/pelorus/pelorus-operator:0.0.10-rc.6
createdAt: "2024-09-18T19:54:34Z"
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.33.0
operators.operatorframework.io/project_layout: helm.sdk.operatorframework.io/v1
repository: https://github.com/dora-metrics/pelorus/
support: Pelorus Community
name: pelorus-operator.v0.0.10-rc.5
name: pelorus-operator.v0.0.10-rc.6
namespace: placeholder
spec:
apiservicedefinitions: {}
Expand Down Expand Up @@ -211,45 +211,45 @@ spec:
verbs:
- '*'
- apiGroups:
- image.openshift.io
- ""
resources:
- imagestreams
- configmaps
- secrets
- serviceaccounts
- services
verbs:
- '*'
- apiGroups:
- monitoring.coreos.com
- rbac.authorization.k8s.io
resources:
- prometheuses
- prometheusrules
- servicemonitors
- rolebindings
- roles
verbs:
- '*'
- apiGroups:
- route.openshift.io
- apps
resources:
- routes
- deployments
verbs:
- '*'
- apiGroups:
- ""
- image.openshift.io
resources:
- configmaps
- secrets
- serviceaccounts
- services
- imagestreams
verbs:
- '*'
- apiGroups:
- rbac.authorization.k8s.io
- monitoring.coreos.com
resources:
- rolebindings
- roles
- prometheuses
- prometheusrules
- servicemonitors
verbs:
- '*'
- apiGroups:
- apps
- route.openshift.io
resources:
- deployments
- routes
verbs:
- '*'
- apiGroups:
Expand Down Expand Up @@ -385,7 +385,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.10-rc.5
image: quay.io/etsauer/pelorus-operator:0.0.10-rc.6
livenessProbe:
httpGet:
path: /healthz
Expand Down Expand Up @@ -487,7 +487,7 @@ spec:
provider:
name: Red Hat
url: https://redhat.com
version: 0.0.10-rc.5
version: 0.0.10-rc.6
replaces: pelorus-operator.v0.0.9
skips:
- pelorus-operator.v0.0.9
Expand Down
4 changes: 2 additions & 2 deletions pelorus-operator/config/manager/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
images:
- name: controller
newName: quay.io/pelorus/pelorus-operator
newTag: 0.0.10-rc.5
newName: quay.io/etsauer/pelorus-operator
newTag: 0.0.10-rc.6
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.10-rc.5
containerImage: quay.io/pelorus/pelorus-operator:0.0.10-rc.6
description: |
Tool that helps IT organizations measure their impact on the overall performance of their organization
operatorframework.io/suggested-namespace: pelorus
Expand Down
36 changes: 18 additions & 18 deletions pelorus-operator/config/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,44 +55,44 @@ rules:
- verbs:
- "*"
apiGroups:
- "image.openshift.io"
- ""
resources:
- "imagestreams"
- "configmaps"
- "secrets"
- "serviceaccounts"
- "services"
- verbs:
- "*"
apiGroups:
- "monitoring.coreos.com"
- "rbac.authorization.k8s.io"
resources:
- "prometheuses"
- "prometheusrules"
- "servicemonitors"
- "rolebindings"
- "roles"
- verbs:
- "*"
apiGroups:
- "route.openshift.io"
- "apps"
resources:
- "routes"
- "deployments"
- verbs:
- "*"
apiGroups:
- ""
- "image.openshift.io"
resources:
- "configmaps"
- "secrets"
- "serviceaccounts"
- "services"
- "imagestreams"
- verbs:
- "*"
apiGroups:
- "rbac.authorization.k8s.io"
- "monitoring.coreos.com"
resources:
- "rolebindings"
- "roles"
- "prometheuses"
- "prometheusrules"
- "servicemonitors"
- verbs:
- "*"
apiGroups:
- "apps"
- "route.openshift.io"
resources:
- "deployments"
- "routes"

#+kubebuilder:scaffold:rules
6 changes: 3 additions & 3 deletions pelorus-operator/helm-charts/pelorus/Chart.lock
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
dependencies:
- name: exporters
repository: file://./charts/exporters
version: 2.0.13-rc.5
digest: sha256:8e2357c1c6a1dd97e1875e6faa59cfa04480ed10fa6b96aee01ed00df4fb0b94
generated: "2024-09-11T14:40:09.706222738Z"
version: 2.0.13-rc.6
digest: sha256:c8732216313eb1f6ddacb5b7200c9405dd0f24f35ecab0d7c691cc94c9adbd26
generated: "2024-09-18T19:54:33.546217966Z"
4 changes: 2 additions & 2 deletions pelorus-operator/helm-charts/pelorus/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ apiVersion: v2
dependencies:
- name: exporters
repository: file://./charts/exporters
version: 2.0.13-rc.5
version: 2.0.13-rc.6
description: A Helm chart for Kubernetes
name: pelorus
type: application
version: 2.0.13-rc.5
version: 2.0.13-rc.6
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ type: application

# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
version: 2.0.13-rc.5
version: 2.0.13-rc.6
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ spec:
containers:
- name: {{ .app_name }}
imagePullPolicy: Always
image: quay.io/pelorus/pelorus-{{ .exporter_type }}-exporter:{{ .image_tag | default "v2.0.13-rc.5" }}
image: quay.io/pelorus/pelorus-{{ .exporter_type }}-exporter:{{ .image_tag | default "v2.0.13-rc.6" }}
volumeMounts:
{{- range $config := .custom_certs }}
- name: custom-cert-volume-{{$config.map_name}}
Expand Down Expand Up @@ -62,7 +62,7 @@ spec:
value: {{ .image_name }}:{{ .image_tag | default "latest" }}
{{- end }}
{{- else }}
value: quay.io/pelorus/pelorus-{{ .exporter_type }}-exporter:{{ .image_tag | default "v2.0.13-rc.5" }}
value: quay.io/pelorus/pelorus-{{ .exporter_type }}-exporter:{{ .image_tag | default "v2.0.13-rc.6" }}
{{- end }}
{{- end }}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ spec:
name: {{ .image_name }}:{{ .image_tag | default "latest" }}
{{- end }}
{{- else }}
name: quay.io/pelorus/pelorus-{{ .exporter_type }}-exporter:{{ .image_tag | default "v2.0.13-rc.5" }}
name: quay.io/pelorus/pelorus-{{ .exporter_type }}-exporter:{{ .image_tag | default "v2.0.13-rc.6" }}
# .image_name
{{- end }}
name: {{ .image_tag | default "stable" }}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
apiVersion: integreatly.org/v1alpha1
apiVersion: integreatly.org/v1beta1
kind: GrafanaDashboard
metadata:
name: dashboard-sdp-byapp
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
apiVersion: integreatly.org/v1alpha1
apiVersion: integreatly.org/v1beta1
kind: GrafanaDashboard
metadata:
name: dashboard-sdp
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
apiVersion: integreatly.org/v1alpha1
apiVersion: integreatly.org/v1beta1
kind: GrafanaDataSource
metadata:
name: prometheus-grafana-datasource
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
apiVersion: integreatly.org/v1alpha1
apiVersion: integreatly.org/v1beta1
kind: Grafana
metadata:
name: grafana-oauth
Expand Down
4 changes: 2 additions & 2 deletions scripts/chart-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,14 @@ fi
GRAFANA_VER_HELM=$(grep grafana_subscription_version charts/operators/values.yaml | cut -d':' -f2 | tr -d ' ')
PROMETHEUS_VER_HELM=$(grep prometheus_subscription_version charts/operators/values.yaml | cut -d':' -f2 | tr -d ' ')

if ! grep \""$GRAFANA_VER_HELM"\" pelorus-operator/bundle/metadata/properties.yaml >/dev/null; then
if ! grep "$GRAFANA_VER_HELM" pelorus-operator/bundle/metadata/properties.yaml >/dev/null; then
echo "ERROR: Grafana version $GRAFANA_VER_HELM not found in the pelorus-operator/bundle/metadata/properties.yaml"
exit 1
else
echo "OK: Grafana version $GRAFANA_VER_HELM in sync with the pelorus-operator/bundle/metadata/properties.yaml"
fi

if ! grep \""$PROMETHEUS_VER_HELM"\" pelorus-operator/bundle/metadata/properties.yaml >/dev/null; then
if ! grep "$PROMETHEUS_VER_HELM" pelorus-operator/bundle/metadata/properties.yaml >/dev/null; then
echo "ERROR: Prometheus version $PROMETHEUS_VER_HELM not found in the pelorus-operator/bundle/metadata/properties.yaml"
exit 1
else
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
+- type: olm.package
+ value:
+ packageName: prometheus
+ version: "0.56.3"
+ version: ">=0.56.3"
+- type: olm.package
+ value:
+ packageName: grafana-operator
+ version: "5.12.0"
+ version: ">=5.12.0"

Loading

0 comments on commit 7b225d1

Please sign in to comment.