# flyte-deployment

Rahul Mehta

09/18/2022, 11:05 PM
Is there any general interest in a
flytectl diff
feature (or does a version of this functionality already exist somewhere)? We'd like to implement a custom controller for Flux CD to manage Flyte project/domain/tra/cra config in a declarative manner that's consistent w/ the rest of our gitops infra. Based on this example, if
was supported this seems like it'd be fairly straightforward. Curious if anyone else has thoughts/if others are applying gitops patterns to managing Flyte resources


09/19/2022, 8:02 PM
sorry not quite following. how do you envision this being used?
can you give me an example?

Rahul Mehta

09/20/2022, 12:26 AM
Hey @Yee, happy to provide some more details: • For K8s resources, one can use
kubectl diff -f ...
to diff a set of manifests against the current cluster state • I could envision a similar feature in
where one could diff a resource (ie. a project configuration defined in yaml). For ex, if the description in a project yaml changed, running
flytectl diff project -f project.yaml
would output the delta between the state currently reflected in the cluster & the local configuration ◦ If this were possible with flytectl, I could imagine this naturally slotting into a category of gitops workflows that use the
command for reconciliation (ie. a controller that runs
<command> diff
on an interval and applies changes to the cluster if the diff is nonempty) More broadly, we're interested in managing flyte primitives like projects/domains/tras/cras in a gitops-style way
cc @Ketan (kumare3) in case you have any additional thoughts (& you also mentioned that there was a potentially undocumented way to achieve something like this when we spoke a few weeks ago)

Ketan (kumare3)

09/20/2022, 3:35 AM
Project management using gitops make sense. So you can list all project domain attributes
No real Very nice way