From b4401296ec3d7cc04e91cac6c7859deca171755d Mon Sep 17 00:00:00 2001 From: galal-hussein Date: Wed, 21 Jul 2021 22:18:56 +0200 Subject: [PATCH] replace error with warn in delete Signed-off-by: galal-hussein --- pkg/cluster/storage.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkg/cluster/storage.go b/pkg/cluster/storage.go index 087a00bc8e..0f907f0885 100644 --- a/pkg/cluster/storage.go +++ b/pkg/cluster/storage.go @@ -226,5 +226,8 @@ func doMigrateToken(ctx context.Context, storageClient client.Client, keyValue c } logrus.Infof("created bootstrap key %s", newTokenKey) // deleting the old key - return storageClient.Delete(ctx, oldTokenKey, keyValue.Modified) + if err := storageClient.Delete(ctx, oldTokenKey, keyValue.Modified); err != nil { + logrus.Warnf("failed to delete old bootstrap key %s", oldTokenKey) + } + return nil }