-
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
Fix remoteManifests #2258
Fix remoteManifests #2258
Conversation
cdfd10a
to
6f3d880
Compare
Would love to get this merged in as soon as possible. We want to add skaffold to our development workflow, but due to our current setup this is a requirement before it would make sense to move over. |
Codecov Report
|
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.
@tanner-bruce thanks for the PR! can you add some tests for this? ideally for both the deployer change and the image replacer change.
@tanner-bruce any chance you could update this PR? |
9e6593d
to
4b533b4
Compare
This commit address issue GoogleContainerTools#2160. Remote manifests in the config are properly pulled again. This also addresses another unmentioned issue: when using a remote manifest with `skaffold dev`, the remote manifest will have its image updated to include the new tag. When shutting down, the remote manifest will be left the same, including the updated tag. This causes further runs of `skaffold dev` to no longer match the image, and not update it properly. This is addressed by saving all of the images in the manifests found the first time apply is ran, and then on cleanup replacing the images with those initially found.
Adds a test ensuring the proper sequence of commands for reading and cleaning up remote manifests is executed
4b533b4
to
983a7db
Compare
@tanner-bruce i added another test case which you missed. |
This commit address issue #2160. Remote manifests in the config are
properly pulled again.
This also addresses another unmentioned issue: when using a remote
manifest with
skaffold dev
, the remote manifest will have its imageupdated to include the new tag. When shutting down, the remote manifest
will be left the same, including the updated tag. This causes further
runs of
skaffold dev
to no longer match the image, and not update itproperly.
This is addressed by saving all of the images in the manifests found the
first time apply is ran, and then on cleanup replacing the images with
those initially found.