Skip to content

Commit

Permalink
To ignore the creationTimestamp unknown field when performing tenant …
Browse files Browse the repository at this point in the history
…upgrade

Signed-off-by: pjuarezd <[email protected]>
  • Loading branch information
pjuarezd committed Oct 19, 2023
1 parent 371043d commit 7e544b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kubectl-minio/cmd/tenant-upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 7e544b4

Please sign in to comment.