You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 22, 2024. It is now read-only.
Revised the Deployment.Status to accommodate the deployment state
conditions and the driver state. Currently, Deployment has 3 conditions
named CertsVerified, CertsReady, and DriverDeployed. It also records the
summary of controller and node driver state, .i.e, number of nodes the
driver is running. The state The state get refreshed on each time the
reconcile loop run.
and a `phase` field. The phase of a Deployment is a high-level summary
1220
+
of where the Deployment is in its lifecycle.
1182
1221
1183
1222
The possible `phase` values and their meaning are as below:
1184
1223
1185
1224
| Value | Meaning |
1186
1225
|---|---|
1187
1226
| empty string | A new deployment. |
1188
-
| Initializing | All the direct sub-resources of the `Deployment` are created, but some indirect ones (like pods controlled by a daemon set) may still be missing. |
1189
1227
| Running | The operator has determined that the driver is usable<sup>1</sup>. |
1190
-
| Failed | For some reason the state of the `Deployment` failed and cannot be progressed<sup>2</sup>. |
1228
+
| Failed | For some reason the state of the `Deployment` failed and cannot be progressed. The failure reason is placed in the `DeploymentStatus.Reason` field. |
1191
1229
1192
1230
<sup>1</sup> This check has not been implemented yet. Instead, the deployment goes straight to `Running` after creating sub-resources.
1193
-
<sup>2</sup> Failure reason is supposed to be carried by one of additional `DeploymentStatus` field, but not implemented yet.
1231
+
1232
+
#### Deployment Conditions
1233
+
1234
+
PMEM-CSI `DeploymentStatus` has an array of `conditions` through witch the
1235
+
PMEM-CSI Deployment has or has not passed. Below are the possible condition
1236
+
types and their meanings:
1237
+
1238
+
| Condition type | Meaning |
1239
+
|---|---|
1240
+
| CertsReady | Driver certificates/secrets are available. |
1241
+
| CertsVerified | Verified that the provided certificates are valid. |
1242
+
| DriverDeployed | All the componentes required for the PMEM-CSI deployment has been deployed. |
1243
+
1244
+
#### Driver component status
1245
+
1246
+
PMEM-CSI `DeploymentStatus` has an array of `components` of type `DriverStatus`
1247
+
in which the operator records the brief driver(Controller and Node) components
1248
+
status. This is useful to know if all the driver instances of a deployment are
1249
+
ready. Below are the fields and their meanings of `DriverStatus`:
1250
+
1251
+
| Field | Meaning |
1252
+
| --- | --- |
1253
+
| component | Represents the driver component type; one of `Controller` or `Node`. |
1254
+
| status | Represents the state of the component; one of `Ready` or `NotReady`. Component becomes `Ready` if all the instances of the driver component are running. Otherwise, `NotReady`. |
1255
+
| reason | A brief message that explains why the component is in this state. |
1256
+
| lastUpdateTime | Time at which the status updated. |
0 commit comments