-
Notifications
You must be signed in to change notification settings - Fork 168
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
Add support for platform API 0.6 #796
Conversation
Codecov Report
@@ Coverage Diff @@
## main #796 +/- ##
==========================================
- Coverage 71.35% 71.25% -0.11%
==========================================
Files 117 117
Lines 5412 5420 +8
==========================================
Hits 3862 3862
- Misses 1183 1189 +6
- Partials 367 369 +2
Continue to review full report at Codecov.
|
@@ -760,10 +766,10 @@ func (b *Build) setupBindings() ([]corev1.Volume, []corev1.VolumeMount) { | |||
|
|||
func (bc *BuildPodBuilderConfig) highestSupportedPlatformAPI(b *Build) (string, error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we instead have this method return a parsed platform api?
@@ -390,12 +391,17 @@ func (b *Build) BuildPod(images BuildPodImages, secrets []corev1.Secret, taints | |||
"-project-metadata=/layers/project-metadata.toml"}, | |||
cacheArgs, | |||
func() []string { | |||
if platformAPI == "0.3" { | |||
platformAPIVersion := semver.MustParse(platformAPI) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A bit concerned about the "MustParse" here a bad builder with an invalid metadata could lead to a panic.
Fixes #767