-
Notifications
You must be signed in to change notification settings - Fork 6
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
ACM plugin should display if there's a cluster upgrade available #179
Closed
1 task
Comments
9 tasks
/assign |
We can use |
Example API response here: {
"apiVersion": "internal.open-cluster-management.io/v1beta1",
"kind": "ManagedClusterInfo",
"metadata": {
"creationTimestamp": "2021-08-27T13:57:24Z",
"generation": 4,
"labels": {
"app.kubernetes.io/instance": "acm-infra",
"authdeployment": "primary",
"cloud": "Other",
"cluster.open-cluster-management.io/clusterset": "argocd-managed",
"clusterID": "5d448ae7-05f1-42cc-aacc-3122a8ad0184",
"feature.open-cluster-management.io/addon-application-manager": "available",
"feature.open-cluster-management.io/addon-cert-policy-controller": "available",
"feature.open-cluster-management.io/addon-config-policy-controller": "available",
"feature.open-cluster-management.io/addon-governance-policy-framework": "available",
"feature.open-cluster-management.io/addon-iam-policy-controller": "available",
"feature.open-cluster-management.io/addon-observability-controller": "available",
"feature.open-cluster-management.io/addon-search-collector": "available",
"feature.open-cluster-management.io/addon-work-manager": "available",
"name": "smaug",
"openshiftVersion": "4.9.21",
"vendor": "OpenShift"
},
"managedFields": [],
"name": "smaug",
"namespace": "smaug",
"resourceVersion": "2340742541",
"uid": "7c50e31a-c371-4080-a09b-1a0fad351422"
},
"spec": {
"loggingCA": "...",
"masterEndpoint": "https://api.smaug.na.operate-first.cloud:6443"
},
"status": {
"cloudVendor": "BareMetal",
"clusterID": "5d448ae7-05f1-42cc-aacc-3122a8ad0184",
"conditions": [
{
"lastTransitionTime": "2021-08-27T13:57:23Z",
"message": "Accepted by hub cluster admin",
"reason": "HubClusterAdminAccepted",
"status": "True",
"type": "HubAcceptedManagedCluster"
},
{
"lastTransitionTime": "2022-10-20T13:45:52Z",
"message": "Managed cluster is available",
"reason": "ManagedClusterAvailable",
"status": "True",
"type": "ManagedClusterConditionAvailable"
},
{
"lastTransitionTime": "2021-08-27T13:59:13Z",
"message": "Managed cluster joined",
"reason": "ManagedClusterJoined",
"status": "True",
"type": "ManagedClusterJoined"
},
{
"lastTransitionTime": "2022-08-25T13:35:28Z",
"message": "Managed cluster info is synced",
"reason": "ManagedClusterInfoSynced",
"status": "True",
"type": "ManagedClusterInfoSynced"
}
],
"consoleURL": "https://console-openshift-console.apps.smaug.na.operate-first.cloud",
"distributionInfo": {
"ocp": {
"availableUpdates": [
"4.9.22",
"4.9.23",
"4.9.24"
],
"channel": "stable-4.9",
"desired": {
"channels": [
"candidate-4.10",
"candidate-4.9",
"fast-4.10",
"fast-4.9",
"stable-4.10",
"stable-4.9"
],
"image": "quay.io/openshift-release-dev/ocp-release@sha256:fd96300600f9585e5847f5855ca14e2b3cafbce12aefe3b3f52c5da10c4476eb",
"url": "https://access.redhat.com/errata/RHBA-2022:0488",
"version": "4.9.21"
},
"desiredVersion": "4.9.21",
"managedClusterClientConfig": {
"caBundle": "...",
"url": "https://api.smaug.na.operate-first.cloud:6443"
},
"version": "4.9.21",
"versionAvailableUpdates": [
{
"channels": [
"candidate-4.10",
"candidate-4.9",
"fast-4.10",
"fast-4.9",
"stable-4.10",
"stable-4.9"
],
"image": "quay.io/openshift-release-dev/ocp-release@sha256:912e4b9986f690b894fcb740881e780600e12ab22f128f6f873bc4e1fcda8d13",
"url": "https://access.redhat.com/errata/RHSA-2022:0561",
"version": "4.9.22"
},
{
"channels": [
"candidate-4.10",
"candidate-4.9",
"fast-4.10",
"fast-4.9",
"stable-4.10",
"stable-4.9"
],
"image": "quay.io/openshift-release-dev/ocp-release@sha256:1c13f0926c37c122eb5c86afd754c007f38977c8fc32d7da090490f556945afd",
"url": "https://access.redhat.com/errata/RHSA-2022:0655",
"version": "4.9.23"
}
],
"versionHistory": [
{
"image": "quay.io/openshift-release-dev/ocp-release@sha256:fd96300600f9585e5847f5855ca14e2b3cafbce12aefe3b3f52c5da10c4476eb",
"state": "Completed",
"verified": true,
"version": "4.9.21"
}
]
},
"type": "OCP"
},
"kubeVendor": "OpenShift",
"loggingEndpoint": {
"hostname": "klusterlet-addon-workmgr-open-cluster-management-agent-addon.apps.smaug.na.operate-first.cloud",
"ip": ""
},
"loggingPort": {
"name": "https",
"port": 0,
"protocol": "TCP"
},
"nodeList": [
{
"capacity": {
"cpu": "40",
"memory": "396200080Ki",
"socket": "2"
},
"conditions": [
{
"status": "True",
"type": "Ready"
}
],
"labels": {
"node-role.kubernetes.io/mcp-kvm-device-plugin": "",
"node-role.kubernetes.io/worker": ""
},
"name": "oct-03-00-compute"
},
{
"capacity": {
"cpu": "40",
"memory": "396200080Ki",
"socket": "2"
},
"conditions": [
{
"status": "True",
"type": "Ready"
}
],
"labels": {
"node-role.kubernetes.io/mcp-kvm-device-plugin": "",
"node-role.kubernetes.io/worker": ""
},
"name": "oct-03-01-compute"
}
],
"version": "v1.22.3+fdba464"
}
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Additional context
Similarly to ACM UI we should display if there's an update available for the cluster
Acceptance Criteria
Relevant links
No response
The text was updated successfully, but these errors were encountered: