Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions hack/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,16 @@ function set_version_label() {
-e "s/(app.kubernetes.io\/version: )\"?${old_version}\"?/\1${operator_version}/g" \
-e "s/(version: )\"?${old_version}\"?/\1${operator_version}/g" \
-e "s/(\"-version\"), \"?${old_version}\"?/\1, ${operator_version}/g" cmd/openshift/operator/kodata/cabundles/*.yaml

# Update the Helm chart. Chart.yaml's "version" (plain semver, no "v"
# prefix) and "appVersion" (matches the release tag) are the only fields
# that need updating: every templates/*.yaml label is already rendered
# from .Chart.AppVersion.
echo updating charts/tekton-operator/Chart.yaml from version: ${old_version} to version: ${operator_version}
sed -i -E \
-e "s/^version: \"?${old_version#v}\"?/version: ${operator_version#v}/" \
-e "s/^appVersion: \"?${old_version}\"?/appVersion: ${operator_version}/" \
charts/tekton-operator/Chart.yaml
}


Expand All @@ -64,6 +74,7 @@ function commit_changes() {

git add -u cmd/
git add -u config/
git add -u charts/
git commit -m "Freezing Component versions and updating version labels"
}

Expand Down
14 changes: 0 additions & 14 deletions tekton/release-cheat-sheet.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,20 +51,6 @@ on the shared Tekton infrastructure cluster.
curl -s https://infra.tekton.dev/tekton-releases/operator/previous/${TEKTON_RELEASE_VERSION}/openshift-release.yaml | head
```

1. Update Helm charts with the new version:

```bash
# Update labels in YAML files under templates directory
find charts/tekton-operator/templates -type f -name '*.yaml' -exec sed -i \
"s/operator\.tekton\.dev\/release: \"devel\"/operator.tekton.dev\/release: ${TEKTON_RELEASE_VERSION}/g" {} +
find charts/tekton-operator/templates -type f -name '*.yaml' -exec sed -i \
"s/version: \"devel\"/version: ${TEKTON_RELEASE_VERSION}/g" {} +

# Update Chart.yaml
sed -i "s/^version: \"devel\"/version: ${TEKTON_RELEASE_VERSION#v}/" charts/tekton-operator/Chart.yaml
sed -i "s/^appVersion: \"devel\"/appVersion: ${TEKTON_RELEASE_VERSION}/" charts/tekton-operator/Chart.yaml
```

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pujitha24 cheatsheet steps are maintained for manual references. Any specific reason why this is removed?

### Patch Release (bugfix)

Patch releases can be triggered manually or automatically.
Expand Down
Loading