-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(backend): regenerate v1beta1 api clients (#8403)
* add v2 experiment.proto * regenerate v1beta1 client * remove api version from combined swagger file * Revert "regenerate v1beta1 client" This reverts commit 02769d7. * regenerate v1beta1 clients * regenerate python packages without api version * remove regenerated v1 python packages&change proto * refactor v1 exp apis and functions * remove v2 api package and refactor v1 proto * regenerate v1 go clients * regenerate v1 python package * refactor and update the human maintained swagger * renew swagger file * regenerate v1 packages * regenerate v1 python package * refactor * regenerate v1 go clients * regenerate v1 python package * recover dockerfile and add s in python * fix func name * use commit for sdk execution test * change sdk execution test * update test script * add v1 to methods * proto update v1 method names * regenerate v1 go packages * regenerate python client * update server methods * refactor * refactor * refactor * refactor python client * fix get_healthz * update sample-test.sh in v2 backend * sample test script * change v2 sample test * change package install order * Revert "change package install order" This reverts commit c24fcfb. * use KFP server api from commit for v2 sample tests * small fix
- Loading branch information
Showing
431 changed files
with
13,733 additions
and
13,745 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,6 +32,7 @@ rm -f -f backend/api/${API_VERSION}/go_client/* | |
# Create directories if they don't exist | ||
mkdir -p backend/api/${API_VERSION}/go_http_client | ||
mkdir -p backend/api/${API_VERSION}/go_client | ||
mkdir -p backend/api/${API_VERSION}/swagger | ||
|
||
# Generate *.pb.go (grpc api client) from *.proto. | ||
${PROTOCCOMPILER} -I. -Ibackend/api/${API_VERSION} \ | ||
|
@@ -67,9 +68,9 @@ cp -a ${TMP_OUTPUT}/backend/api/${API_VERSION}/*.swagger.json ./backend/api/${AP | |
# Generate a single swagger json file from the swagger json files of all models. | ||
# Note: use backend/backend/api/${API_VERSION}/swagger/{run,job,experiment,pipeline,pipeline.upload,healthz}.swagger.json when apt-get can install jq-1.6 | ||
jq -s 'reduce .[] as $item ({}; . * $item) | .info.title = "Kubeflow Pipelines API" | .info.description = "This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition." | .info.version = "'$KFP_VERSION'" | .info.contact = { "name": "google", "email": "[email protected]", "url": "https://www.google.com" } | .info.license = { "name": "Apache 2.0", "url": "https://raw.githubusercontent.com/kubeflow/pipelines/master/LICENSE" }' \ | ||
backend/api/${API_VERSION}/swagger/experiment.swagger.json \ | ||
backend/api/${API_VERSION}/swagger/run.swagger.json \ | ||
backend/api/${API_VERSION}/swagger/job.swagger.json \ | ||
backend/api/${API_VERSION}/swagger/experiment.swagger.json \ | ||
backend/api/${API_VERSION}/swagger/pipeline.swagger.json \ | ||
backend/api/${API_VERSION}/swagger/pipeline.upload.swagger.json \ | ||
backend/api/${API_VERSION}/swagger/healthz.swagger.json \ | ||
|
@@ -126,9 +127,9 @@ swagger generate client \ | |
-t backend/api/${API_VERSION}/go_http_client | ||
# Hack to fix an issue with go-swagger | ||
# See https://github.com/go-swagger/go-swagger/issues/1381 for details. | ||
sed -i -- 's/MaxConcurrency int64 `json:"max_concurrency,omitempty"`/MaxConcurrency int64 `json:"max_concurrency,omitempty,string"`/g' backend/api/${API_VERSION}/go_http_client/job_model/${API_VERSION}_job.go | ||
sed -i -- 's/IntervalSecond int64 `json:"interval_second,omitempty"`/IntervalSecond int64 `json:"interval_second,omitempty,string"`/g' backend/api/${API_VERSION}/go_http_client/job_model/${API_VERSION}_periodic_schedule.go | ||
sed -i -- 's/MaxConcurrency string `json:"max_concurrency,omitempty"`/MaxConcurrency int64 `json:"max_concurrency,omitempty,string"`/g' backend/api/${API_VERSION}/go_http_client/job_model/${API_VERSION}_job.go | ||
sed -i -- 's/IntervalSecond string `json:"interval_second,omitempty"`/IntervalSecond int64 `json:"interval_second,omitempty,string"`/g' backend/api/${API_VERSION}/go_http_client/job_model/${API_VERSION}_periodic_schedule.go | ||
sed -i -- 's/MaxConcurrency int64 `json:"max_concurrency,omitempty"`/MaxConcurrency int64 `json:"max_concurrency,omitempty,string"`/g' backend/api/${API_VERSION}/go_http_client/job_model/api_job.go | ||
sed -i -- 's/IntervalSecond int64 `json:"interval_second,omitempty"`/IntervalSecond int64 `json:"interval_second,omitempty,string"`/g' backend/api/${API_VERSION}/go_http_client/job_model/api_periodic_schedule.go | ||
sed -i -- 's/MaxConcurrency string `json:"max_concurrency,omitempty"`/MaxConcurrency int64 `json:"max_concurrency,omitempty,string"`/g' backend/api/${API_VERSION}/go_http_client/job_model/api_job.go | ||
sed -i -- 's/IntervalSecond string `json:"interval_second,omitempty"`/IntervalSecond int64 `json:"interval_second,omitempty,string"`/g' backend/api/${API_VERSION}/go_http_client/job_model/api_periodic_schedule.go | ||
# Execute the //go:generate directives in the generated code. | ||
cd backend/api && go generate ./... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.