feat: Implement CustomToolsReconciler and generic BaseArtifactReconciler - #17
Conversation
Signed-off-by: Vaishnav88sk <vaishnavsk8804@gmail.com>
76f25b0 to
48bcb93
Compare
|
That's pretty fast! Have you been able to test it out from end to end? Because I haven't published any documentation yet on how to deploy it, how to configure the Reshapr control plane to allow Kubernetes service account authentication and so on ... Also, I don't see any new CRD in the PR. You must extract them from |
same comment #16 (comment) |
|
Yeah, that makes sense, and I missed! The Operator SDK automatically generated the CRD YAML into the I will manully extract the generated yml and copy it over to |
Signed-off-by: Vaishnav88sk <vaishnavsk8804@gmail.com>
…h method Signed-off-by: Vaishnav88sk <vaishnavsk8804@gmail.com>
4892745 to
31de950
Compare
|
I have successfully verified this PR locally in a Minikube cluster environment and made a few necessary fixes to align with the control plane's expectations. Fixes Applied:
Steps taken for verification:
Verification Results: Here are the operator logs showing the successful intercept and artifact upload to the control plane: Please test it on your side too and let me know your thoughts! |
lbroudoux
left a comment
There was a problem hiding this comment.
It looks great! Thanks @Vaishnav88sk for the contribution!
Fixes #14
Description
This PR introduces the GitOps reconciliation layer for seamlessly syncing
CustomTools(and eventuallyPromptsorResources) into the Reshapr control plane.Key Changes
state,serviceId,artifactId,message) toCustomToolsStatusto match existing Reshapr CRD norms.attachArtifactendpoint lacked a request body schema definition formultipart/form-data, I hand-wrote an HTTP client mapping the parameters accurately to/v1/artifacts/attachviaapplication/x-www-form-urlencoded.findRemoteServicefromServiceReconcilerintoBaseReshaprReconcilerfor broader reuse across reconciliation loops.CustomToolstracking, serializing.spec.customToolspayloads safely via Jackson into JSON before securely calling the attach artifact backend endpoint.Verification
CustomToolsinstances in the Quarkus dev environment.