-
Notifications
You must be signed in to change notification settings - Fork 480
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
fix (jkube-kit/build) : ImageNameFormatter should respect +
in image tag as per Semver specifications
#1859
Conversation
Eclipse JKube CI ReportStarted new GH workflow run for #1859 (2022-10-19T06:19:20Z) ⚙️ JKube E2E Tests (3279125462)
|
Signed-off-by: Christian Mäder <christian.maeder@nxt.engineering>
Codecov Report
@@ Coverage Diff @@
## master #1859 +/- ##
============================================
+ Coverage 53.00% 53.04% +0.04%
Complexity 3938 3938
============================================
Files 464 464
Lines 20744 20771 +27
Branches 2809 2816 +7
============================================
+ Hits 10996 11019 +23
- Misses 8622 8624 +2
- Partials 1126 1128 +2
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Kudos, SonarCloud Quality Gate passed! |
The license check had a technical error while executing (Connection Timeout). And I can't re-start it, unfortunately. |
@cimnine : On a quick look this looks like a valid fix to me. Not sure how we missed it. |
+
in image tag as per Semver specifications
@cimnine : I'm sorry for the super delayed response. Do you still need this fix? |
I no longer work on a project where it's relevant to me, but I believe it's still relevant overall. |
Description
Fixes
n/a
This pull request deals with the fact that a Docker image tag is not allowed to contain a
+
. When working with SemVer, a+
is used to indicate the beginning of the build metadata section.When
project.version
contains such build metadata, then currently the build fails:In this PR, I made two changes:
-SNAPSHOT
is correctly detected as pre-release section, even if there is build metadata following it.+
sign is replaced by-
to bring the whole tag in line with Docker's naming conventions. This is configurable using the new propertyjkube.image.tag.semver_plus_substitution
.Type of change
test, version modification, documentation, etc.)
Checklist