Skip to content

Commit

Permalink
WIP: Implement a TemplateStatefulSet function
Browse files Browse the repository at this point in the history
  • Loading branch information
lllamnyp committed Dec 25, 2024
1 parent 5ab79dd commit 9629e9f
Show file tree
Hide file tree
Showing 3 changed files with 155 additions and 188 deletions.
2 changes: 1 addition & 1 deletion internal/controller/etcdcluster_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ func (r *EtcdClusterReconciler) Reconcile(ctx context.Context, req ctrl.Request)

// update sts pod template (and only pod template) if it doesn't match desired state
if !state.statefulSetPodSpecCorrect() { // TODO: needs implementing
desiredSts := factory.TemplateStatefulSet() // TODO: needs implementing
desiredSts := factory.TemplateStatefulSet(state.instance) // TODO: needs implementing
state.statefulSet.Spec.Template.Spec = desiredSts.Spec.Template.Spec
return ctrl.Result{}, r.patchOrCreateObject(ctx, &state.statefulSet)
}
Expand Down
Loading

0 comments on commit 9629e9f

Please sign in to comment.