From 7e544b45b55da4ed53444279cb48b1d49b26e896 Mon Sep 17 00:00:00 2001 From: pjuarezd Date: Wed, 18 Oct 2023 22:03:17 -0600 Subject: [PATCH] To ignore the creationTimestamp unknown field when performing tenant upgrade Signed-off-by: pjuarezd --- kubectl-minio/cmd/tenant-upgrade.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kubectl-minio/cmd/tenant-upgrade.go b/kubectl-minio/cmd/tenant-upgrade.go index daf29b47b4b..603c57a6112 100644 --- a/kubectl-minio/cmd/tenant-upgrade.go +++ b/kubectl-minio/cmd/tenant-upgrade.go @@ -146,7 +146,7 @@ func (u *upgradeCmd) upgradeTenant(client *operatorv1.Clientset, t *miniov2.Tena fmt.Printf(Bold(fmt.Sprintf("\nUpgrading Tenant '%s/%s'\n\n", t.ObjectMeta.Name, t.ObjectMeta.Namespace))) // update the image t.Spec.Image = u.tenantOpts.Image - if _, err := client.MinioV2().Tenants(t.Namespace).Update(context.Background(), t, v1.UpdateOptions{}); err != nil { + if _, err := client.MinioV2().Tenants(t.Namespace).Update(context.Background(), t, v1.UpdateOptions{FieldValidation: "Ignore"}); err != nil { return err } } else {