From 10cea19e1f14bc509fcba02001b298bfff02b61b Mon Sep 17 00:00:00 2001 From: Salah Aldeen Al Saleh Date: Fri, 1 Dec 2023 16:13:46 +0000 Subject: [PATCH] update sts command on upgrade --- pkg/kotsadm/minio.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/kotsadm/minio.go b/pkg/kotsadm/minio.go index 86f21f957e..6c440b701e 100644 --- a/pkg/kotsadm/minio.go +++ b/pkg/kotsadm/minio.go @@ -128,6 +128,7 @@ func ensureMinioStatefulset(deployOptions types.DeployOptions, clientset kuberne existingMinio.Spec.Template.Spec.Volumes = desiredMinio.Spec.Template.Spec.DeepCopy().Volumes existingMinio.Spec.Template.Spec.Containers[0].Image = desiredMinio.Spec.Template.Spec.Containers[0].Image existingMinio.Spec.Template.Spec.Containers[0].VolumeMounts = desiredMinio.Spec.Template.Spec.Containers[0].DeepCopy().VolumeMounts + existingMinio.Spec.Template.Spec.Containers[0].Command = desiredMinio.Spec.Template.Spec.Containers[0].Command existingMinio.Spec.Template.Spec.InitContainers = desiredMinio.Spec.Template.Spec.DeepCopy().InitContainers _, err = clientset.AppsV1().StatefulSets(deployOptions.Namespace).Update(ctx, existingMinio, metav1.UpdateOptions{})