Skip to content

Commit

Permalink
📝 Add more validations
Browse files Browse the repository at this point in the history
Signed-off-by: Rintaro Okamura <[email protected]>
  • Loading branch information
rinx committed May 19, 2020
1 parent 4c0c424 commit 5c33872
Showing 1 changed file with 32 additions and 5 deletions.
37 changes: 32 additions & 5 deletions charts/vald/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@ defaults:
time_zone: UTC
# @schema {"name": "defaults.logging", "type": "object"}
logging:
# @schema {"name": "defaults.logging.logger", "type": "string", "pattern": "glg"}
# @schema {"name": "defaults.logging.logger", "type": "string", "enum": ["glg"]}
# defaults.logging.logger -- logger name
# currently logger must be `glg`.
logger: glg
# @schema {"name": "defaults.logging.level", "type": "string", "pattern": "^(debug|info|warn|error|fatal)$"}
# @schema {"name": "defaults.logging.level", "type": "string", "enum": ["debug", "info", "warn", "error", "fatal"]}
# defaults.logging.level -- logging level
# logging level must be `debug`, `info`, `warn`, `error` or `fatal`.
level: debug
# @schema {"name": "defaults.logging.format", "type": "string", "pattern": "^(raw|json)$"}
# @schema {"name": "defaults.logging.format", "type": "string", "enum": ["raw", "json"]}
# defaults.logging.format -- logging format
# logging format must be `raw` or `json`
format: raw
Expand All @@ -51,10 +51,10 @@ defaults:
# @schema {"name": "defaults.server_config.servers.rest.host", "type": "string"}
# defaults.server_config.servers.rest.host -- REST server host
host: 0.0.0.0
# @schema {"name": "defaults.server_config.servers.rest.port", "type": "integer"}
# @schema {"name": "defaults.server_config.servers.rest.port", "type": "integer", "minimum": 0, "maximum": 65535}
# defaults.server_config.servers.rest.port -- REST server port
port: 8080
# @schema {"name": "defaults.server_config.servers.rest.servicePort", "type": "integer"}
# @schema {"name": "defaults.server_config.servers.rest.servicePort", "type": "integer", "minimum": 0, "maximum": 65535}
# defaults.server_config.servers.rest.servicePort -- REST server service port
servicePort: 8080
# @schema {"name": "defaults.server_config.servers.rest.server", "type": "object"}
Expand Down Expand Up @@ -85,54 +85,81 @@ defaults:
# @schema {"name": "defaults.server_config.servers.rest.server.write_timeout", "type": "string"}
# defaults.server_config.servers.rest.server.http.write_timeout -- REST server write timeout
write_timeout: 1s
# @schema {"name": "defaults.server_config.servers.grpc", "type": "object"}
grpc:
# @schema {"name": "defaults.server_config.servers.grpc.enabled", "type": "boolean"}
# defaults.server_config.servers.grpc.enabled -- gRPC server enabled
enabled: true
# @schema {"name": "defaults.server_config.servers.grpc.host", "type": "string"}
# defaults.server_config.servers.grpc.host -- gRPC server host
host: 0.0.0.0
# @schema {"name": "defaults.server_config.servers.grpc.port", "type": "integer", "minimum": 0, "maximum": 65535}
# defaults.server_config.servers.grpc.port -- gRPC server port
port: 8081
# @schema {"name": "defaults.server_config.servers.grpc.servicePort", "type": "integer", "minimum": 0, "maximum": 65535}
# defaults.server_config.servers.grpc.servicePort -- gRPC server service port
servicePort: 8081
# @schema {"name": "defaults.server_config.servers.grpc.server", "type": "object"}
server:
# @schema {"name": "defaults.server_config.servers.grpc.server.mode", "type": "string"}
# defaults.server_config.servers.grpc.server.mode -- gRPC server server mode
mode: GRPC
# @schema {"name": "defaults.server_config.servers.grpc.server.probe_wait_time", "type": "string"}
# defaults.server_config.servers.grpc.server.probe_wait_time -- gRPC server probe wait time
probe_wait_time: "3s"
# @schema {"name": "defaults.server_config.servers.grpc.server.grpc", "type": "object"}
grpc:
# @schema {"name": "defaults.server_config.servers.grpc.server.grpc.bidirectional_stream_concurrency", "type": "integer"}
# defaults.server_config.servers.grpc.server.grpc.bidirectional_stream_concurrency -- gRPC server bidirectional stream concurrency
bidirectional_stream_concurrency: 20
# @schema {"name": "defaults.server_config.servers.grpc.server.grpc.max_receive_message_size", "type": "integer"}
# defaults.server_config.servers.grpc.server.grpc.max_receive_message_size -- gRPC server max receive message size
max_receive_message_size: 0
# @schema {"name": "defaults.server_config.servers.grpc.server.grpc.max_send_message_size", "type": "integer"}
# defaults.server_config.servers.grpc.server.grpc.max_send_message_size -- gRPC server max send message size
max_send_message_size: 0
# @schema {"name": "defaults.server_config.servers.grpc.server.grpc.initial_window_size", "type": "integer"}
# defaults.server_config.servers.grpc.server.grpc.initial_window_size -- gRPC server initial window size
initial_window_size: 0
# @schema {"name": "defaults.server_config.servers.grpc.server.grpc.initial_conn_window_size", "type": "integer"}
# defaults.server_config.servers.grpc.server.grpc.initial_conn_window_size -- gRPC server initial connection window size
initial_conn_window_size: 0
# @schema {"name": "defaults.server_config.servers.grpc.server.grpc.keepalive", "type": "object"}
keepalive:
# @schema {"name": "defaults.server_config.servers.grpc.server.grpc.keepalive.max_conn_idle", "type": "string"}
# defaults.server_config.servers.grpc.server.grpc.keepalive.max_conn_idle -- gRPC server keep alive max connection idle
max_conn_idle: ""
# @schema {"name": "defaults.server_config.servers.grpc.server.grpc.keepalive.max_conn_age", "type": "string"}
# defaults.server_config.servers.grpc.server.grpc.keepalive.max_conn_age -- gRPC server keep alive max connection age
max_conn_age: ""
# @schema {"name": "defaults.server_config.servers.grpc.server.grpc.keepalive.max_conn_age_grace", "type": "string"}
# defaults.server_config.servers.grpc.server.grpc.keepalive.max_conn_age_grace -- gRPC server keep alive max connection age grace
max_conn_age_grace: ""
# @schema {"name": "defaults.server_config.servers.grpc.server.grpc.keepalive.time", "type": "string"}
# defaults.server_config.servers.grpc.server.grpc.keepalive.time -- gRPC server keep alive time
time: ""
# @schema {"name": "defaults.server_config.servers.grpc.server.grpc.keepalive.timeout", "type": "string"}
# defaults.server_config.servers.grpc.server.grpc.keepalive.timeout -- gRPC server keep alive timeout
timeout: ""
# @schema {"name": "defaults.server_config.servers.grpc.server.grpc.write_buffer_size", "type": "integer"}
# defaults.server_config.servers.grpc.server.grpc.write_buffer_size -- gRPC server write buffer size
write_buffer_size: 0
# @schema {"name": "defaults.server_config.servers.grpc.server.grpc.read_buffer_size", "type": "integer"}
# defaults.server_config.servers.grpc.server.grpc.read_buffer_size -- gRPC server read buffer size
read_buffer_size: 0
# @schema {"name": "defaults.server_config.servers.grpc.server.grpc.connection_timeout", "type": "string"}
# defaults.server_config.servers.grpc.server.grpc.connection_timeout -- gRPC server connection timeout
connection_timeout: ""
# @schema {"name": "defaults.server_config.servers.grpc.server.grpc.max_header_list_size", "type": "integer"}
# defaults.server_config.servers.grpc.server.grpc.max_header_list_size -- gRPC server max header list size
max_header_list_size: 0
# @schema {"name": "defaults.server_config.servers.grpc.server.grpc.header_table_size", "type": "integer"}
# defaults.server_config.servers.grpc.server.grpc.header_table_size -- gRPC server header table size
header_table_size: 0
# @schema {"name": "defaults.server_config.servers.grpc.server.grpc.interceptors", "type": "array"}
# defaults.server_config.servers.grpc.server.grpc.interceptors -- gRPC server interceptors
interceptors: []
# @schema {"name": "defaults.server_config.servers.grpc.server.restart", "type": "boolean"}
# defaults.server_config.servers.grpc.server.restart -- gRPC server restart
restart: true
healths:
Expand Down

0 comments on commit 5c33872

Please sign in to comment.