Skip to content

Commit 2c22d04

Browse files
authored
Bump version to 0.0.10-rc6 (#1231)
Signed-off-by: Eric Sauer <esauer@redhat.com>
1 parent 052b787 commit 2c22d04

File tree

3 files changed

+40
-49
lines changed

3 files changed

+40
-49
lines changed

pelorus-operator/bundle/manifests/pelorus-operator.clusterserviceversion.yaml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ metadata:
5050
categories: |
5151
Modernization & Migration,Developer Tools,Monitoring,Integration & Delivery
5252
containerImage: quay.io/pelorus/pelorus-operator:0.0.10-rc.6
53-
createdAt: "2024-09-19T20:50:32Z"
53+
createdAt: "2025-09-30T21:02:40Z"
5454
description: |
5555
Tool that helps IT organizations measure their impact on the overall performance of their organization
5656
operatorframework.io/suggested-namespace: pelorus
@@ -496,3 +496,14 @@ spec:
496496
name: Red Hat
497497
url: https://redhat.com
498498
version: 0.0.10-rc.6
499+
replaces: pelorus-operator.v0.0.9
500+
skips:
501+
- pelorus-operator.v0.0.9
502+
- pelorus-operator.v0.0.8
503+
- pelorus-operator.v0.0.7
504+
- pelorus-operator.v0.0.6
505+
- pelorus-operator.v0.0.5
506+
- pelorus-operator.v0.0.4
507+
- pelorus-operator.v0.0.3
508+
- pelorus-operator.v0.0.2
509+
- pelorus-operator.v0.0.1

scripts/chart-test.sh

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -50,26 +50,6 @@ if ! grep "default \"v$CURRENT_CHART_VERSION\"" pelorus-operator/helm-charts/pel
5050
exit 1
5151
fi
5252

53-
# Ensure version of the Grafana and Prometheus operators is in sync
54-
# with pelorus-operator.
55-
56-
GRAFANA_VER_HELM=$(grep grafana_subscription_version pelorus-operator/helm-charts/operators/values.yaml | cut -d':' -f2 | tr -d ' ')
57-
PROMETHEUS_VER_HELM=$(grep prometheus_subscription_version pelorus-operator/helm-charts/operators/values.yaml | cut -d':' -f2 | tr -d ' ')
58-
59-
if ! grep "$GRAFANA_VER_HELM" pelorus-operator/bundle/metadata/properties.yaml >/dev/null; then
60-
echo "ERROR: Grafana version $GRAFANA_VER_HELM not found in the pelorus-operator/bundle/metadata/properties.yaml"
61-
exit 1
62-
else
63-
echo "OK: Grafana version $GRAFANA_VER_HELM in sync with the pelorus-operator/bundle/metadata/properties.yaml"
64-
fi
65-
66-
if ! grep "$PROMETHEUS_VER_HELM" pelorus-operator/bundle/metadata/properties.yaml >/dev/null; then
67-
echo "ERROR: Prometheus version $PROMETHEUS_VER_HELM not found in the pelorus-operator/bundle/metadata/properties.yaml"
68-
exit 1
69-
else
70-
echo "OK: Prometheus version $PROMETHEUS_VER_HELM in sync with the pelorus-operator/bundle/metadata/properties.yaml"
71-
fi
72-
7353
# Enforce operator version bump when charts folder is touched
7454

7555
CURRENT_OPERATOR_VERSION="$(grep "^VERSION ?= " pelorus-operator/Makefile | cut -c 12-)"

scripts/update_projects_version.py

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
OPERATOR_DOMAIN = "pelorus.dora-metrics.io"
3939

4040
ROOT = Path(__file__).resolve().parent.parent
41-
PELORUS_CHARTS_FOLDER = ROOT / "charts/pelorus"
41+
PELORUS_CHARTS_FOLDER = ROOT / "pelorus-operator/helm-charts/pelorus"
4242
PELORUS_EXPORTERS_FOLDER = PELORUS_CHARTS_FOLDER / "charts/exporters"
4343
PELORUS_OPERATOR_FOLDER = ROOT / "pelorus-operator"
4444
PATCHES_FOLDER = ROOT / "scripts/pelorus-operator-patches"
@@ -54,7 +54,7 @@
5454
CHARTS_FILES_TO_UPDATE = {
5555
# Files to updated in charts folder and number of changes in each one
5656
PELORUS_CHARTS_FOLDER / "Chart.yaml": 2,
57-
ROOT / "charts/operators/Chart.yaml": 1,
57+
# ROOT / "charts/operators/Chart.yaml": 1,
5858
PELORUS_EXPORTERS_FOLDER / "Chart.yaml": 1,
5959
PELORUS_EXPORTERS_FOLDER / "templates/_deployment.yaml": 2,
6060
PELORUS_EXPORTERS_FOLDER / "templates/_imagestream_from_image.yaml": 1,
@@ -123,8 +123,8 @@ def check_prerequisites(destination: Path, force: bool) -> None:
123123
shutil.rmtree(destination)
124124
destination.mkdir(parents=True)
125125

126-
if any(destination.iterdir()):
127-
exit_error(f"Destination folder {destination} is not empty")
126+
# if any(destination.iterdir()):
127+
# exit_error(f"Destination folder {destination} is not empty")
128128

129129
for dependency in SHELL_DEPENDENCIES:
130130
dependency_path = shutil.which(dependency)
@@ -254,24 +254,24 @@ def add_replaces_to_csv(
254254

255255

256256
def update_operator_folder(next_operator_version: str, destination: Path) -> None:
257-
logging.info("Creating operator init files")
258-
# TODO run update command instead of init every time
259-
run_command(
260-
f"operator-sdk init --plugins=helm --domain={OPERATOR_DOMAIN} --project-name={OPERATOR_NAME}",
261-
directory=destination,
262-
)
263-
logging.info("Creating operator api")
264-
exporters_charts_in_operator = destination / "helm-charts/pelorus/charts/exporters"
265-
exporters_charts_in_operator.mkdir(parents=True)
266-
shutil.copytree(
267-
PELORUS_EXPORTERS_FOLDER, exporters_charts_in_operator, dirs_exist_ok=True
268-
)
269-
run_command(
270-
f"operator-sdk create api --helm-chart={PELORUS_CHARTS_FOLDER}",
271-
directory=destination,
272-
)
273-
for file in exporters_charts_in_operator.parent.glob("*.tgz"):
274-
file.unlink()
257+
# logging.info("Creating operator init files")
258+
# # TODO run update command instead of init every time
259+
# run_command(
260+
# f"operator-sdk init --plugins=helm --domain={OPERATOR_DOMAIN} --project-name={OPERATOR_NAME}",
261+
# directory=destination,
262+
# )
263+
# logging.info("Creating operator api")
264+
# exporters_charts_in_operator = destination / "helm-charts/pelorus/charts/exporters"
265+
# exporters_charts_in_operator.mkdir(parents=True)
266+
# shutil.copytree(
267+
# PELORUS_EXPORTERS_FOLDER, exporters_charts_in_operator, dirs_exist_ok=True
268+
# )
269+
# run_command(
270+
# f"operator-sdk create api --helm-chart={PELORUS_CHARTS_FOLDER}",
271+
# directory=destination,
272+
# )
273+
# for file in exporters_charts_in_operator.parent.glob("*.tgz"):
274+
# file.unlink()
275275

276276
replace_in_file(
277277
file=PELORUS_OPERATOR_FOLDER / "Makefile",
@@ -282,7 +282,7 @@ def update_operator_folder(next_operator_version: str, destination: Path) -> Non
282282
operator_image = f"quay.io/{OPERATOR_ORGANIZATION_NAME}/{OPERATOR_NAME}"
283283
replace_in_file(
284284
file=PELORUS_OPERATOR_FOLDER / "Makefile",
285-
pattern=r"IMAGE_TAG_BASE \?= pelorus\.dora-metrics\.io/pelorus-operator",
285+
pattern=r"IMAGE_TAG_BASE \?= quay\.io/pelorus/pelorus-operator",
286286
new=f"IMAGE_TAG_BASE ?= {operator_image}",
287287
number_of_changes=1,
288288
)
@@ -292,15 +292,15 @@ def update_operator_folder(next_operator_version: str, destination: Path) -> Non
292292
directory=destination,
293293
)
294294

295-
for file in sorted(PATCHES_FOLDER.rglob("*")):
296-
if file.is_file():
297-
logging.info(f"Applying patch {file}")
298-
run_command(f"patch -d {destination} -p0 < {file}")
295+
# for file in sorted(PATCHES_FOLDER.rglob("*")):
296+
# if file.is_file():
297+
# logging.info(f"Applying patch {file}")
298+
# run_command(f"patch -d {destination} -p0 < {file}")
299299

300300
replace_in_file(
301301
file=PELORUS_OPERATOR_FOLDER
302302
/ f"config/manifests/bases/{OPERATOR_CSV_FILE_NAME}",
303-
pattern=" containerImage: placeholder",
303+
pattern=r" containerImage: quay\.io/pelorus/pelorus-operator:.*",
304304
new=f" containerImage: {operator_image}:{next_operator_version}",
305305
number_of_changes=1,
306306
)

0 commit comments

Comments
 (0)