Skip to content
Snippets Groups Projects
Unverified Commit de4b3ef3 authored by Stefan Prodan's avatar Stefan Prodan Committed by GitHub
Browse files

Merge pull request #1231 from fluxcd/git-custom-pk

Take private key from file into account in Git bootstrap
parents fffe40fb 7bd6aedb
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment