Replies: 1 comment
-
I forgot to ask for contributions :D It seems to me we can properly adress this by signaling to Cartographer that a resource needs to be deleted and re-created, but that leaves some open questions:
Looking forward to some feedback :D |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
TL;DR - The problem with retriggering resources boils down to there being no good, accepted mechanism to do so. I highlight two workarounds below and then ask for contributions.
stamp
Cartographer stamps resource yaml onto a cluster. It decides the shape of the resource yaml based on:
apply
Once applied (created or updated) the resource's own controller (outside of Carto) decides what to do with the information and, hopefully, reconciles with fields in its status that Carto treats as the artifact from the resource. This is it's output
sources of failure that do not require edits
Several failures can occur when a resource is processing its
spec
that are not related to the quality of the inputs.Eg. A network, disk or machine failure, out of memory errors and mid-operation interupts (scale/failover).
These kinds of issues should not require a user to intervene by changing an input (compared to, eg: when the code cannot compile)
A user simply want's the resource to recover.
Repair scenarios for failed resources
Workaround for scenario 2
If all we need is to change the resource's spec, we can use a parameter. Individual control could be provided with individualized params:
In the workload:
in the template:
Cons with this approach
Workaround for scenario 3
If the only way a resource will try again (this I believe is true for any runnable) is to delete it, then that's the workaround.
Simply delete the stamped resource and Cartographer will re-create it, hopefully causing the correct output to be created and triggering subsequent resources.
Cons with this approach
Beta Was this translation helpful? Give feedback.
All reactions