From 523fd8d8753f05c95b26908447dc4381e050112b Mon Sep 17 00:00:00 2001 From: zhujian Date: Sun, 4 Feb 2024 03:42:02 +0000 Subject: [PATCH] Update addon available condition message Signed-off-by: zhujian --- pkg/addonmanager/controllers/agentdeploy/healthcheck_sync.go | 2 +- .../controllers/agentdeploy/healthcheck_sync_test.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/addonmanager/controllers/agentdeploy/healthcheck_sync.go b/pkg/addonmanager/controllers/agentdeploy/healthcheck_sync.go index eadae442d..e9955d5d8 100644 --- a/pkg/addonmanager/controllers/agentdeploy/healthcheck_sync.go +++ b/pkg/addonmanager/controllers/agentdeploy/healthcheck_sync.go @@ -192,7 +192,7 @@ func (s *healthCheckSyncer) probeAddonStatusByWorks( Type: addonapiv1alpha1.ManagedClusterAddOnConditionAvailable, Status: metav1.ConditionTrue, Reason: addonapiv1alpha1.AddonAvailableReasonProbeAvailable, - Message: "Addon is available", + Message: fmt.Sprintf("%s add-on is available.", addon.Name), }) return nil } diff --git a/pkg/addonmanager/controllers/agentdeploy/healthcheck_sync_test.go b/pkg/addonmanager/controllers/agentdeploy/healthcheck_sync_test.go index 7277fda57..1d2922335 100644 --- a/pkg/addonmanager/controllers/agentdeploy/healthcheck_sync_test.go +++ b/pkg/addonmanager/controllers/agentdeploy/healthcheck_sync_test.go @@ -290,7 +290,7 @@ func TestHealthCheckReconcile(t *testing.T) { Type: addonapiv1alpha1.ManagedClusterAddOnConditionAvailable, Status: metav1.ConditionTrue, Reason: addonapiv1alpha1.AddonAvailableReasonProbeAvailable, - Message: "Addon is available", + Message: "test add-on is available.", }, }, @@ -527,7 +527,7 @@ func TestHealthCheckReconcile(t *testing.T) { Type: addonapiv1alpha1.ManagedClusterAddOnConditionAvailable, Status: metav1.ConditionTrue, Reason: addonapiv1alpha1.AddonAvailableReasonProbeAvailable, - Message: "Addon is available", + Message: "test add-on is available.", }, }, }