|
10 | 10 | import java.time.OffsetDateTime; |
11 | 11 | import java.time.ZoneOffset; |
12 | 12 |
|
13 | | -/** |
14 | | - * Status Object for the Custom Resources. |
15 | | - * <p> |
16 | | - * This object captures the current state of a Custom Resource as observed by the reconciler. |
17 | | - */ |
| 13 | +/// Status Object for the Custom Resources. |
| 14 | +/// |
| 15 | +/// This object captures the current state of a Custom Resource as observed by the reconciler. |
18 | 16 | @Getter |
19 | 17 | @Setter |
20 | 18 | @Accessors(chain = true) |
21 | 19 | @NullMarked |
22 | 20 | public class CRStatus { |
23 | | - /** |
24 | | - * The Custom Resource name (may differ from metadata.name). |
25 | | - */ |
| 21 | + /// The Custom Resource name (may differ from `metadata.name`). |
26 | 22 | private @Nullable String name = null; |
27 | 23 |
|
28 | | - /** |
29 | | - * Current lifecycle phase of the Bucket. |
30 | | - */ |
| 24 | + /// Current lifecycle phase of the CR. |
31 | 25 | @Setter(AccessLevel.NONE) |
32 | 26 | private CRPhase phase = CRPhase.PENDING; |
33 | 27 |
|
34 | | - /** |
35 | | - * Human-readable message providing details about the current state. |
36 | | - */ |
| 28 | + /// Human-readable message providing details about the current state. |
37 | 29 | private @Nullable String message = null; |
38 | 30 |
|
39 | | - /** |
40 | | - * Last time the condition was probed/updated. |
41 | | - */ |
| 31 | + /// Last time the condition was probed/updated. |
42 | 32 | private @Nullable OffsetDateTime lastProbeTime = null; |
43 | 33 |
|
44 | | - /** |
45 | | - * Last time the condition transitioned from one status to another. |
46 | | - */ |
| 34 | + /// Last time the condition transitioned from one status to another. |
47 | 35 | @Setter(AccessLevel.NONE) |
48 | 36 | private @Nullable OffsetDateTime lastPhaseTransitionTime = null; |
49 | 37 |
|
50 | | - /** |
51 | | - * Observed resource generation that the controller acted upon. |
52 | | - */ |
| 38 | + /// Observed resource generation that the controller acted upon. |
53 | 39 | private long observedGeneration = 0; |
54 | 40 |
|
55 | | - /** |
56 | | - * Update the current phase. When the phase changes, the {@link #lastPhaseTransitionTime} |
57 | | - * is updated to the current UTC time and the message is set to {@code null}. |
58 | | - * |
59 | | - * @param newPhase the new phase |
60 | | - * @return this status instance |
61 | | - */ |
| 41 | + /// Update the current phase. When the phase changes, the [#lastPhaseTransitionTime] |
| 42 | + /// is updated to the current UTC time and the message is set to `null`. |
| 43 | + /// |
| 44 | + /// @param newPhase the new phase |
| 45 | + /// @return this status instance |
62 | 46 | public CRStatus setPhase(CRPhase newPhase) { |
63 | 47 | if (this.phase == newPhase) { |
64 | 48 | return this; |
|
0 commit comments