Skip to content

Commit

Permalink
New release of Pelorus with new pelorus operator to fix #849 (#850)
Browse files Browse the repository at this point in the history
Signed-off-by: Michal Pryc <[email protected]>
  • Loading branch information
mpryc authored Mar 2, 2023
1 parent c7478af commit 3ee9fac
Show file tree
Hide file tree
Showing 17 changed files with 138 additions and 89 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.6
version: 2.0.7
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.6
version: 2.0.7

dependencies:
- name: exporters
version: "v2.0.6"
version: "v2.0.7"
repository: file://./subcharts/exporters
2 changes: 1 addition & 1 deletion charts/pelorus/subcharts/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.6
version: 2.0.7
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ spec:
source:
contextDir: {{ .source_context_dir | default "exporters/" }}
git:
ref: {{ .source_ref | default "v2.0.6" }}
ref: {{ .source_ref | default "v2.0.7" }}
uri: {{ .source_url | default "https://github.com/konveyor/pelorus.git"}}
type: Git
strategy:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ spec:
name: {{ .image_name }}
# .image_name is provided without tag
{{- else }}
name: {{ .image_name }}:{{ .image_tag | default "2.0.6" }}
name: {{ .image_name }}:{{ .image_tag | default "2.0.7" }}
{{- end }}
{{- else }}
name: quay.io/pelorus/pelorus-{{ .exporter_type }}-exporter:{{ .image_tag | default "2.0.6" }}
name: quay.io/pelorus/pelorus-{{ .exporter_type }}-exporter:{{ .image_tag | default "2.0.7" }}
# .image_name
{{- end }}
name: {{ .image_tag | default "2.0.6" }}
name: {{ .image_tag | default "2.0.7" }}
referencePolicy:
type: Local
# define
Expand Down
4 changes: 2 additions & 2 deletions docs/Development.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ If not defined specifically, exporters are using pre-built container images with

