-
Bug
-
Resolution: Unresolved
-
Undefined
-
4.20
-
None
-
Quality / Stability / Reliability
-
False
-
-
None
-
Important
-
None
-
None
-
Rejected
-
None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
CPOv2 fails when running on a 4.17 OCP mgmt cluster
failed to update control plane: ControlPlaneComponent.hypershift.openshift.io \"featuregate-generator\" is invalid: [conditions[0].reason: Invalid value: \"\": conditions[0].reason in body should be at least 1 chars long, conditions[1].reason: Invalid value: \"\": conditions[1].reason in body should be at least 1 chars long]
The reason is that, in kube 1.30 and earlier, the job controller does not set the condition reason on the Job status.
From a 4.17 mgmt cluster
$ oc get job featuregate-generator -oyaml ... status: completionTime: "2025-05-07T19:43:56Z" conditions: - lastProbeTime: "2025-05-07T19:43:56Z" lastTransitionTime: "2025-05-07T19:43:56Z" status: "True" type: Complete
vs this is 4.18
status: completionTime: "2025-05-07T18:33:29Z" conditions: - lastProbeTime: "2025-05-07T18:33:29Z" lastTransitionTime: "2025-05-07T18:33:29Z" message: Reached expected number of succeeded pods reason: CompletionsReached status: "True" type: SuccessCriteriaMet - lastProbeTime: "2025-05-07T18:33:29Z" lastTransitionTime: "2025-05-07T18:33:29Z" message: Reached expected number of succeeded pods reason: CompletionsReached status: "True" type: Complete
Error occurs here
https://github.com/openshift/hypershift/blob/a8b1939b6947e82fa73b530824c85df77e3cc3db/support/controlplane-component/job.go#L52-L54