Hi, I am trying to update a project using the "RES...
# flyte-support
s
Hi, I am trying to update a project using the "REST" API generated by grpc gateway. I am getting
200
responses with an empty body, but no changes are made to the project. Is this option supposed to be available at all? Also, I wonder why is it not possible to delete a project. Is it by design, or simply something that was never implemented? I have never worked with gRPC, but regarding updating projects, I have taken a quick look at https://github.com/flyteorg/flyte/blob/master/flyteidl/protos/flyteidl/admin/project.proto, shouldn't there be
ProjectUpdateRequest
defined? Running on version
1.11
.
a
I wonder why is it not possible to delete a project. Is it by design
I think this is by design, projects can be archived but not deleted. Some of the reasons explained here But in terms of project update, seems like not implemented. Could you share more about the use case? What project attributes you need to change?
t
update project is there
it doesn’t have it’s own separate message tho
s
@average-finland-92144, my company introduces Crossplane to manage platforms (like internal developer platforms, etc.). In short, Crossplane represents any external managed resources (in our case a Flyte instance and a Flyte project) as k8s CRDs, and allows to manage them using k8s as control plane. Naturally, it does not have an out-of-the-box provider for Flyte, but it has an
http
provider, which allows to create a k8s resource which manages any REST-like API endpoint using the controller pattern. But such an endpoint needs to provide all necessary methods (
GET
to check the state,
PUT
to reconcile,
DELETE
when the k8s resource is deleted, etc.) for this to work. So a specific use case for
PUT
was when a user decides to for example change the
description
attribute of the managed resource. Crossplane would then detect the change and update the project. But since
DELETE
is not available, I will think about a way around (maybe this is the case to write a Crossplane provider for Flyte :D). @thankful-minister-83577 thanks! Lots for me to learn. I will try to debug why my
PUT
requests are ignored then 🙂.
🙌🏽 1