mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 04:08:16 +00:00 
			
		
		
		
	mock driver: fix no-op setDefaultCreds
The function must modify the content of the "creds" pointer, not the pointer. Found via hack/verify-staticcheck.sh after importing the code into Kubernetes. It is uncertain whether this bug had any consequences.
This commit is contained in:
		@@ -174,7 +174,7 @@ func stop(lock *sync.Mutex, wg *sync.WaitGroup, server *grpc.Server, running boo
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
// setDefaultCreds sets the default credentials, given a CSICreds instance.
 | 
					// setDefaultCreds sets the default credentials, given a CSICreds instance.
 | 
				
			||||||
func setDefaultCreds(creds *CSICreds) {
 | 
					func setDefaultCreds(creds *CSICreds) {
 | 
				
			||||||
	creds = &CSICreds{
 | 
						*creds = CSICreds{
 | 
				
			||||||
		CreateVolumeSecret:                         "secretval1",
 | 
							CreateVolumeSecret:                         "secretval1",
 | 
				
			||||||
		DeleteVolumeSecret:                         "secretval2",
 | 
							DeleteVolumeSecret:                         "secretval2",
 | 
				
			||||||
		ControllerPublishVolumeSecret:              "secretval3",
 | 
							ControllerPublishVolumeSecret:              "secretval3",
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user