This commit adds support for supplying a path to an existing private
key file to both the `flux create secret git` and `flux create source
git` commands.
If a path is given, any private key generation configuration options
are ignored by the manifest generator. The SSH host will however still
be scanned for server keys.
Signed-off-by: Hidde Beydals <hello@hidde.co>
createSecretGitCmd.Flags().StringVar(&secretGitArgs.caFile,"ca-file","","path to TLS CA file used for validating self-signed certificates")
createSecretGitCmd.Flags().StringVar(&secretGitArgs.privateKeyFile,"private-key-file","","path to a passwordless private key file used for authenticating to the Git SSH server")
createSourceGitCmd.Flags().StringVar(&sourceGitArgs.caFile,"ca-file","","path to TLS CA file used for validating self-signed certificates, requires libgit2")
createSourceGitCmd.Flags().StringVar(&sourceGitArgs.privateKeyFile,"private-key-file","","path to a passwordless private key file used for authenticating to the Git SSH server")