func icon indicating copy to clipboard operation
func copied to clipboard

Support GitOps with an option to output as YAML

Open braunsonm opened this issue 1 year ago • 2 comments

Right now in order to deploy a function you need to run func deploy on a machine that is configured with access to your Kubernetes cluster.

In a GitOps approach, func deploy would have a parameter to output the generated Knative Service CR as YAML for example func deploy --build false -o yaml > knative-service.yml. This would allow GitOps tools like ArgoCD and Flux to read this committed YAML document in the source repository.

braunsonm avatar Feb 28 '24 22:02 braunsonm

Yes, exporting a .yaml is on our roadmap. If you don't want CI to have cluster access, you can use func build to update a container, and then define your service directly with service.yaml checked into source control

lkingland avatar Mar 21 '24 12:03 lkingland

This issue is stale because it has been open for 90 days with no activity. It will automatically close after 30 more days of inactivity. Reopen the issue with /reopen. Mark the issue as fresh by adding the comment /remove-lifecycle stale.

github-actions[bot] avatar Sep 04 '24 01:09 github-actions[bot]

Just wanted to do a bump on this exporting function, since we manage our cluster with ArgoCD and being able to create a yaml from CLI would help.

snavarro-factorial avatar Oct 08 '24 16:10 snavarro-factorial

@arnauvp-factorial: You can't reopen an issue/PR unless you authored it or you are a collaborator.

In response to this:

/reopen

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

knative-prow[bot] avatar Oct 09 '24 12:10 knative-prow[bot]