Skip to content

Commit 43a24c5

Browse files
committed
fix naming
1 parent 95342ac commit 43a24c5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pkg/operator/bootstrapteardown/bootstrap_teardown_controller.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,9 @@ func (c *BootstrapTeardownController) removeBootstrap(ctx context.Context, safeT
102102
if !hasBootstrap {
103103
klog.V(4).Infof("no bootstrap anymore setting removal status")
104104
// this is to ensure the status is always set correctly, even if the status update below failed
105-
updateErr := setSuccessfulBoostrapRemovalStatus(ctx, c.operatorClient)
105+
updateErr := setSuccessfulBootstrapRemovalStatus(ctx, c.operatorClient)
106106
if updateErr != nil {
107-
return fmt.Errorf("error while setSuccessfulBoostrapRemovalStatus: %w", updateErr)
107+
return fmt.Errorf("error while setSuccessfulBootstrapRemovalStatus: %w", updateErr)
108108
}
109109

110110
// if the bootstrap isn't present, then clearly we're available enough to terminate. This avoids any risk of flapping.
@@ -162,10 +162,10 @@ func (c *BootstrapTeardownController) removeBootstrap(ctx context.Context, safeT
162162
c.eventRecorder.Eventf("Bootstrap member removed", "successfully removed bootstrap member [%x]", bootstrapID)
163163
// below might fail, since the member removal can cause some downtime for raft to settle on a quorum
164164
// it's important that everything below is properly retried above during normal controller reconciliation
165-
return setSuccessfulBoostrapRemovalStatus(ctx, c.operatorClient)
165+
return setSuccessfulBootstrapRemovalStatus(ctx, c.operatorClient)
166166
}
167167

168-
func setSuccessfulBoostrapRemovalStatus(ctx context.Context, client v1helpers.StaticPodOperatorClient) error {
168+
func setSuccessfulBootstrapRemovalStatus(ctx context.Context, client v1helpers.StaticPodOperatorClient) error {
169169
_, _, updateErr := v1helpers.UpdateStatus(ctx, client, v1helpers.UpdateConditionFn(operatorv1.OperatorCondition{
170170
Type: "EtcdBootstrapMemberRemoved",
171171
Status: operatorv1.ConditionTrue,

0 commit comments

Comments
 (0)