Skip to content

Commit 7f96c43

Browse files
committed
Revert "Normalize version for OLM bundle"
This reverts commit 0b62f98.
1 parent 0eb38a0 commit 7f96c43

File tree

2 files changed

+2
-20
lines changed

2 files changed

+2
-20
lines changed

Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
VERSION ?= 25.8.0
2-
HELM_VERSION ?= 25.08.0
32

43
CHANNELS ?= alpha
54
BUNDLE_CHANNELS := --channels=$(CHANNELS)
@@ -61,7 +60,7 @@ help: ## Display this help.
6160

6261
.PHONY: sync-chart
6362
sync-chart: ## Sync helm chart.
64-
@./hack/sync-chart.sh $(HELM_VERSION)
63+
@./hack/sync-chart.sh $(VERSION)
6564

6665
##@ Build
6766

hack/bump-bundle.sh

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,29 +2,12 @@
22

33
set -euo pipefail
44

5-
normalize_version() {
6-
local version="$1"
7-
IFS='.' read -r major minor patch <<< "$version"
8-
9-
# Remove leading zeroes safely by using arithmetic expansion
10-
major=$((10#$major))
11-
minor=$((10#$minor))
12-
patch=$((10#$patch))
13-
14-
echo "$major.$minor.$patch"
15-
}
16-
17-
INPUT_VERSION=$1
18-
VERSION=$(normalize_version "$INPUT_VERSION")
19-
20-
echo "📦 Input version: '$INPUT_VERSION'"
21-
echo "📦 Normalized to semver-compliant version: '$VERSION'"
5+
VERSION=$1
226

237
echo "📦 Bumping bundle to version '$VERSION'"
248

259
echo "📦 Updating Makefile"
2610
sed -i "s/VERSION ?= .*/VERSION ?= $VERSION/g" Makefile
27-
sed -i "s/HELM_VERSION ?= .*/HELM_VERSION ?= $INPUT_VERSION/g" Makefile
2811

2912
echo "📦 Generating bundle"
3013
make bundle

0 commit comments

Comments
 (0)