1 /* 2 Copyright 2024 The Flux authors 3 4 Licensed under the Apache License, Version 2.0 (the "License"); 5 you may not use this file except in compliance with the License. 6 You may obtain a copy of the License at 7 8 http://www.apache.org/licenses/LICENSE-2.0 9 10 Unless required by applicable law or agreed to in writing, software 11 distributed under the License is distributed on an "AS IS" BASIS, 12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 See the License for the specific language governing permissions and 14 limitations under the License. 15 */ 16 17 package v2 18 19 const ( 20 // ReleasedCondition represents the status of the last release attempt 21 // (install/upgrade/test) against the latest desired state. 22 ReleasedCondition string = "Released" 23 24 // TestSuccessCondition represents the status of the last test attempt against 25 // the latest desired state. 26 TestSuccessCondition string = "TestSuccess" 27 28 // RemediatedCondition represents the status of the last remediation attempt 29 // (uninstall/rollback) due to a failure of the last release attempt against the 30 // latest desired state. 31 RemediatedCondition string = "Remediated" 32 ) 33 34 const ( 35 // InstallSucceededReason represents the fact that the Helm install for the 36 // HelmRelease succeeded. 37 InstallSucceededReason string = "InstallSucceeded" 38 39 // InstallFailedReason represents the fact that the Helm install for the 40 // HelmRelease failed. 41 InstallFailedReason string = "InstallFailed" 42 43 // UpgradeSucceededReason represents the fact that the Helm upgrade for the 44 // HelmRelease succeeded. 45 UpgradeSucceededReason string = "UpgradeSucceeded" 46 47 // UpgradeFailedReason represents the fact that the Helm upgrade for the 48 // HelmRelease failed. 49 UpgradeFailedReason string = "UpgradeFailed" 50 51 // TestSucceededReason represents the fact that the Helm tests for the 52 // HelmRelease succeeded. 53 TestSucceededReason string = "TestSucceeded" 54 55 // TestFailedReason represents the fact that the Helm tests for the HelmRelease 56 // failed. 57 TestFailedReason string = "TestFailed" 58 59 // RollbackSucceededReason represents the fact that the Helm rollback for the 60 // HelmRelease succeeded. 61 RollbackSucceededReason string = "RollbackSucceeded" 62 63 // RollbackFailedReason represents the fact that the Helm test for the 64 // HelmRelease failed. 65 RollbackFailedReason string = "RollbackFailed" 66 67 // UninstallSucceededReason represents the fact that the Helm uninstall for the 68 // HelmRelease succeeded. 69 UninstallSucceededReason string = "UninstallSucceeded" 70 71 // UninstallFailedReason represents the fact that the Helm uninstall for the 72 // HelmRelease failed. 73 UninstallFailedReason string = "UninstallFailed" 74 75 // ArtifactFailedReason represents the fact that the artifact download for the 76 // HelmRelease failed. 77 ArtifactFailedReason string = "ArtifactFailed" 78 79 // DependencyNotReadyReason represents the fact that 80 // one of the dependencies is not ready. 81 DependencyNotReadyReason string = "DependencyNotReady" 82 ) 83