feat: add TTL configuration for function response#171
feat: add TTL configuration for function response#171alperencelik wants to merge 2 commits intocrossplane-contrib:mainfrom
Conversation
|
Also if you guys agree, once this merged I think we can backport it to the function-template-go |
|
Hi @alperencelik , may I ask what drove this change on your side? |
Hi @Ata-NovacekJan, I was observing that my function has been invoked quite frequently and am trying to understand the underlying reason behind it. The problem is that my current function is unfortunately too heavy to operate (even runFunction took ~30 s). I modified the TTL on my function response to the amount that I need, but since I do have a function pipeline in my composition, the last step of the pipeline (function-auto-ready) is always sending the TTL as 1 minute. It's causing my function to run unnecessarily and do the heavy work over and over again. I'm currently in a state where I don't have that many actors that can interfere with my resources, so I just would like to set the TTL for a reasonable time to reconcile after. |
Description of your changes
This PR aims to make the TTL value of the function configurable via DeploymentRuntimeConfig.
Fixes #170
I have: