Skip to content
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

Is there a way to deploy to files? #2161

Closed
lucasmpr opened this issue May 21, 2019 · 9 comments
Closed

Is there a way to deploy to files? #2161

lucasmpr opened this issue May 21, 2019 · 9 comments

Comments

@lucasmpr
Copy link

I'm trying to create a CI/CD flow with kubernetes and skaffold. I still dont have a way to have the history of the deployed versions, or do a simple callback.

What I was thinking about is to export the tagged yaml generated by skaffold deploy to commit them and finally trigger the CD process.

Is there a way?

@balopat
Copy link
Contributor

balopat commented May 22, 2019

Thanks for opening this @lucasmpr - it might be interesting to explore this direction - it seems to me that it would require a skaffold render phase rather than deploy to file - as deploy is implicitly a "render" & "kubectl apply" operation. If there is a lot of interest we could expose this - for helm we could use helm template for the final deployables.

@lucasmpr
Copy link
Author

#1937 has a similar question.

I don't see another way to do GitOps inside skaffold without this step.

I can try to build something if you need me.

@reegnz
Copy link

reegnz commented May 29, 2019

I would welcome for skaffold to just dump the patched manifests without doing anything with it (no kubectl, no kustomize, no helm, just leave it to me).
I am doing GitOps with ArgoCD and I would definitely want skaffold to just dump the patched manifests somewhere predefined, so that I can commit them automatically if the version matches a given rule.

I'd like to achieve something similar to what flux does with watching docker repos, but instead of watching images and only patching images, I want updates to the manifests propagated to the deploy repo.

@cmeury
Copy link
Contributor

cmeury commented Jun 28, 2019

Just ran into the same issue, would also love to see an option to only render manifests. Or move towards Helm v3 which is tiller-less anyway?

@wstrange
Copy link
Contributor

Would also like to see a kustomize manifest output option. Could be the entire manifest, or optionally, a list of kustomize edit commands to "fix" up the images for deployment?

@alnr
Copy link

alnr commented Jul 10, 2019

See this comment which comes close to what OP wants, but does not quite work fully yet.

@strikeout
Copy link

This is super important for tight integration into existing CI/CD pipelines.
Please implement a render stage or a custom_script deployer (like the build stage already has)

@balopat
Copy link
Contributor

balopat commented Aug 2, 2019

We are looking at implementing this feature this quarter for flows where we can.

@balopat
Copy link
Contributor

balopat commented Aug 20, 2019

I realized that this was already an issue opened in #1187 - closing this - we are going to track it in #1187

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants