Skip to content

Commit

Permalink
Bump chart and operator versions
Browse files Browse the repository at this point in the history
  • Loading branch information
etsauer committed Jul 25, 2024
1 parent 32b7e28 commit 0664f95
Show file tree
Hide file tree
Showing 17 changed files with 49 additions and 54 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.12
version: 2.0.13-rc.1
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.12
digest: sha256:5c8bd23146040c7cf0cf6773a7683b76d7e1fe13ebb3d72aa2061ea9c5924159
generated: "2024-05-27T17:03:56.379849633-03:00"
version: 2.0.13-rc.1
digest: sha256:7509215040089f3aafebaf275ac38485546d900b1bddb5849daf35d412745871
generated: "2024-07-25T19:14:26.512787589Z"
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.12
version: 2.0.13-rc.1

dependencies:
- name: exporters
version: 2.0.12
version: 2.0.13-rc.1
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.12
version: 2.0.13-rc.1
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ spec:
value: {{ .image_name }}:{{ .image_tag | default "latest" }}
{{- end }}
{{- else }}
value: quay.io/pelorus/pelorus-{{ .exporter_type }}-exporter:{{ .image_tag | default "v2.0.12" }}
value: quay.io/pelorus/pelorus-{{ .exporter_type }}-exporter:{{ .image_tag | default "v2.0.13-rc.1" }}
{{- 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.12" }}
name: quay.io/pelorus/pelorus-{{ .exporter_type }}-exporter:{{ .image_tag | default "v2.0.13-rc.1" }}
# .image_name
{{- end }}
name: {{ .image_tag | default "stable" }}
Expand Down
10 changes: 10 additions & 0 deletions exporters/committime/collector_containerimage.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ def get_labels_from_image(sha_256: str, image_uri: str) -> Dict[str, str]:
# We got the labels, so remove them from the potential
# existence in the failures.
_remove_from_skopeo_failure(sha_256)
logging.debug(f"Found the following labels for image {image_uri}: {labels}")
return labels


Expand Down Expand Up @@ -230,11 +231,13 @@ def _set_commit_metadata(
pod: ResourceField,
date_label: str,
hash_label: str,
repo_url_label: str,
sha_256: str,
date_format: str = None,
) -> None:
with image_label_cache_lock:
labels = image_label_cache.get(sha_256, None)
logging.debug(f"Got image labels for: {sha_256}")
if labels and isinstance(labels, Tuple) and isinstance(labels[0], dict):
pod.metadata.commit_hash = labels[0].get(hash_label)
commit_time = labels[0].get(date_label)
Expand All @@ -251,6 +254,10 @@ def _set_commit_metadata(
).timestamp()
except ValueError:
logging.debug(f"Can't get commit timestamp for sha: {sha_256}")
repo_url = labels[0].get(repo_url_label)
if not repo_url:
repo_url = "unknown"
pod.metadata.repo_url = repo_url


@define(kw_only=True)
Expand All @@ -259,6 +266,7 @@ class ContainerImageCommitCollector(AbstractCommitCollector):

date_annotation_name: str = CommitMetric._ANNOTATION_MAPPIG["commit_time"]
hash_annotation_name: str = CommitMetric._ANNOTATION_MAPPIG["commit_hash"]
repo_url_annotation_name: str = CommitMetric._ANNOTATION_MAPPIG["repo_url"]

def get_commit_time(self, metric) -> Optional[CommitMetric]:
return super().get_commit_time(metric)
Expand Down Expand Up @@ -296,6 +304,7 @@ def generate_metrics(self) -> Iterable[CommitMetric]:
pod,
self.date_annotation_name,
self.hash_annotation_name,
self.repo_url_annotation_name,
sha,
self.date_format,
)
Expand All @@ -308,6 +317,7 @@ def generate_metrics(self) -> Iterable[CommitMetric]:
commit_timestamp=pod.metadata.commit_timestamp,
image_hash=sha,
)
metric.repo_url = pod.metadata.repo_url
yield metric

_cleanup_cache()
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.9
VERSION ?= 0.0.10-rc.1

