mirror of
				https://github.com/k3s-io/kubernetes.git
				synced 2025-11-03 23:40:03 +00:00 
			
		
		
		
	Merge pull request #50489 from yujunzhang/Fix-the-typo-of-WithAnonymous
Automatic merge from submit-queue (batch tested with PRs 50489, 51070, 51011, 51022, 51141) Fix the method name of BuiltInAuthenticationOptions.WithAnyonymous change the BuiltInAuthenticationOptions.WithAnyonymous to WithAnonymous would be better. **What this PR does / why we need it**: The BuiltInAuthenticationOptions.WithAnyonymous method name should be a meaningful name of WithAnonymous **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes # **Special notes for your reviewer**: **Release note**: ```release-note None ```
This commit is contained in:
		@@ -94,7 +94,7 @@ func NewBuiltInAuthenticationOptions() *BuiltInAuthenticationOptions {
 | 
			
		||||
 | 
			
		||||
func (s *BuiltInAuthenticationOptions) WithAll() *BuiltInAuthenticationOptions {
 | 
			
		||||
	return s.
 | 
			
		||||
		WithAnyonymous().
 | 
			
		||||
		WithAnonymous().
 | 
			
		||||
		WithBootstrapToken().
 | 
			
		||||
		WithClientCert().
 | 
			
		||||
		WithKeystone().
 | 
			
		||||
@@ -106,7 +106,7 @@ func (s *BuiltInAuthenticationOptions) WithAll() *BuiltInAuthenticationOptions {
 | 
			
		||||
		WithWebHook()
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (s *BuiltInAuthenticationOptions) WithAnyonymous() *BuiltInAuthenticationOptions {
 | 
			
		||||
func (s *BuiltInAuthenticationOptions) WithAnonymous() *BuiltInAuthenticationOptions {
 | 
			
		||||
	s.Anonymous = &AnonymousAuthenticationOptions{Allow: true}
 | 
			
		||||
	return s
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user