-
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
Skaffold remoteManifests doesn't work as documented #2160
Comments
Hi, thank you for opening this, this does look like a bug. |
We fixed this up and also updated the semantics of how the Delete function works on RemoteManifests to ensure it works correctly. Previously, after cancelling We made the initial run of KubeDeploy.Apply save the existing images with their tags, and then the Cleanup method references those images and reverts the deployments. I'll clean up the code a bit and submit a PR. |
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.
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.
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.
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.
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.
I'm going to close this since I believe it was fixed through tanner-bruce@467c496. if anyone is still seeing this issue please feel free to reopen! |
Expected behavior
Adding remoteManifests to the skaffold.yaml should allow you to replace an already deployed k8s resource with the locally built version.
Actual behavior
Skaffold doesn't use the remoteManifests section in the yaml and instead just looks for the manifests in the default k8s/*.yaml location.
Information
This feature would be critical for us to start using skaffold. We currently keep all of our kubernetes manifests in a central repo with custom code to help deploy to our different environements. As such, for development, our developers already have the resources deployed in the cluster and we just want to update that.
On slack it was pointed out that this code was removed in this PR: #1451
Steps to reproduce the behavior
The text was updated successfully, but these errors were encountered: