@@ -89,27 +89,29 @@ const (
89
89
// Machine's Available condition and corresponding reasons that will be used in v1Beta2 API version.
90
90
const (
91
91
// MachineAvailableV1Beta2Condition is true if the machine is Ready for at least MinReadySeconds, as defined by the Machine's MinReadySeconds field.
92
+ // Note: MinReadySeconds is assumed 0 until it will be implemented in v1beta2 API.
92
93
MachineAvailableV1Beta2Condition = AvailableV1Beta2Condition
93
94
94
- // MachineNotReadyV1Beta2Reason surfaces when a machine is not yet ready (and thus not yet available).
95
+ // MachineNotReadyV1Beta2Reason surfaces when a machine is not ready (and thus not available).
95
96
MachineNotReadyV1Beta2Reason = "NotReady"
96
97
97
- // MachineWaitingForMinReadySecondsV1Beta2Reason surfaces when a machine is ready for less then MinReadySeconds (and thus not yet available).
98
+ // MachineWaitingForMinReadySecondsV1Beta2Reason surfaces when a machine is ready for less than MinReadySeconds (and thus not yet available).
98
99
MachineWaitingForMinReadySecondsV1Beta2Reason = "WaitingForMinReadySeconds"
99
100
100
101
// MachineReadyNotYetReportedV1Beta2Reason surfaces when a machine ready is not reported yet.
101
102
// Note: this should never happen and it is a signal of some internal error.
102
103
MachineReadyNotYetReportedV1Beta2Reason = "ReadyNotYetReported"
103
104
104
- // MachineAvailableV1Beta2Reason surfaces when a machine ready for at least MinReadySeconds.
105
+ // MachineAvailableV1Beta2Reason surfaces when a machine is ready for at least MinReadySeconds.
106
+ // Note: MinReadySeconds is assumed 0 until it will be implemented in v1beta2 API.
105
107
MachineAvailableV1Beta2Reason = "MachineAvailable"
106
108
)
107
109
108
110
// Machine's Ready condition and corresponding reasons that will be used in v1Beta2 API version.
109
111
// Note: when possible, Ready condition will use reasons from the conditions it summarizes.
110
112
const (
111
- // MachineReadyV1Beta2Condition is true if the Machine is not deleted , Machine's BootstrapConfigReady, InfrastructureReady,
112
- // NodeHealthy and HealthCheckSucceeded (if present) are true; if other conditions are defined in spec.readinessGates,
113
+ // MachineReadyV1Beta2Condition is true if the Machine's deletionTimestamp is not set , Machine's BootstrapConfigReady, InfrastructureReady,
114
+ // NodeHealthy and HealthCheckSucceeded (if present) conditions are true; if other conditions are defined in spec.readinessGates,
113
115
// these conditions must be true as well.
114
116
MachineReadyV1Beta2Condition = ReadyV1Beta2Condition
115
117
@@ -132,12 +134,9 @@ const (
132
134
// MachineBootstrapConfigReadyV1Beta2Condition condition mirrors the corresponding Ready condition from the Machine's BootstrapConfig resource.
133
135
MachineBootstrapConfigReadyV1Beta2Condition = BootstrapConfigReadyV1Beta2Condition
134
136
135
- // MachineBootstrapDataSecretDataSecretUserProvidedV1Beta2Reason surfaces when a bootstrap data secret is provided by the user (without a ConfigRef).
136
- MachineBootstrapDataSecretDataSecretUserProvidedV1Beta2Reason = "DataSecretUserProvided"
137
-
138
- // MachineBootstrapInvalidConfigV1Beta2Reason surfaces when Machine's spec.bootstrap doesn't have configRef nor a
139
- // dataSecretName set.
140
- MachineBootstrapInvalidConfigV1Beta2Reason = "InvalidConfig"
137
+ // MachineBootstrapDataSecretProvidedV1Beta2Reason surfaces when a bootstrap data secret is provided (not originated
138
+ // from a BoostrapConfig object referenced from the machine).
139
+ MachineBootstrapDataSecretProvidedV1Beta2Reason = "DataSecretProvided"
141
140
142
141
// MachineBootstrapConfigInvalidConditionReportedV1Beta2Reason surfaces a BootstrapConfig Ready condition (read from a bootstrap config object) which is invalid.
143
142
// (e.g. it is status is missing).
@@ -150,13 +149,13 @@ const (
150
149
MachineBootstrapConfigInternalErrorV1Beta2Reason = InternalErrorV1Beta2Reason
151
150
152
151
// MachineBootstrapConfigDoesNotExistV1Beta2Reason surfaces when a referenced bootstrap config object does not exist.
153
- // Note: this could happen when creating the machine. However, this state should be treated as an error if it last indefinitely.
154
- MachineBootstrapConfigDoesNotExistV1Beta2Reason = RefObjectDoesNotExistV1Beta2Reason
152
+ // Note: this could happen when creating the machine. However, this state should be treated as an error if it lasts indefinitely.
153
+ MachineBootstrapConfigDoesNotExistV1Beta2Reason = ObjectDoesNotExistV1Beta2Reason
155
154
156
155
// MachineBootstrapConfigDeletedV1Beta2Reason surfaces when a referenced bootstrap config object has been deleted.
157
- // Note: controllers can't identify if the deletion process has been initiated by the controller itself, e.g.
156
+ // Note: controllers can't identify if the bootstrap config object was deleted the controller itself, e.g.
158
157
// during the deletion workflow, or by a users.
159
- MachineBootstrapConfigDeletedV1Beta2Reason = RefObjectDeletedV1Beta2Reason
158
+ MachineBootstrapConfigDeletedV1Beta2Reason = ObjectDeletedV1Beta2Reason
160
159
)
161
160
162
161
// Machine's InfrastructureReady condition and corresponding reasons that will be used in v1Beta2 API version.
@@ -172,17 +171,17 @@ const (
172
171
// MachineInfrastructureReadyNoV1Beta2ReasonReported applies to a infrastructure Ready condition (read from an infra machine object) that reports no reason.
173
172
MachineInfrastructureReadyNoV1Beta2ReasonReported = NoV1Beta2ReasonReported
174
173
175
- // MachineInfrastructureInternalErrorV1Beta2Reason surfaces unexpected failures when reading a BootstrapConfig object.
174
+ // MachineInfrastructureInternalErrorV1Beta2Reason surfaces unexpected failures when reading a infra machine object.
176
175
MachineInfrastructureInternalErrorV1Beta2Reason = InternalErrorV1Beta2Reason
177
176
178
177
// MachineInfrastructureDoesNotExistV1Beta2Reason surfaces when a referenced infrastructure object does not exist.
179
- // Note: this could happen when creating the machine. However, this state should be treated as an error if it last indefinitely.
180
- MachineInfrastructureDoesNotExistV1Beta2Reason = RefObjectDoesNotExistV1Beta2Reason
178
+ // Note: this could happen when creating the machine. However, this state should be treated as an error if it lasts indefinitely.
179
+ MachineInfrastructureDoesNotExistV1Beta2Reason = ObjectDoesNotExistV1Beta2Reason
181
180
182
181
// MachineInfrastructureDeletedV1Beta2Reason surfaces when a referenced infrastructure object has been deleted.
183
- // Note: controllers can't identify if the deletion process has been initiated by the controller itself, e.g.
182
+ // Note: controllers can't identify if the infrastructure object was deleted by the controller itself, e.g.
184
183
// during the deletion workflow, or by a users.
185
- MachineInfrastructureDeletedV1Beta2Reason = RefObjectDeletedV1Beta2Reason
184
+ MachineInfrastructureDeletedV1Beta2Reason = ObjectDeletedV1Beta2Reason
186
185
)
187
186
188
187
// Machine's NodeHealthy and NodeReady conditions and corresponding reasons that will be used in v1Beta2 API version.
@@ -198,11 +197,11 @@ const (
198
197
MachineNodeConditionNotYetReportedV1Beta2Reason = "NodeConditionNotYetReported"
199
198
200
199
// MachineNodeNotFoundV1Beta2Reason surfaces when the node hosted on the machine cannot be found.
201
- // Note: this could happen when creating the machine. However, this state should be treated as an error if it last indefinitely.
200
+ // Note: this could happen when creating the machine. However, this state should be treated as an error if it lasts indefinitely.
202
201
MachineNodeNotFoundV1Beta2Reason = "NodeNotFound"
203
202
204
203
// MachineNodeDeletedV1Beta2Reason surfaces when the node hosted on the machine has been deleted.
205
- // Note: controllers can't identify if the deletion process has been initiated by the controller itself, e.g.
204
+ // Note: controllers can't identify if the Node was deleted by the controller itself, e.g.
206
205
// during the deletion workflow, or by a users.
207
206
MachineNodeDeletedV1Beta2Reason = "NodeDeleted"
208
207
)
0 commit comments