Clean up auth for host builder#3298
Conversation
Signed-off-by: Matej Vašek <matejvasek@gmail.com>
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3298 +/- ##
=======================================
Coverage 54.92% 54.92%
=======================================
Files 170 170
Lines 19744 19736 -8
=======================================
- Hits 10844 10840 -4
+ Misses 7832 7831 -1
+ Partials 1068 1065 -3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
| uname := viper.GetString("username") | ||
| passw := viper.GetString("password") | ||
| token := viper.GetString("token") |
There was a problem hiding this comment.
I know, I know… is not neat, but still better that that context …thing…
There was a problem hiding this comment.
This way the ugly crap is isolated just in one package (cmd).
There was a problem hiding this comment.
I agree. The context thing was just a stop-gap for a better solution as we transition (hopefully) to a shared creds package that supports username/password more natively.
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: lkingland, matejvasek The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/help |
|
/cherry-pick release-1.20 |
|
@matejvasek: new pull request created: #3300 DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
Signed-off-by: Matej Vašek <matejvasek@gmail.com>
Since PR knative#3298 fixed these credentials to work with all builders (host, pack, s2i), there's no reason to keep them hidden anymore. Also added environment variable hints to flag descriptions.
Since PR knative#3298 fixed these credentials to work with all builders (host, pack, s2i), there's no reason to keep them hidden anymore. Also added environment variable hints to flag descriptions.
Changes
contextsince we already pass credentials in a different way.FUNC_[USERNAME|PASSWORD]environment variables now work also for the pushers other that thehostpusher.