Skip to content

docs: use latest version in installation#843

Open
reshnm wants to merge 1 commit intoopen-component-model:mainfrom
reshnm:patch-1
Open

docs: use latest version in installation#843
reshnm wants to merge 1 commit intoopen-component-model:mainfrom
reshnm:patch-1

Conversation

@reshnm
Copy link

@reshnm reshnm commented Feb 23, 2026

Updated installation command to use the latest version of ocm-controller.
The docs currently statically reference and old version.
An alternative approach would be to update the docs when a new version has been released, but I think this is simpler.

What this PR does / why we need it

Which issue(s) this PR is related to

Updated installation command to use the latest version of ocm-controller.

Signed-off-by: René Schünemann <rene.schuenemann@sap.com>
@reshnm reshnm requested a review from a team as a code owner February 23, 2026 11:18
Copy link
Contributor

@frewilhelm frewilhelm left a comment

Choose a reason for hiding this comment

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

just one minor proposal :)


```bash
helm install ocm-controller oci://ghcr.io/open-component-model/helm/ocm-controller --version v0.25.3
OCM_CONTROLLER_LATEST_VERSION=$(curl -s https://api.github.com/repos/open-component-model/ocm-controller/releases/latest | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/')
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
OCM_CONTROLLER_LATEST_VERSION=$(curl -s https://api.github.com/repos/open-component-model/ocm-controller/releases/latest | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/')
OCM_CONTROLLER_LATEST_VERSION=$(curl -s https://api.github.com/repos/open-component-model/ocm-controller/releases/latest | jq -r '.tag_name')

Although I really love some sed action, I think using jq is simpler (however, it would be another dependency)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants