Skip to content
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

Speed up custom parsing #3715

Merged
merged 3 commits into from
Mar 16, 2021

Conversation

natasha41575
Copy link
Contributor

reference to #2825

Though you can now specify your own custom schema, doing so is pretty slow. Turns out this was because it was parsing it multiple times. This PR changes it to parse only once.

Also trimmed down the custom schema stored in krusty to the minimum necessary schema for the test cases, and added an example to the examples directory of how to use the new openapi field.

@natasha41575 natasha41575 requested a review from monopole March 10, 2021 01:33
@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Mar 10, 2021
@k8s-ci-robot k8s-ci-robot requested review from droot and justinsb March 10, 2021 01:33
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: natasha41575
To complete the pull request process, please assign phanimarupaka after the PR has been reviewed.
You can assign the PR to them by writing /assign @phanimarupaka in a comment when ready.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. label Mar 10, 2021
@natasha41575 natasha41575 force-pushed the SpeedUpCustomParsing branch from 410161d to c3ea1bc Compare March 10, 2021 21:44
@natasha41575 natasha41575 force-pushed the SpeedUpCustomParsing branch from c3ea1bc to 2fbb0b8 Compare March 10, 2021 21:46
examples/customOpenAPIschema.md Outdated Show resolved Hide resolved
examples/customOpenAPIschema.md Outdated Show resolved Hide resolved
examples/customOpenAPIschema.md Outdated Show resolved Hide resolved
examples/customOpenAPIschema.md Outdated Show resolved Hide resolved
@natasha41575 natasha41575 force-pushed the SpeedUpCustomParsing branch from 2fbb0b8 to 2f6a611 Compare March 16, 2021 01:08
@natasha41575 natasha41575 requested a review from monopole March 16, 2021 01:10
@monopole
Copy link
Contributor

/lgtm

thanks!

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Mar 16, 2021
@monopole monopole merged commit 831f99c into kubernetes-sigs:master Mar 16, 2021
Copy link
Contributor

@monopole monopole left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants