mirror of
				https://github.com/fluxcd/flux2.git
				synced 2025-10-31 16:26:36 +08:00 
			
		
		
		
	Take PK from file into account in Git bootstrap
Signed-off-by: Hidde Beydals <hello@hidde.co>
This commit is contained in:
		| @ -173,6 +173,9 @@ func bootstrapGitCmdRun(cmd *cobra.Command, args []string) error { | ||||
| 		if bootstrapArgs.sshHostname != "" { | ||||
| 			repositoryURL.Host = bootstrapArgs.sshHostname | ||||
| 		} | ||||
| 		if bootstrapArgs.privateKeyFile != "" { | ||||
| 			secretOpts.PrivateKeyPath = bootstrapArgs.privateKeyFile | ||||
| 		} | ||||
|  | ||||
| 		// Configure last as it depends on the config above. | ||||
| 		secretOpts.SSHHostname = repositoryURL.Host | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Hidde Beydals
					Hidde Beydals