func (s *Server) lameduckStatus() (bool, error) {
	if s.ldLister == nil {
		return false, errors.New("lameduck lister not initialized")
	}

	lameducksList, err := s.ldLister.List()
	if err != nil {
		return false, fmt.Errorf("error getting list of lameducking targets: %v", err)
	}
	for _, lameduckName := range lameducksList {
		if s.instanceName == lameduckName {
			return true, nil
		}
	}
	return false, nil
}
// lameduckStatus fetches the global list of lameduck targets and returns:
// - (true, nil) if this machine is in that list
// - (false, nil) if not
// - (false, error) upon failure to fetch the list.
lameduckStatus fetches the global list of lameduck targets and returns:
- (true, nil) if this machine is in that list
- (false, nil) if not
- (false, error) upon failure to fetch the list.
// lameduckStatus fetches the global list of lameduck targets and returns : // - ( true nil ) if this machine is in that list // - ( false nil ) if not // - ( false error ) upon failure to fetch the list .
func (s *Server) lameduckStatus() (bool, error) {
	if s.ldLister == nil {
		return false, errors.New("lameduck lister not initialized")
	}
	lameducksList, err := s.ldLister.List()
	if err != nil {
		return false, fmt.Errorf("error getting list of lameducking targets: %v", err)
	}
	for _, lameduckName := range lameducksList {
		if s.instanceName == lameduckName {
			return true, nil
		}
	}
	return false, nil
}
func ( s * Server ) lameduckStatus ( ) ( bool , error ) { if s . ldLister == nil { return false , errors . New ( " " ) } lameducksList , err := s . ldLister . List ( ) if err != nil { return false , fmt . Errorf ( " " , err ) } for _ , lameduckName := range lameducksList { if s . instanceName == lameduckName { return true , nil } } return false , nil }
lameduckStatus fetches the global list of lameduck targets and returns:
 (true, nil) if this machine is in that list
 (false, nil) if not
 (false, error) upon failure to fetch the list.
lameduckStatus fetches the global list of lameduck targets and returns : ( true nil ) if this machine is in that list ( false nil ) if not ( false error ) upon failure to fetch the list .