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

Provide a Channel of Communication to the Claim #5402

Open
Tracked by #3957
dalton-hill-0 opened this issue Feb 16, 2024 · 1 comment · May be fixed by #5450 or #5523
Open
Tracked by #3957

Provide a Channel of Communication to the Claim #5402

dalton-hill-0 opened this issue Feb 16, 2024 · 1 comment · May be fixed by #5450 or #5523
Assignees
Labels
composition enhancement New feature or request functions roadmap Issues that have priority and are included in the roadmap, or are candidates to add to the roadmap user experience
Milestone

Comments

@dalton-hill-0
Copy link
Contributor

What problem are you facing?

We want to communicate error-type messages to our users. We can communicate by setting fields in the Claim’s status, however, if the error is so bad that we wish to stop reconciliation to prevent a bad state, we cannot both update the Claim’s status and return a response.Fatal to stop the function from updating MRs, etc.

How could Crossplane help solve your problem?

Provide a mechanism within the SDK to allow us to create events on the Claim, similar to how we can create events on the Composite with response.[Fatal|Warning|Normal].

@negz
Copy link
Member

negz commented Feb 21, 2024

Lifting most recent status out of Slack:

What I think we should do is enable Composition authors to:

  1. Input: Load detailed state about composed resources (e.g. errors from the external APIs etc).
  2. Filter and present that state to frame it more appropriately for claim consumers.
  3. Add any extra state that is interesting and relevant to claim authors (e.g. some function pipeline results).
  4. Output: Show the resulting state on the claim.

I would have thought the input would be status conditions and recent events, with output also being status conditions and events.

This is pretty similar to what https://www.youtube.com/watch?v=xAl3TAfFE_M proposes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
composition enhancement New feature or request functions roadmap Issues that have priority and are included in the roadmap, or are candidates to add to the roadmap user experience
Projects
Status: In Progress
3 participants