-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Accept render output in skaffold deploy
#4856
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
Comments
As a stop gap you could set up a re-deployment profile and use apiVersion: skaffold/v2beta8
kind: Config
deploy:
kustomize:
paths:
- dev/
profiles:
- name: re-deploy
deploy:
kubectl:
manifests:
- manifest.yaml |
So this essentially means: ignore the manifests listed in the This means that we assume the deployer can take and safely re-render previously-rendered input (e.g., not Helm). |
The intention of this FR is to seperate the rendering and deployment operation, so that the render from a deployer with non-trivial logic (e.g.kpt) can still be applied. I would expect some of th details from the original skaffold.yaml to be needed (i.e. which deployer to use) though perhaps this could be included in the manifest. I'm not well versed in the details of helm - could you elaborate a bit more on the issues around using a previous render? |
AFAIK [^1]: Might change with the helm deployer rework in the plans. |
@ekupershlak It would help me to understand to have a concrete example (even if just a toy). I too wondered how what you're asking for is different from Re: Helm: I only meant that Helm doesn't really have a notion of ignore-the-chart-and-use-this-yaml-instead. |
@briandealwis Let me try to provide a sample workflow:
The intetion of this FR is to enable using skaffold as part of a workflow. Otherwise I need to inspect I can definitely see |
Ah, ok. So having the manifest be processed, either by Skaffold or by kpt (for example), is not required. @yuwenma: what would we do with kpt? Would we use Maybe we should call this |
@briandealwis |
I think this only poses a problem with helm. we'd have to be careful since the output of this might not be the end of the world, but maybe we could use |
Using
skaffold render
to produce a static configuration that can later be deployed (and redeployed) is useful in delivery workflows. However, there is currently no way to provide a rendered manifest toskaffold deploy
.Expected behavior
skaffold deploy
can be run with a previously rendered manifestThe text was updated successfully, but these errors were encountered: