Open dennybaa opened 2 weeks ago
Have you tried the function-go-templating
? The logic of retry is not determined by KCL itself, and I seem to have not found how to set the retry time in the function.
No, I haven't tried( Let's try to ask @ytsarev . Yury would you mind please sharing your suggestion? What's the best way to handle the delay, should it be inside the KCL function implementation, or maybe the function should return 0 code? The later of course would be odd, however if functions successfully exist crossplane doesn't immediately re-evaluate them, kinda odd mitigation...
Thank you!
We end up using https://github.com/crossplane-contrib/function-sequencer together with the function-kcl for sequenced creation. Example: https://github.com/upbound/configuration-aws-eks/blob/main/apis/kcl/generate.k#L42-L72
Hello @Peefy,
I've been learning how to use KCL function. And it's great thanks a lot)! But I've bumped into not very neat behavior, if KCL exits with an error function is immediately reevaluated and this pollutes
info
logs. I wonder if this case is specific to the KCL function only or it's crossplane composite functions architecture feature. Btw I haven't noticed this type of behaviour with patch-and-transform function.Here's the example:
To suppress immediate reevaluation and logs pollution I have to manually guard resource creation. Is this expected behavior?