-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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 option to render manifest from previous build result #3567
Add option to render manifest from previous build result #3567
Conversation
f97c675
to
3f80b02
Compare
Changed parameter name to |
Thanks @AndiDog, can you please run |
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.
Added a nit. I think this looks good but can you think about adding a test somehow to this? If you're stuck with it, I'm happy to help out there.
@balopat do you have a hint where a test could be placed? My implementation is at |
I think adding an integration test is a good incremental step. You can create a new function |
I modified the command code to make it testable – please have a look. This also makes testing other deployers much easier because the test works almost exactly like running Plus new commit "Ignore local executables for integration test (architecture/OS might mismatch)". Makes the kind-based integration test work on macOS for me. Please have a look if this way of testing looks good. |
3f80b02
to
1ca6e4c
Compare
Thanks for doing this work! The test logic itself looks good. |
Thanks - this is cool. I don't know when I ran kind integration tests on my mac the last time :) probably that's why you ran into this! |
We have another motivation to remove the BUILDKIT env var, our kokoro test is failing due to this here:
|
Working on the changes. I noted that |
233d370
to
fec732b
Compare
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.
@AndiDog a few small nits but this is basically ready in my eyes. there are definitely a few more things to review than we'd like in this PR but in interest of not blocking you I think it's ok to let them in together.
fec732b
to
4d10f24
Compare
@AndiDog rename those two vars and rebase to get CI green and I'll merge this! |
…editors will chomp it
4d10f24
to
9820c33
Compare
9820c33
to
0ff0401
Compare
@nkubala ready! |
addressed comments.
Relates to #1187, #922, #1937
Should merge before : n/a
Should merge after : n/a
Description
Add option to render manifest from previous build result.
This is helpful e.g. in scenarios where build should be run just once, but manifest generation multiple times (for instance, once for dev/staging/prod).
User facing changes
Backwards-compatible:
skaffold render
first builds, unless the new parameter--build-artifacts
is given – then it reads the images from the existing build output file.Next PRs
Only slightly related: potentially, an option
--no-build
would make sense to render the manifest as specified indeploy:
section, but without building and replacing image tags. That could be used in CI to fail early if the manifest / Helm chart isn't valid – before running the build which could take several minutes and incur network/compute resources.Hints for reviewer
Didn't see a good place to add tests, since my implementation is at
cmd
level. Please advise and I'll happily add a test.Submitter Checklist
These are the criteria that every PR should meet, please check them off as you
review them:
Reviewer Notes
Release Notes