Enable Agents to Invoke "Register" gRPC Method
Part of #100 (closed).
This MR enable agents to invoke "Register" gRPC method. To determine whether to register the agent info in the process of GetConfiguration
, it adds new flag SkipRegister
into the request for GetConfiguration
. If true
, Kas skips registering the agent info, and if false
then Kas skips registering in GetConfiguration
.
Regarding backward compatibility, this change should not bring any issues:
- If agent's version is older, the agent will send a request without
SkipRegister
. Kas will handle it with the default valuefalse
. - If Kas' version is older, the agent will send
SkipRegister
withtrue
, but the older Kas will just ignore it and process just same as before.