-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
feat: multistages now respect dependencies without building unnecessary stages #1165
feat: multistages now respect dependencies without building unnecessary stages #1165
Conversation
ee9cc87
to
39d447c
Compare
As this following dockerfile test from here pkg/executor/build_test.go can only work if it builds all the stages :
I have edited it to
because stage2 is never called on the case we are building without unnecessary stages. |
dac590e
to
4c55c2a
Compare
d96db9a
to
2b45013
Compare
@tejal29 , the PR is now working as expected |
This is a great feature! It would be great if you can use a cli flag to expose this feature and turn it off by default. In future, we can make this default behavior. |
9e1ea8a
to
c0045f2
Compare
Hi Jordan, I rebased #1190 to resolve most of the conflicts with your previous PR - can you take a quick look and rebase your PR on it? Thanks! |
c0045f2
to
561695e
Compare
561695e
to
352b10a
Compare
Done @dani29 |
09379ae
to
57aeb7a
Compare
Thanks for the rebase! Do you think it'd make more sense to call it |
You're welcome. |
5f6b8c7
to
1ee7a9e
Compare
1ee7a9e
to
8cbc7a8
Compare
I've had some concerns about the function Now I've also added some tests about the targetIndex, to compare It between the first one calculated before |
Thanks @JordanGoasdoue I will take a look and get it in today. |
Fixes #815
Description
JordanGoasdoue:can-now-resolve-args-from-stage
in this PR : #1160 to be able to have the args resolved correctly. The diff about this PR without taking into account #1160 is linked here : 2b45013Multistage by kaniko doesn't have unnecessary builded stages anymore
Submitter Checklist
These are the criteria that every PR should meet, please check them off as you
review them:
See the contribution guide for more details.
Reviewer Notes
Release Notes
Kaniko now respect multistage dependency tree without building unnecessary intermediates stages