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

Take private key from file into account in Git bootstrap
pull/1241/head
Stefan Prodan 4 years ago committed by GitHub
commit de4b3ef3dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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

Loading…
Cancel
Save