-
Notifications
You must be signed in to change notification settings - Fork 545
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get OLM version from cluster #935
Comments
Part of OLM (packageserver) is self-hosted with a CSV that tracks the release version. If you have CSV list privilege in the namespace OLM is installed in, this will give you the version: $ kubectl -n <olm-namespace> get csvs
NAME DISPLAY VERSION REPLACES PHASE
packageserver.v0.10.1 Package Server 0.10.1 Succeeded Ideally, at some point OLM will be entirely self-hosted, and the CSV name will reflect that (i.e. olm.vx.y.z). Hopefully, among other reasons, this makes pointing to the CSV for OLM info more natural (would love to hear other's thoughts on this). Alternatively, you can use $ kubectl -n olm exec olm-operator-<pod-suffix> -- olm --version
OLM version: 0.10.1
git commit: b8a4faf |
The |
Each OLM release is a new version. In the previous example,
We don't include the commit hash, just the semver of the release the manifests are cut for. You can reasonably expect that we won't change OLM manifests once released. |
@estroz heads up - in recent versions of OLM we've moved away from versioning the packageserver CSV. This makes the previously discussed |
@njhale what about the |
@estroz Nice catch! Yes, you can use that as well. |
Is there currently a way to retrieve the installed OLM's version from a running cluster through
kubectl
or client libarary? If not, there should at least be metadata tags on OLM resources, if not a Go client, and perhaps a grpc endpoint, to access version information.The text was updated successfully, but these errors were encountered: