Skip to content

Commit 67c0c08

Browse files
committed
Replace gRPC code generation tool from Zync to Buf
This commit updates the codebase to utilize Buf for generating gRPC code instead of Zync. Signed-off-by: shivas1516 <[email protected]>
1 parent a2f3fca commit 67c0c08

File tree

17 files changed

+4474
-4758
lines changed

17 files changed

+4474
-4758
lines changed

cmd/db-manager/v1beta1/main.go

+2
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ const (
4242
var dbIf common.KatibDBInterface
4343

4444
type server struct {
45+
api_pb.UnimplementedDBManagerServer
46+
health_pb.UnimplementedHealthServer
4547
}
4648

4749
// Report a log of Observations for a Trial.

cmd/suggestion/goptuna/v1beta1/main.go

+1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ const (
3232
)
3333

3434
type healthService struct {
35+
health_pb.UnimplementedHealthServer
3536
}
3637

3738
func (s *healthService) Check(ctx context.Context, in *health_pb.HealthCheckRequest) (*health_pb.HealthCheckResponse, error) {

pkg/apis/manager/health/buf.gen.yaml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
version: v1
2+
managed:
3+
enabled: true
4+
go_package_prefix:
5+
default: github.com/kubeflow/katib/.
6+
except:
7+
- buf.build/googleapis/googleapis
8+
plugins:
9+
- plugin: buf.build/grpc/go:v1.3.0
10+
out: ./
11+
opt:
12+
- paths=source_relative
13+
# Choose one of the following protocol buffers plugin configurations
14+
# based on your requirements
15+
- plugin: buf.build/protocolbuffers/go:v1.33.0
16+
out: ./
17+
opt:
18+
- paths=source_relative
19+
# OR
20+
# - plugin: buf.build/protocolbuffers/go
21+
# out: ./
22+
# opt:
23+
# - paths=source_relative
24+
- plugin: buf.build/grpc/python:v1.62.0
25+
out: python
26+
- plugin: buf.build/protocolbuffers/python
27+
out: python

pkg/apis/manager/health/buf.yaml

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
version: v1
2+
breaking:
3+
use:
4+
- FILE
5+
lint:
6+
use:
7+
- DEFAULT

pkg/apis/manager/health/build.sh

-24
This file was deleted.

0 commit comments

Comments
 (0)