@@ -276,22 +276,90 @@ to true if at least one retry is configured.
276276
277277When the controller completes a reconciliation, it reports the result in the status sub-resource.
278278
279- The following `status.conditions ` types are supported :
279+ The following `status.condtions ` types are supported :
280280
281- * `Ready` - status of the last reconciliation attempt
282- * `Released` - status of the last release attempt (install/upgrade/test) against the current state
283- * `TestSuccess` - status of the last test attempt against the current state
284- * `Remediated` - status of the last remediation attempt (uninstall/rollback) due to a failure of the
285- last release attempt against the current state
281+ ` ` ` go
282+ const (
283+ // ReadyCondition represents the status of the last reconciliation attempt.
284+ ReadyCondition string = "Ready"
286285
287- You can wait for the helm-controller to complete a reconciliation with :
286+ // ReleasedCondition represents the status of the last release attempt (install/upgrade/test) against the current state.
287+ ReleasedCondition string = "Released"
288+
289+ // TestSuccessCondition represents the status of the last test attempt against the current state.
290+ TestSuccessCondition string = "TestSuccess"
291+
292+ // RemediatedCondition represents the status of the last remediation attempt (uninstall/rollback) due to a failure of the
293+ // last release attempt against the current state.
294+ RemediatedCondition string = "Remediated"
295+ )
296+ ` ` `
297+
298+ For example, you can wait for a successful helm-controller reconciliation with :
288299
289300` ` ` sh
290301kubectl wait helmrelease/podinfo --for=condition=ready
291302` ` `
292303
293- Each condition also includes descriptive `reason` / `message` fields
294- as to why the status is as such.
304+ Each of these conditions also includes a descriptive `reason` which may include :
305+
306+ ` ` ` go
307+ const (
308+ // ReconciliationSucceededReason represents the fact that the reconciliation of the HelmRelease has succeeded.
309+ ReconciliationSucceededReason string = "ReconciliationSucceeded"
310+
311+ // ReconciliationFailedReason represents the fact that the reconciliation of the HelmRelease has failed.
312+ ReconciliationFailedReason string = "ReconciliationFailed"
313+
314+ // InstallSucceededReason represents the fact that the Helm install for the HelmRelease succeeded.
315+ InstallSucceededReason string = "InstallSucceeded"
316+
317+ // InstallFailedReason represents the fact that the Helm install for the HelmRelease failed.
318+ InstallFailedReason string = "InstallFailed"
319+
320+ // UpgradeSucceededReason represents the fact that the Helm upgrade for the HelmRelease succeeded.
321+ UpgradeSucceededReason string = "UpgradeSucceeded"
322+
323+ // UpgradeFailedReason represents the fact that the Helm upgrade for the HelmRelease failed.
324+ UpgradeFailedReason string = "UpgradeFailed"
325+
326+ // TestSucceededReason represents the fact that the Helm tests for the HelmRelease succeeded.
327+ TestSucceededReason string = "TestSucceeded"
328+
329+ // TestFailedReason represents the fact that the Helm tests for the HelmRelease failed.
330+ TestFailedReason string = "TestFailed"
331+
332+ // RollbackSucceededReason represents the fact that the Helm rollback for the HelmRelease succeeded.
333+ RollbackSucceededReason string = "RollbackSucceeded"
334+
335+ // RollbackFailedReason represents the fact that the Helm test for the HelmRelease failed.
336+ RollbackFailedReason string = "RollbackFailed"
337+
338+ // UninstallSucceededReason represents the fact that the Helm uninstall for the HelmRelease succeeded.
339+ UninstallSucceededReason string = "UninstallSucceeded"
340+
341+ // UninstallFailedReason represents the fact that the Helm uninstall for the HelmRelease failed.
342+ UninstallFailedReason string = "UninstallFailed"
343+
344+ // ArtifactFailedReason represents the fact that the artifact download for the HelmRelease failed.
345+ ArtifactFailedReason string = "ArtifactFailed"
346+
347+ // InitFailedReason represents the fact that the initialization of the Helm configuration failed.
348+ InitFailedReason string = "InitFailed"
349+
350+ // GetLastReleaseFailedReason represents the fact that observing the last release failed.
351+ GetLastReleaseFailedReason string = "GetLastReleaseFailed"
352+
353+ // ProgressingReason represents the fact that the reconciliation for the resource is underway.
354+ ProgressingReason string = "Progressing"
355+
356+ // DependencyNotReadyReason represents the fact that the one of the dependencies is not ready.
357+ DependencyNotReadyReason string = "DependencyNotReady"
358+
359+ // SuspendedReason represents the fact that the reconciliation of the HelmRelease is suspended.
360+ SuspendedReason string = "Suspended"
361+ )
362+ ` ` `
295363
296364# ## Examples
297365
0 commit comments