Oscar Utbult
88cf251ef7
grammar: replace all occurrences of "the the" with "the"
2022-09-17 22:28:56 +02:00
Katrina Verey
f6b72077c8
Stop using deprecated ioutil functions
2022-08-10 18:22:46 -04:00
Natasha Sarkar
1b0fe2a078
update openapi scripts to fetch protobuffer schemas ( #4582 )
...
* update openapi scripts to fetch protobuffer schema
* code review
* code review
* restore makeOpenApiInfoDotGo.sh
* code review
2022-08-05 15:00:32 -07:00
Natasha Sarkar
cf89eae804
openapi parsing performance improvement with protobuffer ( #4568 )
...
* update necessary dependencies
* update openapi test structure
* remove old swagger files and generate new ones
* use protobuffer to parse openapi for performance improvement
2022-04-18 11:10:43 -07:00
Katrina Verey
b0d2e4bdcd
Enable more linters for new code
2022-03-31 11:37:26 -04:00
Katrina Verey
71bf0d5d14
Update full linter list and enable some easily resolved new ones
2022-03-31 11:37:26 -04:00
Katrina Verey
1567b96ed3
Replace protobuf dep flagged by linter as deprecated
2022-03-31 11:37:26 -04:00
natasha41575
c857ff8371
move to google/gnostic v0.5.7-v3refs
2022-03-25 15:05:18 -07:00
Katrina Verey
7bc51153d0
Add missing header
2022-02-01 18:06:27 -05:00
Mengqi Yu
816e2365bf
Add benchmark test for parsing openapi in protobuf format
2022-01-25 12:10:25 -08:00
natasha41575
11e19a3d0f
separate custom openapi test from the others
2021-10-04 18:48:54 -07:00
natasha41575
0d8c107362
fix issue with openapi schema from components
2021-09-27 17:00:14 -07:00
Kubernetes Prow Robot
c1ae234a64
Merge pull request #4163 from natasha41575/multipleGvksInOpenApi
...
support multiple gvks in custom openapi schema
2021-09-16 12:59:26 -07:00
Natasha Sarkar
02cb395ec2
support multiple gvks in custom openapi schema
2021-09-16 12:43:18 -07:00
John Howard
402f6ca72b
Precompute IsNamespaceScoped to avoid expensive schema reads ( #4152 )
...
* Precompute IsNamespaceScoped to avoid expensive schema reads
See https://github.com/GoogleContainerTools/kpt/issues/2469
For the `gcr.io/kpt-fn/set-namespace:v0.1` function, over 50% of CPU
time is spent on IsNamespaceScoped. Instead of unmarshalling 100k lines
of JSON to determine this, instead just precompute it. We can ensure
this never is inaccurate as the test verifies the precomputed result is
up to date.
In real world kpt pipelines this cuts execution of set-namespace (and
similar functions, just an example of a trivial function) from 2.0s to
1.0s. Because these functions are run in long pipelines over many
resources, this adds up a lot.
* Add documentation
2021-09-09 10:08:11 -07:00
Katrina Verey
75df1a5422
kyaml presubmit formatting
2021-08-17 11:13:54 -07:00
Natasha Sarkar
38b2b33503
update openapi to v1.21.2
2021-08-10 10:30:12 -07:00
Katrina Verey
5cb5e07ac0
Update openapi updater scripts
2021-08-09 11:44:27 -07:00
Natasha Sarkar
0537b59f27
support yaml formatted openapi schema ( #4017 )
...
* support yaml formatted openapi schema
* suggested changes
2021-07-15 14:11:02 -07:00
monopole
660847225d
Simplify gvk, speed up cluster-scoped checks.
2021-05-02 13:17:33 -07:00
Gautier Delorme
a2871181fe
remove go-openapi/spec,validate,strfmt from kyaml/
...
Signed-off-by: Gautier Delorme <gautier.delorme@gmail.com >
2021-04-25 16:57:39 +02:00
Kubernetes Prow Robot
a9bcf7187a
Merge pull request #3558 from zhijianli88/GOBIN
...
Makefile: check and use GOBIN environment variable first
2021-03-31 10:01:01 -07:00
Natasha Sarkar
a513c56d88
parse custom schema only once when necessary
2021-03-10 13:45:53 -08:00
Natasha Sarkar
12c0360ba3
add env to kustomization openapi spec
2021-03-08 10:51:32 -08:00
Justin SB
8e57ee9111
Add benchmarks to measure impact of swagger parsing
...
Example results:
BenchmarkSwaggerParse-72 2 882910241 ns/op
BenchmarkAsssetUnpack-72 62 19654866 ns/op
2021-03-03 09:11:42 -05:00
Natasha Sarkar
57e7db0423
update openapi version to v1.20.4
2021-03-02 13:46:11 -08:00
Natasha Sarkar
48e4cad72e
kustomization openapi data should be parsed for custom schema
2021-02-24 15:27:50 -08:00
Natasha Sarkar
5a0e193002
moved common resource definitions to separate function
2021-02-23 17:21:16 -08:00
Natasha Sarkar
7dd0ade0f9
add openapi/path field to use custom openapi schema document
2021-02-19 14:19:22 -08:00
Li Zhijian
d203c2328a
kyaml: set proper GOBIN
...
Signed-off-by: Li Zhijian <lizhijian@cn.fujitsu.com >
2021-02-10 14:07:45 +08:00
Natasha Sarkar
659a7de8f9
edited kyaml libraries to use the openapi field from the kustomization file
2021-01-22 16:07:18 -08:00
Natasha Sarkar
2ccb73a2a3
made output of kustomize openapi info command more readable
2020-11-30 14:56:20 -08:00
Phani Teja Marupaka
b6a4dd446a
Refactor openAPI
...
Refactor global openapi
2020-11-16 23:03:56 -08:00
Kubernetes Prow Robot
9569ca93d9
Merge pull request #3220 from natasha41575/OpenApiVersionField
...
Add multiple versions of OpenAPI schema to kyaml
2020-11-13 10:39:05 -08:00
Natasha Sarkar
4d7600d4ef
updated comments and readme
2020-11-12 18:02:11 -08:00
Phani Teja Marupaka
2278e01b7f
Delete v1 setters code
2020-11-12 15:29:07 -08:00
Natasha Sarkar
b61a115e76
added support for multiple kubernetes openapi schemas
2020-11-11 18:09:41 -08:00
Natasha Sarkar
df0576a270
use merge key tuple instead of single merge key
2020-11-09 11:34:31 -08:00
Phani Teja Marupaka
ec2cc2d421
Defer openAPI cleanup
2020-11-05 13:49:43 -08:00
Natasha Sarkar
c1c2725360
regenerated swagger.go files and updated asset name
2020-10-19 13:04:56 -07:00
jregan
dc8439fbfa
Refactor making of openapi generated files.
2020-10-16 19:03:33 -07:00
Natasha Sarkar
a4f1f0841e
added a hidden openapi info command
2020-10-16 13:55:37 -07:00
Natasha Sarkar
ee9a4f2526
changed port merge key back to containerport
2020-10-15 11:43:14 -07:00
Natasha Sarkar
430665e984
version -> api_version
2020-10-13 13:21:19 -07:00
Natasha Sarkar
01beba8697
formatting documentation:
2020-10-09 12:29:06 -07:00
Natasha Sarkar
b1e01b238b
updated documentation
2020-10-09 12:29:06 -07:00
Natasha Sarkar
ad01d8d34e
updated schema to fix port merging issue
2020-10-06 14:30:30 -07:00
Phani Teja Marupaka
eba9edd7a6
Sync openAPI setter values with schema
2020-09-22 14:05:05 -07:00
Morten Torkildsen
d083c7f1d0
Determine namespaceability of resources from openapi schema
2020-09-12 15:01:42 -07:00
Phani Teja Marupaka
f432f4d75e
Setters with subpackages
2020-09-01 10:54:08 -07:00