From d1dac6dd2b5857446a32c868207f758262104939 Mon Sep 17 00:00:00 2001 From: Pedro Juarez Date: Thu, 19 Oct 2023 11:45:57 -0600 Subject: [PATCH] To ignore the creationTimestamp unknown field when performing tenant upgrade (#1825) 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 {