Skip to content
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 v1alpha3 Config #982

Merged
merged 3 commits into from
Sep 13, 2018
Merged

Conversation

priyawadhwa
Copy link
Contributor

I added a v1alpha3 version of the skaffold config, since adding
different buildcontexts to the kaniko builder requires a breaking config
change.

Now, new buildcontexts can be easily added to the KanikoBuildContext type.

I also added a transform function so that 'skaffold fix' can convert
v1alpha2 configs to v1alpha3, and fixed unit tests to pass with the new
config.

This is part 1 of 3 PRs to incorporate more kaniko buildcontexts into
the kaniko builder.

Sorry this PR is so huge (it's mostly just changing v1alpha2 to v1alpha3 across the code), so thank you in advance to whoever looks at it!!

I added a v1alpha3 version of the skaffold config, since adding
different buildcontexts to the kaniko builder requires a breaking config
change.

Now, new buildcontexts can be easily added to the KanikoBuildContext type.

I also added a transform function so that 'skaffold fix' can convert
v1alpha2 configs to v1alpha3, and fixed unit tests to pass with the new
config.

This is part 1 of 3 PRs to incorporate more kaniko buildcontexts into
the kaniko builder.
@priyawadhwa priyawadhwa force-pushed the config branch 3 times, most recently from ebdf975 to d085b6c Compare September 13, 2018 22:50
directory: "testdata/v1alpha1",
},
{
name: "test v1alpha2 to v1alpha3 kaniko fix",
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: we won't need kaniko here I think

Copy link
Contributor

@balopat balopat left a comment

Choose a reason for hiding this comment

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

one nit otherwise LGTM

@priyawadhwa priyawadhwa merged commit 3f96779 into GoogleContainerTools:master Sep 13, 2018
@priyawadhwa priyawadhwa deleted the config branch September 13, 2018 23:20
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