Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for currentLeaderRevision (0.3 sec)

  1. pilot/pkg/leaderelection/leaderelection.go

    	return k8sleaderelection.NewLeaderElector(config)
    }
    
    func LocationPrioritizedComparison(currentLeaderRevision string, l *LeaderElection) bool {
    	var currentLeaderRemote bool
    	if currentLeaderRemote = strings.HasPrefix(currentLeaderRevision, remoteIstiodPrefix); currentLeaderRemote {
    		currentLeaderRevision = strings.TrimPrefix(currentLeaderRevision, remoteIstiodPrefix)
    	}
    	defaultRevision := l.defaultWatcher.GetDefault()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Apr 12 16:44:32 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  2. pilot/pkg/leaderelection/leaderelection_test.go

    	close(stop4)
    	close(stop3)
    	close(stop2)
    	close(stop)
    }
    
    func SimpleRevisionComparison(currentLeaderRevision string, l *LeaderElection) bool {
    	// Old key comparison impl for interoperablilty testing
    	defaultRevision := l.defaultWatcher.GetDefault()
    	return l.revision != currentLeaderRevision &&
    		// empty default revision indicates that there is no default set
    		defaultRevision != "" && defaultRevision == l.revision
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Apr 28 04:22:19 UTC 2024
    - 11.4K bytes
    - Viewed (0)
Back to top