mirror of
				https://github.com/fluxcd/flux2.git
				synced 2025-10-31 16:26:36 +08:00 
			
		
		
		
	Add GPG signing to Github bootstrap
Signed-off-by: Robert Wittman <robkwittman@gmail.com>
This commit is contained in:
		| @ -243,6 +243,7 @@ func bootstrapGitHubCmdRun(cmd *cobra.Command, args []string) error { | |||||||
| 		bootstrap.WithKubeconfig(kubeconfigArgs), | 		bootstrap.WithKubeconfig(kubeconfigArgs), | ||||||
| 		bootstrap.WithLogger(logger), | 		bootstrap.WithLogger(logger), | ||||||
| 		bootstrap.WithCABundle(caBundle), | 		bootstrap.WithCABundle(caBundle), | ||||||
|  | 		bootstrap.WithGitCommitSigning(bootstrapArgs.gpgKeyRingPath, bootstrapArgs.gpgPassphrase, bootstrapArgs.gpgKeyID), | ||||||
| 	} | 	} | ||||||
| 	if bootstrapArgs.sshHostname != "" { | 	if bootstrapArgs.sshHostname != "" { | ||||||
| 		bootstrapOpts = append(bootstrapOpts, bootstrap.WithSSHHostname(bootstrapArgs.sshHostname)) | 		bootstrapOpts = append(bootstrapOpts, bootstrap.WithSSHHostname(bootstrapArgs.sshHostname)) | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user
	 Robert Wittman
					Robert Wittman