Git tagger variants (Tags, CommitSha, AbbrevCommitSha)#1902
Git tagger variants (Tags, CommitSha, AbbrevCommitSha)#1902balopat merged 6 commits intoGoogleContainerTools:masterfrom
Conversation
11309cc to
fcc5cec
Compare
d599e4c to
6213829
Compare
|
Well, OSX seems to have serious trouble to determine the git path for the TreeSha variant. I'm going to remove TreeSha and AbbrevTreeSha for now and create a separate PR for those, because I have no way to debug this. |
6213829 to
ffaefc8
Compare
Codecov Report
@@ Coverage Diff @@
## master #1902 +/- ##
==========================================
+ Coverage 52.59% 55.92% +3.33%
==========================================
Files 182 173 -9
Lines 7893 7565 -328
==========================================
+ Hits 4151 4231 +80
+ Misses 3352 2940 -412
- Partials 390 394 +4
Continue to review full report at Codecov.
|
63aa411 to
4262cd2
Compare
4262cd2 to
8f1a18b
Compare
- Tags (default): use git tags or fall back to abbreviated commit hash - CommitSha: use the full git commit sha - AbbrevCommitSha: use the abbreviated git commit sha Signed-off-by: Cornelius Weig <22861411+corneliusweig@users.noreply.github.com>
8f1a18b to
52ec837
Compare
Variant is an enum that selects which git tagger variant to use. Signed-off-by: Cornelius Weig <22861411+corneliusweig@users.noreply.github.com>
52ec837 to
c6752d4
Compare
| // GitTagger *beta* tags images with the git tag or commit of the artifact's workspace. | ||
| type GitTagger struct{} | ||
| type GitTagger struct { | ||
| // Variant determines the behavior of the git tagger. Valid variants are |
There was a problem hiding this comment.
Will this doc string list render well in the consumers of this doc?
There was a problem hiding this comment.
it's not the best, maybe we could remove the dashes?
multiline comments get merged into a single line - you can always check with make preview-docs!
https://github.com/GoogleContainerTools/skaffold/pull/1902/files#diff-4db1e0a21e170b019f0d05230514a5ccR808
http://35.236.122.247:1313/docs/references/yaml/
There was a problem hiding this comment.
you can always check with
make preview-docs!
So true...
I agree, the dashes really don't help. But I just realized that I can wrap the enum values with backticks, which should help.
|
Please visit http://35.236.122.247:1313 to view changes to the docs. |
Signed-off-by: Cornelius Weig <22861411+corneliusweig@users.noreply.github.com>
nkubala
left a comment
There was a problem hiding this comment.
two small nits, but otherwise LGTM
Signed-off-by: Cornelius Weig <22861411+corneliusweig@users.noreply.github.com>
| // Upgrade upgrades a configuration to the next version. | ||
| // Config changes from v1beta7 to v1beta8 | ||
| // 1. Additions: | ||
| // kaniko/resource requirements |
There was a problem hiding this comment.
Of course not, so lazy of me 🤦♂️
Signed-off-by: Cornelius Weig <22861411+corneliusweig@users.noreply.github.com>
|
Please visit http://35.236.71.41:1313 to view changes to the docs. |
Synopsis
Currently, the git tagger always uses git tags or abbreviated git hashes to generate image tags. Issue #407 suggests, to extends the git tagger with a few variants:
Config change
To switch between the different variants of the git tagger, the
GitTaggerconfig was changed toSee #407