# 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.9
createdAt: "2024-05-27T20:04:01Z"
containerImage: quay.io/pelorus/pelorus-operator:0.0.10-rc.1
createdAt: "2024-07-25T19:14:27Z"
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.9
name: pelorus-operator.v0.0.10-rc.1
namespace: placeholder
spec:
apiservicedefinitions: {}
Expand Down Expand Up @@ -210,6 +210,12 @@ spec:
- clusterroles
verbs:
- '*'
- apiGroups:
- route.openshift.io
resources:
- routes
verbs:
- '*'
- apiGroups:
- ""
resources:
Expand All @@ -232,14 +238,6 @@ spec:
- deploymentconfigs
verbs:
- '*'
- apiGroups:
- integreatly.org
resources:
- grafanadashboards
- grafanadatasources
- grafanas
verbs:
- '*'
- apiGroups:
- image.openshift.io
resources:
Expand All @@ -254,12 +252,6 @@ spec:
- servicemonitors
verbs:
- '*'
- apiGroups:
- route.openshift.io
resources:
- routes
verbs:
- '*'
- apiGroups:
- operators.coreos.com
resources:
Expand Down Expand Up @@ -393,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.9
image: quay.io/pelorus/pelorus-operator:0.0.10-rc.1
livenessProbe:
httpGet:
path: /healthz
Expand Down Expand Up @@ -495,9 +487,10 @@ spec:
provider:
name: Red Hat
url: https://redhat.com
version: 0.0.9
replaces: pelorus-operator.v0.0.8
version: 0.0.10-rc.1
replaces: pelorus-operator.v0.0.9
skips:
- pelorus-operator.v0.0.9
- pelorus-operator.v0.0.8
- pelorus-operator.v0.0.7
- pelorus-operator.v0.0.6
Expand Down
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.9
newTag: 0.0.10-rc.1
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.9
containerImage: quay.io/pelorus/pelorus-operator:0.0.10-rc.1
description: |
Tool that helps IT organizations measure their impact on the overall performance of their organization
operatorframework.io/suggested-namespace: pelorus
Expand Down
20 changes: 6 additions & 14 deletions pelorus-operator/config/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,12 @@ rules:
resources:
- "clusterrolebindings"
- "clusterroles"
- verbs:
- "*"
apiGroups:
- "route.openshift.io"
resources:
- "routes"
- verbs:
- "*"
apiGroups:
Expand All @@ -74,14 +80,6 @@ rules:
- "apps.openshift.io"
resources:
- "deploymentconfigs"
- verbs:
- "*"
apiGroups:
- "integreatly.org"
resources:
- "grafanadashboards"
- "grafanadatasources"
- "grafanas"
- verbs:
- "*"
apiGroups:
Expand All @@ -96,11 +94,5 @@ rules:
- "prometheuses"
- "prometheusrules"
- "servicemonitors"
- verbs:
- "*"
apiGroups:
- "route.openshift.io"
resources:
- "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.12
digest: sha256:5c8bd23146040c7cf0cf6773a7683b76d7e1fe13ebb3d72aa2061ea9c5924159
generated: "2024-05-27T17:03:56.894029532-03:00"
version: 2.0.13-rc.1
digest: sha256:7509215040089f3aafebaf275ac38485546d900b1bddb5849daf35d412745871
generated: "2024-07-25T19:14:26.727440101Z"
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.12
version: 2.0.13-rc.1
description: A Helm chart for Kubernetes
name: pelorus
type: application
version: 2.0.12
version: 2.0.13-rc.1
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.12
version: 2.0.13-rc.1
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ spec:
value: {{ .image_name }}:{{ .image_tag | default "latest" }}
{{- end }}
{{- else }}
value: quay.io/pelorus/pelorus-{{ .exporter_type }}-exporter:{{ .image_tag | default "v2.0.12" }}
value: quay.io/pelorus/pelorus-{{ .exporter_type }}-exporter:{{ .image_tag | default "v2.0.13-rc.1" }}
{{- 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.12" }}
name: quay.io/pelorus/pelorus-{{ .exporter_type }}-exporter:{{ .image_tag | default "v2.0.13-rc.1" }}
# .image_name
{{- end }}
name: {{ .image_tag | default "stable" }}
Expand Down

0 comments on commit 0664f95

Please sign in to comment.