Skip to content

Commit

Permalink
Update statefulset.go
Browse files Browse the repository at this point in the history
  • Loading branch information
jiuker authored Dec 12, 2022
1 parent b3d4bcd commit e11885e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions service/k8s/statefulset.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,7 @@ func (s *StatefulSetService) CreateOrUpdateStatefulSet(namespace string, statefu
pvc.Spec.Resources.Requests = statefulSet.Spec.VolumeClaimTemplates[0].Spec.Resources.Requests
_, err = s.kubeClient.CoreV1().PersistentVolumeClaims(storedStatefulSet.Namespace).Update(context.Background(), &pvc, metav1.UpdateOptions{})
if err != nil {
if !updateFailed {
updateFailed = true
}
updateFailed = true
s.logger.WithField("namespace", namespace).WithField("pvc", pvc.Name).Warningf("resize pvc failed:%s", err.Error())
}
}
Expand Down

0 comments on commit e11885e

Please sign in to comment.