-
Story
-
Resolution: Done
-
Major
-
None
-
None
It would be good to expose version of Service Mesh in the ServiceMeshControlPlane CR. This will come handy during rolling upgrades when we're waiting for a new version and the upgrade to be finished
Here's an example how it is exposed on Serverless' KnativeServing CR:
status: conditions: - lastTransitionTime: "2019-09-30T10:31:32Z" status: "True" type: DependenciesInstalled - lastTransitionTime: "2019-09-30T10:32:10Z" status: "True" type: DeploymentsAvailable - lastTransitionTime: "2019-09-30T10:31:55Z" status: "True" type: InstallSucceeded - lastTransitionTime: "2019-09-30T10:32:10Z" status: "True" type: Ready version: 0.7.1
When we do rolling upgrades the respective events and version together will signal the moment when the upgrade is finished. The sequence of events during rolling upgrade goes like this:
status: conditions: - lastTransitionTime: "2019-09-30T10:31:32Z" status: "True" type: DependenciesInstalled - lastTransitionTime: "2019-09-30T10:32:10Z" status: "True" type: DeploymentsAvailable - lastTransitionTime: "2019-09-30T10:31:55Z" status: "True" type: InstallSucceeded - lastTransitionTime: "2019-09-30T10:32:10Z" status: "True" type: Ready version: 0.7.1 ... ... ... status: conditions: - lastTransitionTime: "2019-09-30T10:31:32Z" status: "True" type: DependenciesInstalled - lastTransitionTime: "2019-09-30T10:33:17Z" message: Waiting on deployments reason: NotReady status: "False" type: DeploymentsAvailable - lastTransitionTime: "2019-09-30T10:31:55Z" status: "True" type: InstallSucceeded - lastTransitionTime: "2019-09-30T10:33:17Z" message: Waiting on deployments reason: NotReady status: "False" type: Ready version: 0.8.1 ... ... ... status: conditions: - lastTransitionTime: "2019-09-30T10:31:32Z" status: "True" type: DependenciesInstalled - lastTransitionTime: "2019-09-30T10:33:33Z" status: "True" type: DeploymentsAvailable - lastTransitionTime: "2019-09-30T10:31:55Z" status: "True" type: InstallSucceeded - lastTransitionTime: "2019-09-30T10:33:33Z" status: "True" type: Ready version: 0.8.1