-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Trigger Schema Generated Tool #6489
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: SpiritZhou <[email protected]>
Signed-off-by: SpiritZhou <[email protected]>
Signed-off-by: SpiritZhou <[email protected]>
Signed-off-by: SpiritZhou <[email protected]>
Signed-off-by: SpiritZhou <[email protected]>
Signed-off-by: SpiritZhou <[email protected]>
Signed-off-by: SpiritZhou <[email protected]>
Signed-off-by: SpiritZhou <[email protected]>
Signed-off-by: SpiritZhou <[email protected]>
Signed-off-by: SpiritZhou <[email protected]>
Signed-off-by: SpiritZhou <[email protected]>
Signed-off-by: SpiritZhou <[email protected]>
Signed-off-by: SpiritZhou <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR is simply awesome! Could I suggest generating the output also as json as add a verification step during the CI to verify that the generated schemas are up to date?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR is simply awesome! Could I suggest generating the output also as json as add a verification step during the CI to verify that the generated schemas are up-to-date?
And probably we want to pull the schema during the release too, using the specific version of the release
Sure, will add json as one more output file formate. |
Signed-off-by: SpiritZhou <[email protected]>
Signed-off-by: SpiritZhou <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great stuff!
Minor improvements/suggestions:
- change the ouptup filename from
scaler-metadata-schemas
toscalers-metadata-schema
- store the schema in schema/generated
- regenerate the schema as part of the other generation stuff (probalby
build
step in the Makefile) - add a verification step to make sure schema is up to data (similar like it is done for clientset)
- let's produce versioned schema file in the release pipeline named
scalers-metadata-schema-v$KEDA_VERSION.json/yaml
Signed-off-by: SpiritZhou <[email protected]>
Signed-off-by: SpiritZhou <[email protected]>
Signed-off-by: SpiritZhou <[email protected]>
Signed-off-by: Zhenghan Zhou <[email protected]>
Signed-off-by: SpiritZhou <[email protected]>
Signed-off-by: SpiritZhou <[email protected]>
Signed-off-by: SpiritZhou <[email protected]>
Signed-off-by: SpiritZhou <[email protected]>
My point about generating the schema for the release was more related with generating it during the release and pushing it to the release itself as we do with manifests -> keda/.github/workflows/release-build.yml Lines 122 to 132 in 26a9cb8
Having the file in the repo could be worth, but not versioned, just generated from main always, WDYT? |
@JorTurFer I misunderstood your meaning before. Please correct me if I'm wrong:
By the way, is there a way to test the release pipeline? |
Yeah, With this approach, if someone is using them, just downloading the files from the release will give a versionated files or checking out the tag (but publishing them as other release assets is worth IMHO)
Sadly, no. There isn't any good way to test that pipeline. The way that I used in the past is enabling workflows on my fork and triggering it there, but it's not the best either |
Signed-off-by: SpiritZhou <[email protected]>
931ec5d
to
5986674
Compare
Generating trigger metadata schema according to new declarative scaler configuration, which can be used for validation or other related improvement.
Input:
make generate-scaler-schemas [--keda-version][--scalers-builder-file][--scalers-files-dir][--specify-scaler][--output-file-path]
Output:
scaler-metadata-schemas.yaml
Checklist
Relates to # #6345