Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor Tag: GenerateTag method and GenerateFQIN function #4496

Merged
merged 5 commits into from
Jul 22, 2020
Merged

Refactor Tag: GenerateTag method and GenerateFQIN function #4496

merged 5 commits into from
Jul 22, 2020

Conversation

felixtran39
Copy link
Contributor

@felixtran39 felixtran39 commented Jul 18, 2020

Description
This is a non-functional change. Previously, taggers only had the option to generate the entire image name. This change provides a method for taggers to only generate the tag portion. This refactoring is in preparation for another change. This PR also addresses the comments left on #4480.

Follow-up Work (remove if N/A)
This refactoring is in preparation for the feature associated with issue #4371.
I plan to deprecate the usage of {{.IMAGE_NAME}} in the envTemplate tagger to improve its consistency with the other taggers.

@felixtran39 felixtran39 requested a review from a team as a code owner July 18, 2020 01:00
@felixtran39 felixtran39 requested a review from MarlonGamez July 18, 2020 01:00
@codecov
Copy link

codecov bot commented Jul 18, 2020

Codecov Report

Merging #4496 into master will increase coverage by 0.03%.
The diff coverage is 84.84%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #4496      +/-   ##
==========================================
+ Coverage   72.37%   72.40%   +0.03%     
==========================================
  Files         333      334       +1     
  Lines       12944    12968      +24     
==========================================
+ Hits         9368     9390      +22     
- Misses       2980     2982       +2     
  Partials      596      596              
Impacted Files Coverage Δ
pkg/skaffold/runner/build_deploy.go 71.91% <50.00%> (ø)
pkg/skaffold/build/tag/custom.go 62.50% <75.00%> (+25.00%) ⬆️
pkg/skaffold/build/tag/sha256.go 70.00% <75.00%> (ø)
pkg/skaffold/build/tag/git_commit.go 85.93% <80.00%> (ø)
pkg/skaffold/build/tag/date_time.go 57.89% <87.50%> (+10.52%) ⬆️
pkg/skaffold/build/tag/env_template.go 87.50% <100.00%> (ø)
pkg/skaffold/build/tag/tag.go 100.00% <100.00%> (ø)
...affold/kubernetes/portforward/kubectl_forwarder.go 60.97% <0.00%> (-2.44%) ⬇️
pkg/skaffold/schema/validation/validation.go 93.89% <0.00%> (-1.07%) ⬇️
cmd/skaffold/app/cmd/cmd.go 66.17% <0.00%> (-0.75%) ⬇️
... and 1 more

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 6732e44...f1359bc. Read the comment docs.

@felixtran39 felixtran39 assigned nkubala and unassigned nkubala Jul 20, 2020
pkg/skaffold/build/tag/sha256.go Outdated Show resolved Hide resolved
pkg/skaffold/build/tag/tag.go Show resolved Hide resolved
pkg/skaffold/build/tag/tag.go Outdated Show resolved Hide resolved
Copy link
Contributor

@nkubala nkubala left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a few nits but this looks good

pkg/skaffold/build/tag/custom.go Outdated Show resolved Hide resolved
pkg/skaffold/build/tag/sha256.go Outdated Show resolved Hide resolved
pkg/skaffold/build/tag/tag.go Outdated Show resolved Hide resolved
Copy link
Contributor

@MarlonGamez MarlonGamez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like you took care of the nits, and everything else looks good to me 👍🏼

@nkubala nkubala merged commit a988b46 into GoogleContainerTools:master Jul 22, 2020
gsquared94 added a commit to anshlykov/skaffold that referenced this pull request Sep 18, 2020
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.

5 participants