diff --git a/cmd/flux/create_source_git.go b/cmd/flux/create_source_git.go index c4b2fb18..8de87e92 100644 --- a/cmd/flux/create_source_git.go +++ b/cmd/flux/create_source_git.go @@ -240,6 +240,9 @@ func createSourceGitCmdRun(cmd *cobra.Command, args []string) error { secretOpts.Username = sourceGitArgs.username secretOpts.Password = sourceGitArgs.password secretOpts.CAFilePath = sourceGitArgs.caFile + case "http": + secretOpts.Username = sourceGitArgs.username + secretOpts.Password = sourceGitArgs.password } secret, err := sourcesecret.Generate(secretOpts) if err != nil {