Refactor providers data
This commit is contained in:
parent
b864dbcd8c
commit
9866a688b8
@ -72,9 +72,10 @@ message EnvironmentMetadata {
|
|||||||
}
|
}
|
||||||
|
|
||||||
message EnvironmentSpec {
|
message EnvironmentSpec {
|
||||||
Provider provider = 2; // Provide
|
Provider provider = 1; // Provide
|
||||||
Kubernetes kubernetes = 3;
|
Kubernetes kubernetes = 2;
|
||||||
HetznerOptions hetzner_options = 4;
|
ServerType server_type = 3;
|
||||||
|
Location server_location = 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
message EnvironmentFull {
|
message EnvironmentFull {
|
||||||
@ -97,23 +98,19 @@ enum ServerType {
|
|||||||
SERVER_TYPE_REGULAR = 2;
|
SERVER_TYPE_REGULAR = 2;
|
||||||
SERVER_TYPE_PLUS = 3;
|
SERVER_TYPE_PLUS = 3;
|
||||||
SERVER_TYPE_PRO = 4;
|
SERVER_TYPE_PRO = 4;
|
||||||
|
SERVER_TYPE_CUSTOM = 5;
|
||||||
}
|
}
|
||||||
|
|
||||||
enum HetznerLocation {
|
enum Location {
|
||||||
HETZNER_LOCATION_UNSPECIFIED = 0;
|
LOCATION_UNSPECIFIED = 0;
|
||||||
HETZNER_LOCATION_NUREMBERG = 1;
|
LOCATION_HETZNER_NUREMBERG = 1;
|
||||||
HETZNER_LOCATION_FALKENSTEIN = 2;
|
LOCATION_HETZNER_FALKENSTEIN = 2;
|
||||||
HETZNER_LOCATION_HELSINKI = 3;
|
LOCATION_HETZNER_HELSINKI = 3;
|
||||||
HETZNER_LOCATION_HILLSBORO = 4;
|
LOCATION_HETZNER_HILLSBORO = 4;
|
||||||
HETZNER_LOCATION_ASHBURN = 5;
|
LOCATION_HETZNER_ASHBURN = 5;
|
||||||
}
|
}
|
||||||
|
|
||||||
enum Kubernetes {
|
enum Kubernetes {
|
||||||
KUBERNETES_UNSPECIFIED = 0;
|
KUBERNETES_UNSPECIFIED = 0;
|
||||||
KUBERNETES_K3S = 1;
|
KUBERNETES_K3S = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
message HetznerOptions {
|
|
||||||
ServerType server_type = 1;
|
|
||||||
HetznerLocation server_location = 2;
|
|
||||||
}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user