mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-10-31 10:18:13 +00:00 
			
		
		
		
	GCP credential provider: add "type" field to fake JSON key in unit test
This commit is contained in:
		| @@ -60,7 +60,7 @@ mJAYH8WU+UAy9pecUnDZj14LAGNVmYcse8HFX71MoshnvCTFEPVo4rZxIAGwMpeJ | |||||||
| 5jgQ3slYLpqrGlcbLgUXBUgzEO684Wk/UV9DFPlHALVqCfXQ9dpJPg== | 5jgQ3slYLpqrGlcbLgUXBUgzEO684Wk/UV9DFPlHALVqCfXQ9dpJPg== | ||||||
| -----END RSA PRIVATE KEY-----` | -----END RSA PRIVATE KEY-----` | ||||||
|  |  | ||||||
| 	jsonKey = fmt.Sprintf(`{"private_key":"%[1]s", "client_email":"%[2]s"}`, | 	jsonKey = fmt.Sprintf(`{"private_key":"%[1]s", "client_email":"%[2]s", "type": "service_account"}`, | ||||||
| 		strings.Replace(dummyPrivateKey, "\n", "\\n", -1), email) | 		strings.Replace(dummyPrivateKey, "\n", "\\n", -1), email) | ||||||
| ) | ) | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Eric Chiang
					Eric Chiang