We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 98a9110 + 602cb14 commit 5968419Copy full SHA for 5968419
mysqlcluster/syncer/statefulset.go
@@ -536,6 +536,10 @@ func (s *StatefulSetSyncer) ensurePodSpec() corev1.PodSpec {
536
537
// updatePVC used to update the pvc, check and remove the extra pvc.
538
func (s *StatefulSetSyncer) updatePVC(ctx context.Context) error {
539
+ if *s.Spec.Replicas == 0 {
540
+ log.Info("skip update pvc because replicas is 0")
541
+ return nil
542
+ }
543
pvcs := corev1.PersistentVolumeClaimList{}
544
if err := s.cli.List(ctx,
545
&pvcs,
0 commit comments