@@ -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