forked from kubeflow/katib
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace gRPC code generation tool from Znly/protoc to Buf (kubeflow#2344
) * Replace gRPC code generation tool from Znly/protoc to Buf Signed-off-by: forsaken628 <forsaken628@gmail.com> * fix Signed-off-by: forsaken628 <forsaken628@gmail.com> * del build.sh Signed-off-by: forsaken628 <forsaken628@gmail.com> * cleanup Signed-off-by: forsaken628 <forsaken628@gmail.com> * fix test Signed-off-by: forsaken628 <forsaken628@gmail.com> * fix Signed-off-by: forsaken628 <forsaken628@gmail.com> * fix Signed-off-by: forsaken628 <forsaken628@gmail.com> * refine Signed-off-by: forsaken628 <forsaken628@gmail.com> * fix Signed-off-by: forsaken628 <forsaken628@gmail.com> * rm outter yaml Signed-off-by: forsaken628 <forsaken628@gmail.com> * fix Signed-off-by: forsaken628 <forsaken628@gmail.com> --------- Signed-off-by: forsaken628 <forsaken628@gmail.com>
- Loading branch information
1 parent
c76167a
commit 710a623
Showing
25 changed files
with
5,065 additions
and
4,800 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
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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Copyright 2024 The Kubeflow Authors. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
set -e | ||
|
||
SOURCE="${BASH_SOURCE[0]}" | ||
while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink | ||
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )" | ||
SOURCE="$(readlink "$SOURCE")" | ||
[[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE" # if $SOURCE was a relative symlink, we need to resolve it relative to the path where the symlink file was located | ||
done | ||
ROOT_DIR="$( cd -P "$( dirname "$SOURCE" )/.." && pwd )" | ||
|
||
mkdir -p "${ROOT_DIR}/bin" | ||
export GOBIN=$ROOT_DIR/bin | ||
|
||
if [ ! -f "${GOBIN}/buf" ]; then | ||
go install github.com/bufbuild/buf/cmd/buf@v1.32.2 | ||
fi | ||
|
||
pushd "${ROOT_DIR}/pkg/apis/manager/health" | ||
"${GOBIN}/buf" generate | ||
popd | ||
|
||
pushd "${ROOT_DIR}/pkg/apis/manager/v1beta1" | ||
"${GOBIN}/buf" generate | ||
popd |
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
version: v2 | ||
plugins: | ||
- remote: buf.build/protocolbuffers/go:v1.33.0 | ||
out: . | ||
opt: module=github.com/kubeflow/katib/pkg/apis/manager/health | ||
|
||
- remote: buf.build/grpc/go:v1.3.0 | ||
out: . | ||
opt: module=github.com/kubeflow/katib/pkg/apis/manager/health,require_unimplemented_servers=false | ||
|
||
- remote: buf.build/protocolbuffers/python:v26.1 | ||
out: python | ||
|
||
- remote: buf.build/protocolbuffers/pyi:v26.1 | ||
out: python | ||
|
||
- remote: buf.build/grpc/python:v1.64.1 | ||
out: python | ||
|
||
inputs: | ||
- directory: . |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.