From a8fd1fe5c474ea3967a07d7c486031844fa19339 Mon Sep 17 00:00:00 2001 From: yuyi <yuyi.wsy@oceanbase.com> Date: Thu, 5 Sep 2024 11:11:00 +0800 Subject: [PATCH] fix(backup): fixed logging message for backup policy webhook --- api/v1alpha1/obtenantbackuppolicy_webhook.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/v1alpha1/obtenantbackuppolicy_webhook.go b/api/v1alpha1/obtenantbackuppolicy_webhook.go index 7a4529634..550838bc9 100644 --- a/api/v1alpha1/obtenantbackuppolicy_webhook.go +++ b/api/v1alpha1/obtenantbackuppolicy_webhook.go @@ -337,11 +337,11 @@ func (r *OBTenantBackupPolicy) validateDestination(cluster *OBCluster, dest *api switch dest.Type { case constants.BackupDestTypeCOS: if _, ok := secret.Data["appId"]; !ok { - return field.Invalid(fieldPath, dest.OSSAccessSecret, "accessId field not found in given OSSAccessSecret") + return field.Invalid(fieldPath, dest.OSSAccessSecret, "appId field not found in given OSSAccessSecret") } case constants.BackupDestTypeS3: if _, ok := secret.Data["s3Region"]; !ok { - return field.Invalid(fieldPath, dest.OSSAccessSecret, "accessId field not found in given OSSAccessSecret") + return field.Invalid(fieldPath, dest.OSSAccessSecret, "s3Region field not found in given OSSAccessSecret") } } return nil