Skip to content

Commit

Permalink
Merge pull request #4435 from jnummelin/fix/etcd-member-error-handling
Browse files Browse the repository at this point in the history
Fix error handling in EtcdMemberReconciler
  • Loading branch information
twz123 authored May 17, 2024
2 parents 7b274cf + d67b442 commit 326a7f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/component/controller/etcd_member_reconciler.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ func (e *EtcdMemberReconciler) waitForCRD(ctx context.Context) error {
log.Info("waiting to see EtcdMember CRD ready")
return watch.FromClient[*crdList, crd](ec.CustomResourceDefinitions()).
WithObjectName(fmt.Sprintf("%s.%s", "etcdmembers", "etcd.k0sproject.io")).
WithErrorCallback(func(cbErr error) (retryDelay time.Duration, err error) {
WithErrorCallback(func(err error) (time.Duration, error) {
if retryAfter, e := watch.IsRetryable(err); e == nil {
log.WithError(err).Infof(
"Transient error while watching etcdmember CRD"+
Expand Down

0 comments on commit 326a7f0

Please sign in to comment.