Add Warningf to logger interface amd impl

Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
This commit is contained in:
Stefan Prodan
2021-04-08 10:48:27 +03:00
parent 8b5583930e
commit 74feda73af
3 changed files with 7 additions and 0 deletions

View File

@ -241,6 +241,7 @@ func createSourceGitCmdRun(cmd *cobra.Command, args []string) error {
secretOpts.Password = sourceGitArgs.password
secretOpts.CAFilePath = sourceGitArgs.caFile
case "http":
logger.Warningf("insecure configuration: credentials configured for an HTTP URL")
secretOpts.Username = sourceGitArgs.username
secretOpts.Password = sourceGitArgs.password
}