Skip to content

Commit

Permalink
[v2.8] fix health message in kustomization
Browse files Browse the repository at this point in the history
Signed-off-by: Chanwit Kaewkasi <chanwit@gmail.com>
  • Loading branch information
chanwit committed Sep 4, 2023
1 parent 4b9d66e commit 7242d1b
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
22 changes: 22 additions & 0 deletions patches-argo-cd-v2.8/21-fix-health-message-in.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
fix health message in kustomization

From: Chanwit Kaewkasi <chanwit@gmail.com>

Signed-off-by: Chanwit Kaewkasi <chanwit@gmail.com>
---
.../Kustomization/health.lua | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/resource_customizations/kustomize.toolkit.fluxcd.io/Kustomization/health.lua b/resource_customizations/kustomize.toolkit.fluxcd.io/Kustomization/health.lua
index 9a9122d44..496e5c025 100644
--- a/resource_customizations/kustomize.toolkit.fluxcd.io/Kustomization/health.lua
+++ b/resource_customizations/kustomize.toolkit.fluxcd.io/Kustomization/health.lua
@@ -5,7 +5,7 @@ if obj.status ~= nil then
for _, condition in ipairs(obj.status.conditions) do
if condition.type == "Ready" then
ready_status = condition.status
- ready_message = condition.reason .. " - " .. condition.message
+ ready_message = condition.message
end
end
if ready_status == "True" then
1 change: 1 addition & 0 deletions patches-argo-cd-v2.8/series
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@
18-add-oci-repository.patch
19-fix-special-supported-schemes.patch
20-add-health-message-for-helm.patch
21-fix-health-message-in.patch

0 comments on commit 7242d1b

Please sign in to comment.