Skip to content

Commit 246347b

Browse files
committed
Made tvm url optional (ydb-platform#1591)
* Made tvm url optional * Python codestyle fix * Changed validation accordingly
1 parent e732b84 commit 246347b

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

ydb/core/protos/config.proto

+1-1
Original file line numberDiff line numberDiff line change
@@ -1608,7 +1608,7 @@ message TTracingConfig {
16081608
message TBackendConfig {
16091609
message TAuthConfig {
16101610
message TTvmAuth {
1611-
required string Url = 1;
1611+
optional string Url = 1;
16121612

16131613
required uint32 SelfTvmId = 2;
16141614
required uint32 TracingTvmId = 3;

ydb/tools/cfg/static.py

-1
Original file line numberDiff line numberDiff line change
@@ -1133,7 +1133,6 @@ def get_sampling_scope(sampling):
11331133
sampling_scope_pb.MaxBurst = sampling['max_burst']
11341134
return sampling_scope_pb
11351135

1136-
11371136
def get_external_throttling(throttling):
11381137
throttling_scope_pb = config_pb2.TTracingConfig.TExternalThrottlingScope()
11391138
selectors = throttling.get("scope")

ydb/tools/cfg/validation.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@
153153
secret_file=dict(type="string"),
154154
secret_environment_variable=dict(type="string"),
155155
),
156-
required=["url", "self_tvm_id", "tracing_tvm_id"],
156+
required=["self_tvm_id", "tracing_tvm_id"],
157157
)
158158
),
159159
required=["tvm"],

0 commit comments

Comments
 (0)