2022-05-23 05:36:54 -04:00
|
|
|
syntax = "proto3";
|
|
|
|
|
2022-06-21 05:10:32 -04:00
|
|
|
package activation;
|
2022-05-23 05:36:54 -04:00
|
|
|
|
|
|
|
option go_package = "github.com/edgelesssys/constellation/activation/server/activationproto";
|
|
|
|
|
|
|
|
service API {
|
2022-06-21 05:10:32 -04:00
|
|
|
rpc ActivateWorkerNode(ActivateWorkerNodeRequest) returns (ActivateWorkerNodeResponse);
|
|
|
|
rpc ActivateControlPlaneNode(ActivateControlPlaneNodeRequest) returns (ActivateControlPlaneNodeResponse);
|
2022-05-23 05:36:54 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2022-06-21 05:10:32 -04:00
|
|
|
message ActivateWorkerNodeRequest {
|
2022-05-23 05:36:54 -04:00
|
|
|
string disk_uuid = 1;
|
2022-06-02 09:58:19 -04:00
|
|
|
string node_name = 2;
|
2022-05-23 05:36:54 -04:00
|
|
|
}
|
|
|
|
|
2022-06-21 05:10:32 -04:00
|
|
|
message ActivateWorkerNodeResponse {
|
2022-05-23 05:36:54 -04:00
|
|
|
bytes state_disk_key = 1;
|
|
|
|
bytes owner_id = 2;
|
|
|
|
bytes cluster_id = 3;
|
2022-06-02 09:58:19 -04:00
|
|
|
bytes kubelet_key = 4;
|
|
|
|
bytes kubelet_cert = 5;
|
|
|
|
string api_server_endpoint = 6;
|
|
|
|
string token = 7;
|
|
|
|
string discovery_token_ca_cert_hash = 8;
|
2022-05-23 05:36:54 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2022-06-21 05:10:32 -04:00
|
|
|
message ActivateControlPlaneNodeRequest {
|
|
|
|
string disk_uuid = 1;
|
|
|
|
string node_name = 2;
|
2022-05-23 05:36:54 -04:00
|
|
|
}
|
2022-06-21 05:10:32 -04:00
|
|
|
|
|
|
|
message ActivateControlPlaneNodeResponse {
|
|
|
|
bytes state_disk_key = 1;
|
|
|
|
bytes owner_id = 2;
|
|
|
|
bytes cluster_id = 3;
|
|
|
|
bytes kubelet_key = 4;
|
|
|
|
bytes kubelet_cert = 5;
|
|
|
|
string api_server_endpoint = 6;
|
|
|
|
string token = 7;
|
|
|
|
string discovery_token_ca_cert_hash = 8;
|
|
|
|
string certificate_key = 9;
|
2022-05-23 05:36:54 -04:00
|
|
|
}
|