Each Pelorus GitHub pull request that is [merged](https://github.com/konveyor/pelorus/pulls?q=is%3Apr+is%3Amerged) results in a new set of images that are tagged with the GitHub commit hash, for example `d6f6e6fa1c9d48ca1deeaf1c72585b94964cbf31` for the following [Pull Request](https://github.com/konveyor/pelorus/commit/d6f6e6fa1c9d48ca1deeaf1c72585b94964cbf31). The newest merged commit results in additional image tag `latest`.

Each new Pelorus [release](https://github.com/konveyor/pelorus/releases) results in a new set of images that are tagged with the release number, for example `v2.0.6`. At the same time when release is made a `stable` tag is updated to point to the latest released version of the images.
Each new Pelorus [release](https://github.com/konveyor/pelorus/releases) results in a new set of images that are tagged with the release number, for example `v2.0.7`. At the same time when release is made a `stable` tag is updated to point to the latest released version of the images.

During Pelorus Helm deployment or update time user have option to specify the image tag for each exporter instance individually. Example below shows two different tags for the commit time exporter and two tags for the failure exporter.

Expand Down Expand Up @@ -190,7 +190,7 @@ exporters:

- app_name: jira-failure-exporter
exporter_type: failure
image_tag: v2.0.6 # Specific release
image_tag: v2.0.7 # Specific release
env_from_secrets:
- jira-credentials
env_from_configmaps:
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.3
VERSION ?= 0.0.4

# 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,6 +12,7 @@ metadata:
},
"spec": {
"exporters": {
"global": {},
"instances": [
{
"app_name": "deploytime-exporter",
Expand Down Expand Up @@ -49,16 +50,16 @@ metadata:
capabilities: Basic Install
categories: |
Modernization & Migration,Developer Tools,Monitoring,Integration & Delivery
containerImage: quay.io/pelorus/pelorus-operator:0.0.3
createdAt: "2023-02-21T13:31:48Z"
containerImage: quay.io/pelorus/pelorus-operator:0.0.4
createdAt: "2023-03-02T13:39:53Z"
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.1
operators.operatorframework.io/project_layout: helm.sdk.operatorframework.io/v1
repository: https://github.com/konveyor/pelorus/
support: Pelorus Community
name: pelorus-operator.v0.0.3
name: pelorus-operator.v0.0.4
namespace: placeholder
spec:
apiservicedefinitions: {}
Expand Down Expand Up @@ -152,39 +153,62 @@ spec:
- update
- watch
- apiGroups:
- ""
- rbac.authorization.k8s.io
resources:
- pods
- services
- services/finalizers
- endpoints
- persistentvolumeclaims
- events
- configmaps
- secrets
- clusterrolebindings
- clusterroles
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- '*'
- apiGroups:
- apps
- rbac.authorization.k8s.io
resources:
- deployments
- daemonsets
- replicasets
- statefulsets
- rolebindings
- roles
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- '*'
- 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:
- configmaps
- secrets
- serviceaccounts
- services
verbs:
- '*'
- apiGroups:
- operators.coreos.com
resources:
Expand Down Expand Up @@ -334,7 +358,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.3
image: quay.io/pelorus/pelorus-operator:0.0.4
livenessProbe:
httpGet:
path: /healthz
Expand Down Expand Up @@ -436,8 +460,9 @@ spec:
provider:
name: Red Hat
url: https://redhat.com
version: 0.0.3
replaces: pelorus-operator.v0.0.2
version: 0.0.4
replaces: pelorus-operator.v0.0.3
skips:
- pelorus-operator.v0.0.3
- pelorus-operator.v0.0.2
- pelorus-operator.v0.0.1
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.3
newTag: 0.0.4
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.3
containerImage: quay.io/pelorus/pelorus-operator:0.0.4
description: |
Tool that helps IT organizations measure their impact on the overall performance of their organization
operatorframework.io/suggested-namespace: pelorus
Expand Down
87 changes: 55 additions & 32 deletions pelorus-operator/config/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,39 +45,62 @@ rules:
- patch
- update
- watch
- apiGroups:
- ""
- verbs:
- "*"
apiGroups:
- "rbac.authorization.k8s.io"
resources:
- pods
- services
- services/finalizers
- endpoints
- persistentvolumeclaims
- events
- configmaps
- secrets
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- apps
- "clusterrolebindings"
- "clusterroles"
- verbs:
- "*"
apiGroups:
- "rbac.authorization.k8s.io"
resources:
- deployments
- daemonsets
- replicasets
- statefulsets
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- "rolebindings"
- "roles"
- 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:
- "configmaps"
- "secrets"
- "serviceaccounts"
- "services"

#+kubebuilder:scaffold:rules
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ 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
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://./subcharts/exporters
version: 2.0.6
digest: sha256:ffda57f2fffbfe9bffc6c184b3ca9d96f4d95a1c721dab6ea1fa7e44b66185df
generated: "2023-02-21T14:31:44.600107749+01:00"
version: 2.0.7
digest: sha256:f613fb665d4f9b0d17119698eada144f11dd85bf498197b5ad587bcbafaebdbe
generated: "2023-03-02T14:39:47.359886943+01:00"
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://./subcharts/exporters
version: v2.0.6
version: v2.0.7
description: A Helm chart for Kubernetes
name: pelorus
type: application
version: 2.0.6
version: 2.0.7
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.6
version: 2.0.7
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ spec:
source:
contextDir: {{ .source_context_dir | default "exporters/" }}
git:
ref: {{ .source_ref | default "v2.0.6" }}
ref: {{ .source_ref | default "v2.0.7" }}
uri: {{ .source_url | default "https://github.com/konveyor/pelorus.git"}}
type: Git
strategy:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ spec:
name: {{ .image_name }}
# .image_name is provided without tag
{{- else }}
name: {{ .image_name }}:{{ .image_tag | default "2.0.6" }}
name: {{ .image_name }}:{{ .image_tag | default "2.0.7" }}
{{- end }}
{{- else }}
name: quay.io/pelorus/pelorus-{{ .exporter_type }}-exporter:{{ .image_tag | default "2.0.6" }}
name: quay.io/pelorus/pelorus-{{ .exporter_type }}-exporter:{{ .image_tag | default "2.0.7" }}
# .image_name
{{- end }}
name: {{ .image_tag | default "2.0.6" }}
name: {{ .image_tag | default "2.0.7" }}
referencePolicy:
type: Local
# define
Expand Down

0 comments on commit 3ee9fac

Please sign in to comment.