From b4ee95f2c60e711b59cfaee3c9f9a6b1635f6d4e Mon Sep 17 00:00:00 2001 From: liuwei Date: Thu, 27 May 2021 02:29:47 +0000 Subject: [PATCH] update addon lease msg Signed-off-by: liuwei --- pkg/spoke/addon/lease_controller.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkg/spoke/addon/lease_controller.go b/pkg/spoke/addon/lease_controller.go index 77012be71..94af550d0 100644 --- a/pkg/spoke/addon/lease_controller.go +++ b/pkg/spoke/addon/lease_controller.go @@ -121,7 +121,7 @@ func (c *managedClusterAddOnLeaseController) syncSingle(ctx context.Context, Type: addonv1alpha1.ManagedClusterAddOnConditionAvailable, Status: metav1.ConditionTrue, Reason: "ManagedClusterAddOnLeaseUpdated", - Message: "Managed cluster addon agent updates its lease constantly.", + Message: fmt.Sprintf("%s add-on is available.", addOn.Name), } break } @@ -131,7 +131,7 @@ func (c *managedClusterAddOnLeaseController) syncSingle(ctx context.Context, Type: addonv1alpha1.ManagedClusterAddOnConditionAvailable, Status: metav1.ConditionFalse, Reason: "ManagedClusterAddOnLeaseUpdateStopped", - Message: "Managed cluster addon agent stopped updating its lease.", + Message: fmt.Sprintf("%s add-on is not available.", addOn.Name), } break } @@ -139,7 +139,7 @@ func (c *managedClusterAddOnLeaseController) syncSingle(ctx context.Context, Type: addonv1alpha1.ManagedClusterAddOnConditionAvailable, Status: metav1.ConditionUnknown, Reason: "ManagedClusterAddOnLeaseNotFound", - Message: "Managed cluster addon agent lease is not found.", + Message: fmt.Sprintf("The status of %s add-on is unknown.", addOn.Name), } case err != nil: return err @@ -150,7 +150,7 @@ func (c *managedClusterAddOnLeaseController) syncSingle(ctx context.Context, Type: addonv1alpha1.ManagedClusterAddOnConditionAvailable, Status: metav1.ConditionTrue, Reason: "ManagedClusterAddOnLeaseUpdated", - Message: "Managed cluster addon agent updates its lease constantly.", + Message: fmt.Sprintf("%s add-on is available.", addOn.Name), } break } @@ -160,7 +160,7 @@ func (c *managedClusterAddOnLeaseController) syncSingle(ctx context.Context, Type: addonv1alpha1.ManagedClusterAddOnConditionAvailable, Status: metav1.ConditionFalse, Reason: "ManagedClusterAddOnLeaseUpdateStopped", - Message: "Managed cluster addon agent stopped updating its lease.", + Message: fmt.Sprintf("%s add-on is not available.", addOn.Name), } }