-
Notifications
You must be signed in to change notification settings - Fork 592
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
Include OpenShift cluster version in the telemetry #3149
Comments
ClusterVersion CRD is worth looking into. Probably we could read it/watch it and inspect its |
I didn't know about the library we have for telemetry (that we don't use in KIC yet). I think it might be worth considering incorporating OpenShift detection in there and using the library. |
That's evidently a miscommunication on my end. But nevertheless putting it in a library is one thing, implementing is another. If we figure out how to detect said version I'll happily help to incorporate that into the library and use it in KIC |
tl;dr there are some things that should provide the correct version with high confidence, but we don't currently have permissions to them and I think we should avoid adding new permissions if possible. There's something we do have access to already that looks like it will provide the OpenShift version, but with less confidence. Do we want to go ahead and use the latter? ClusterVersion is what the oc CLI uses to print the OpenShift version: https://github.com/openshift/oc/blob/bdc5bb5b66e06e77e05ed3290c15ebfff61fa23f/pkg/cli/version/version.go#L138C51-L146 However we would not normally have access to them, and OpenShift also seems weirdly cagey about granting access to them. Using a non-admin user to run
shift.yaml.txt is a
Several replication controllers (Deployments and similar) do have a
The OpenShift operators look like they all consistently use the same version as the OpenShift version they're bundled with, so that |
Kong/kubernetes-telemetry#168 and #4211 work to ascertain the cluster version on 4.13, which is the current version CRC installs. My choice of operator to probe was a best-guess about things that are likely to be consistent across versions. The API server is important and the associated operator has been around for ~4y: https://github.com/openshift/cluster-openshift-apiserver-operator Attempting to try and confirm signal viability across older versions, but tools for deploying older versions of OpenShift locally appear to be quite bitrotten (especially as far as docs go), so a bit poking around in the dark to see what works. |
Is there an existing issue for this?
Problem Statement
Currently, it's not possible to tell what OpenShift cluster versions KIC is running on in the wild. We would like to know it in order to broaden our context on the usage of KIC with OpenShift that is needed to make a proper decision on support policy for OpenShift.
Proposed Solution
oc
CLI,ClusterVersion
custom resource, node names heuristics?)Additional information
Initial investigation of the existing telemetry data has shown that the telemetry does include a Kubernetes cluster version which is not special in any sense for OpenShift clusters. Probably some dedicated heuristic is going to be needed to detect the OpenShift version.
Acceptance Criteria
The text was updated successfully, but these errors were encountered: