Skip to content

Commit

Permalink
Merge pull request #18 from datainfrahq/fix-buildsts
Browse files Browse the repository at this point in the history
Return result when building sts
  • Loading branch information
AdheipSingh authored Apr 25, 2023
2 parents 4fe7b9b + b492b9a commit 667c247
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions builder/builder_deployment_sts.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,12 +180,12 @@ func (s *Builder) buildStatefulset(statefulset BuilderDeploymentStatefulSet) (co
statefulset.DesiredState = sts
statefulset.CurrentState = &appsv1.StatefulSet{}

_, err = statefulset.CreateOrUpdate(s.Context.Context, s.Recorder)
result, err := statefulset.CreateOrUpdate(s.Context.Context, s.Recorder)
if err != nil {
return controllerutil.OperationResultNone, err
}

return controllerutil.OperationResultNone, nil
return result, nil
}

func (b *BuilderDeploymentStatefulSet) MakeVolumeClaimTemplates() []v1.PersistentVolumeClaim {
Expand Down

0 comments on commit 667c247

Please sign in to comment.