Bufile is a CLI to generate Linkerd service profiles using Buf Schema Registry.
Here's an example protobuf file that includes the right annotations:
syntax = "proto3";
package testbufile.v1;
import "bufile/v1/bufile.proto";
service GreetingService {
rpc Say(SayRequest) returns (SayResponse) {
option idempotency_level = IDEMPOTENT;
option (bufile.v1.linkerd_timeout) = "30s";
}
}
message SayRequest {
string name = 1;
}
message SayResponse {
string greeting = 1;
}
bufile --config <path-to-bufile.json>