Skip to content

Provide Skaffold user-agent on update-checks and downloads#4964

Merged
briandealwis merged 1 commit intoGoogleContainerTools:masterfrom
briandealwis:useragent
Oct 28, 2020
Merged

Provide Skaffold user-agent on update-checks and downloads#4964
briandealwis merged 1 commit intoGoogleContainerTools:masterfrom
briandealwis:useragent

Conversation

@briandealwis
Copy link
Copy Markdown
Member

Fixes: #4963
Related: #582, #1260, #2723

Description

  • Cause update check to use util.Download(), and cause util.Download() to use Skaffold user-agent.
  • Move HTTP related functions from util.go to new http.go
  • Add simple tests

User facing changes

  • Skaffold's update checks now use the Skaffold user-agent

- cause update check to use util.Download()
- cause util.Download() to use Skaffold user-agent
- move HTTP related functions from util.go to new http.go
- add simple tests
@briandealwis briandealwis requested a review from tejal29 October 28, 2020 20:10
@briandealwis briandealwis requested a review from a team as a code owner October 28, 2020 20:10
@google-cla google-cla bot added the cla: yes label Oct 28, 2020
@codecov
Copy link
Copy Markdown

codecov bot commented Oct 28, 2020

Codecov Report

Merging #4964 into master will increase coverage by 0.01%.
The diff coverage is 46.15%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #4964      +/-   ##
==========================================
+ Coverage   72.28%   72.30%   +0.01%     
==========================================
  Files         360      361       +1     
  Lines       12595    12596       +1     
==========================================
+ Hits         9104     9107       +3     
+ Misses       2822     2818       -4     
- Partials      669      671       +2     
Impacted Files Coverage Δ
pkg/skaffold/update/update.go 45.45% <0.00%> (+6.99%) ⬆️
pkg/skaffold/util/util.go 83.33% <ø> (+0.93%) ⬆️
pkg/skaffold/util/http.go 50.00% <50.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 96426d2...7ac13cf. Read the comment docs.

@briandealwis briandealwis merged commit 31b6212 into GoogleContainerTools:master Oct 28, 2020
@briandealwis briandealwis deleted the useragent branch October 28, 2020 20:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use Skaffold version as user-agent

2 participants