1
0
mirror of synced 2026-02-12 20:56:56 +00:00

Merge pull request #569 from fluxcd/fix-https-auth

Fix create secret for Git over HTTP/S
This commit is contained in:
Stefan Prodan
2020-12-09 18:15:49 +02:00
committed by GitHub

View File

@@ -142,7 +142,7 @@ func createSecretGitCmdRun(cmd *cobra.Command, args []string) error {
logger.Generatef("deploy key: %s", string(pair.PublicKey)) logger.Generatef("deploy key: %s", string(pair.PublicKey))
} }
case "http", "https": case "http", "https":
if sourceGitUsername == "" || sourceGitPassword == "" { if secretGitUsername == "" || secretGitPassword == "" {
return fmt.Errorf("for Git over HTTP/S the username and password are required") return fmt.Errorf("for Git over HTTP/S the username and password are required")
} }