Skip to content

Tag template tagger #4567

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

Merged
merged 9 commits into from
Jul 29, 2020
Merged

Tag template tagger #4567

merged 9 commits into from
Jul 29, 2020

Conversation

felixtran39
Copy link
Contributor

@felixtran39 felixtran39 commented Jul 25, 2020

Related: Issue: #4371, #4550

Description
This includes the coding logic for the new tagging strategy tagTemplate. This code is only exercised in tests and will not be exposed to users until the following PR. tagTemplate allows users to create their own tags by specifying a template composed of pre-existing tagging strategies. These pre-existing tagging strategies are stored as tagger objects under the components field and evaluated when the tag is generated.

Follow-up Work
There will be a follow-up PR exposing this feature to users which includes changes to the Skaffold config as well as the necessary changes to any documentation.

@felixtran39 felixtran39 requested a review from a team as a code owner July 25, 2020 05:10
@felixtran39 felixtran39 requested a review from nkubala July 25, 2020 05:10
@codecov
Copy link

codecov bot commented Jul 25, 2020

Codecov Report

Merging #4567 into master will increase coverage by 0.21%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #4567      +/-   ##
==========================================
+ Coverage   72.61%   72.83%   +0.21%     
==========================================
  Files         335      334       -1     
  Lines       12963    13037      +74     
==========================================
+ Hits         9413     9495      +82     
+ Misses       2957     2945      -12     
- Partials      593      597       +4     
Impacted Files Coverage Δ
pkg/skaffold/build/tag/env_template.go 100.00% <ø> (ø)
pkg/skaffold/build/tag/tag_template.go 100.00% <100.00%> (ø)
pkg/skaffold/deploy/kubectl/cli.go 88.63% <0.00%> (-2.28%) ⬇️
pkg/skaffold/deploy/kustomize.go 77.71% <0.00%> (-0.91%) ⬇️
pkg/skaffold/deploy/kubectl.go 68.12% <0.00%> (-0.36%) ⬇️
pkg/skaffold/deploy/helm.go 78.64% <0.00%> (-0.18%) ⬇️
pkg/skaffold/kubectl/cli.go 100.00% <0.00%> (ø)
cmd/skaffold/app/cmd/flags.go 86.36% <0.00%> (ø)
pkg/skaffold/build/tag/tag.go 100.00% <0.00%> (ø)
pkg/skaffold/config/options.go 100.00% <0.00%> (ø)
... and 6 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 33b1d10...2dc9e8c. Read the comment docs.

@yuwenma
Copy link
Contributor

yuwenma commented Jul 27, 2020

Overall LGTM.

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.

left a few comments but in general this is looking good

@felixtran39 felixtran39 requested a review from nkubala July 28, 2020 22:07
@nkubala nkubala merged commit 42c31cc into GoogleContainerTools:master Jul 29, 2020
briandealwis added a commit to briandealwis/skaffold that referenced this pull request Jul 8, 2021
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.

4 participants