-
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
Add openapi spec #1512
Add openapi spec #1512
Conversation
Signed-off-by: Suresh Kumar Ponnusamy <suresh.ponnusamy@freshworks.com>
Signed-off-by: Suresh Kumar Ponnusamy <suresh.ponnusamy@freshworks.com>
@zroubalik looks like we move Or should I move the openapi spec generation logic into |
Signed-off-by: Suresh Kumar Ponnusamy <suresh.ponnusamy@freshworks.com>
6804b6d
to
b5d4408
Compare
Thanks for doing this!
I'd move it into |
Signed-off-by: Suresh Kumar Ponnusamy <suresh.ponnusamy@freshworks.com>
Signed-off-by: Suresh Kumar Ponnusamy <suresh.ponnusamy@freshworks.com>
Signed-off-by: Suresh Kumar Ponnusamy <suresh.ponnusamy@freshworks.com>
Signed-off-by: Suresh Kumar Ponnusamy <suresh.ponnusamy@freshworks.com>
Co-authored-by: Zbynek Roubalik <726523+zroubalik@users.noreply.github.com> Signed-off-by: Suresh Kumar Ponnusamy <suresh.ponnusamy@freshworks.com>
e90a5ff
to
2ac3417
Compare
@surki you can ignore the failing static check (I will address that in a separate PR), just please add exclude-rule for the |
Signed-off-by: Suresh Kumar Ponnusamy <suresh.ponnusamy@freshworks.com>
@zroubalik looks like the |
@surki Sorry I am not sure I fully understand, that line in pr-validation.yml is about the container that's being used to do the build, you can see the Dockerfile for this container here: https://github.com/kedacore/keda/blob/main/tools/build-tools.Dockerfile |
The new dependency we have added here in tools.go is not being pulled in (but looks like controller-gen etc are already pulled in as part of Docker image). I could think of two options:
I would suggest to go with first option. are you okay if I do that? |
@surki gotcha. Syncing the go.mod sounds like a good idea! |
Signed-off-by: Suresh Kumar Ponnusamy <suresh.ponnusamy@freshworks.com>
It appears go1.14 introduced different behavior when running 'go list' with vendor directory (which our Makefile seems to create temporarily and not cleanup). This change makes 'go list' work with even when vendor directory is present Signed-off-by: Suresh Kumar Ponnusamy <suresh.ponnusamy@freshworks.com>
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.
LGTM
* Add openapi spec Signed-off-by: Suresh Kumar Ponnusamy <suresh.ponnusamy@freshworks.com> * Update changelog Signed-off-by: Suresh Kumar Ponnusamy <suresh.ponnusamy@freshworks.com> * Update CHANGELOG.md Signed-off-by: Suresh Kumar Ponnusamy <suresh.ponnusamy@freshworks.com> * Move generated openapi file Signed-off-by: Suresh Kumar Ponnusamy <suresh.ponnusamy@freshworks.com> * Update generated code Signed-off-by: Suresh Kumar Ponnusamy <suresh.ponnusamy@freshworks.com> * Fix import grouping Signed-off-by: Suresh Kumar Ponnusamy <suresh.ponnusamy@freshworks.com> * Update autogenerated tag Signed-off-by: Suresh Kumar Ponnusamy <suresh.ponnusamy@freshworks.com> * Update CHANGELOG.md Co-authored-by: Zbynek Roubalik <726523+zroubalik@users.noreply.github.com> Signed-off-by: Suresh Kumar Ponnusamy <suresh.ponnusamy@freshworks.com> * Disable static linter for a stackdriver scaler Signed-off-by: Suresh Kumar Ponnusamy <suresh.ponnusamy@freshworks.com> * Sync go module in workflow run Signed-off-by: Suresh Kumar Ponnusamy <suresh.ponnusamy@freshworks.com> * Fix 'go list' invocation. It appears go1.14 introduced different behavior when running 'go list' with vendor directory (which our Makefile seems to create temporarily and not cleanup). This change makes 'go list' work with even when vendor directory is present Signed-off-by: Suresh Kumar Ponnusamy <suresh.ponnusamy@freshworks.com> Co-authored-by: Zbynek Roubalik <726523+zroubalik@users.noreply.github.com>
Signed-off-by: Suresh Kumar Ponnusamy suresh.ponnusamy@freshworks.com
Add OpenAPI spec support, without which k8s apiserver log is flooded with errors/retries.
This follows similar upstream changes done here
Checklist
Fixes #1503