Skip to content

Add the Version field to BuildImageOptions#961

Merged
fsouza merged 1 commit intofsouza:mainfrom
nalind:buildimageversion
Feb 7, 2023
Merged

Add the Version field to BuildImageOptions#961
fsouza merged 1 commit intofsouza:mainfrom
nalind:buildimageversion

Conversation

@nalind
Copy link
Copy Markdown
Contributor

@nalind nalind commented Feb 7, 2023

The Version field was added in API 1.39, though at the time the only known value was "1" ("classic" docker build). API 1.42 added "2" to identify the newer BuildKit-based builder.
We don't bump the requested API version to 1.42 when we're passed "2", but we could, though I suspect that it was accepted but undocumented for some versions in between.

The `Version` field was added in API 1.39, though at the time the only
known value was "1" ("classic" docker build).  API 1.42 added "2" to
identify the newer BuildKit-based builder.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
Copy link
Copy Markdown
Owner

@fsouza fsouza left a comment

Choose a reason for hiding this comment

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

Thanks for contributing!

type BuilderVersion string

const (
BuilderV1 BuilderVersion = "1"
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

should this be BuilderClassic?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The client SDK (here) calls it BuilderV1, but I've no real preference. Should I change it?

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Let's keep it V1 then. Thanks for checking!

Copy link
Copy Markdown
Owner

@fsouza fsouza left a comment

Choose a reason for hiding this comment

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

Thank you!

@fsouza fsouza merged commit c0d6a61 into fsouza:main Feb 7, 2023
@nalind nalind deleted the buildimageversion branch February 8, 2023 12:59
@nalind
Copy link
Copy Markdown
Contributor Author

nalind commented Feb 8, 2023

Thanks for the quick review!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants