You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now the metadata parameters can be retrieved from the config, but there are two options in the following steps:
Attempt to merge the schemas to the ScaledObject schema. I've made several attempts in this direction, but there is no proper way to add them into the ScaledObjects CRD YAML. The major problem is that I can't find a way to validate the parameter combination of the trigger. I have tried using 'oneOf', but it is not working. If there is any other good approach, please let me know so that I can give it a try.
Save them as Trigger Metadata schema files and validate trigger metadata value on the webhook by loading these trigger metadata schemas at runtime.
WDYT @JorTurFer@zroubalik@wozniakjan
great findings @SpiritZhou! I think option 2 - a standalone schemas file should be sufficient. I personally would even descope the webhook and validation by kube-apiserver for now and only generate + publish the trigger schema file as part of the KEDA repository. That would already be a terrific improvement.
Proposal
Generating trigger metadata schema according to new declarative scaler configuration, which can be used for validation or other related improvement.
Input:
make generate-trigger-metadata-schema [--triggername][--output][--outputfile]
Output:
trigger-metadata-schemas.yaml
Trigger metadata example:
Use-Case
No response
Is this a feature you are interested in implementing yourself?
Yes
Anything else?
No response
The text was updated successfully, but these errors were encountered: