source-controller/controllers
Hidde Beydals 67b10aad22 Respect configured user in SSH Git repository URL
We had a hardcoded assumption that the SSH user for a Git repository is
always "git". This is however not true in all scenarios, for example
when one is making use of Gerrit for team code collaboration, as users
there have their own username for (SSH) Git operations.

This commit changes the logic of the auth strategy helpers to:

1. Select the auth strategy based on the protocol of the parsed URL,
   instead of a simple rely on a correct prefix.
2. Use the user information from the parsed URL to configure the user
   for the public key authentication strategy, with a fallback to `git`
   if none is defined.

Signed-off-by: Hidde Beydals <hello@hidde.co>
2020-11-30 16:26:23 +01:00
..
testdata Remove use of chartutil.ProcessDependencies 2020-10-30 19:16:28 +02:00
bucket_controller.go Implement source suspension 2020-11-26 12:58:00 +02:00
gitrepository_controller.go Respect configured user in SSH Git repository URL 2020-11-30 16:26:23 +01:00
gitrepository_controller_test.go Refactor to adopt k8s standardized Condition type 2020-11-19 13:08:33 +02:00
helmchart_controller.go List HelmChart for GitRepository change 2020-11-26 18:03:04 +01:00
helmchart_controller_test.go Switch to new pkg/apis/meta SetResourceCondition 2020-11-19 13:08:33 +02:00
helmrepository_controller.go Implement source suspension 2020-11-26 12:58:00 +02:00
helmrepository_controller_test.go Reorganize helm chart testdata for controllers 2020-10-28 14:57:12 +02:00
source_predicate.go Watch chart sources for revision changes 2020-11-26 13:02:55 +01:00
storage.go Change copyright to Flux authors 2020-10-27 17:54:22 +01:00
storage_test.go Promote API to v1beta1 2020-09-30 16:11:00 +03:00
suite_test.go Change copyright to Flux authors 2020-10-27 17:54:22 +01:00