diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 23f8b54880..9b085134ce 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -1 +1,2 @@ * @atymchuk @BupycHuk + diff --git a/api/managementpb/dbaas/dbaas.pb.go b/api/managementpb/dbaas/dbaas.pb.go index eabcc499c6..cb0925183b 100644 --- a/api/managementpb/dbaas/dbaas.pb.go +++ b/api/managementpb/dbaas/dbaas.pb.go @@ -157,12 +157,12 @@ type Resources struct { unknownFields protoimpl.UnknownFields // Memory in bytes. - MemoryBytes int64 `protobuf:"varint,1,opt,name=memory_bytes,json=memoryBytes,proto3" json:"memory_bytes,omitempty"` + MemoryBytes uint64 `protobuf:"varint,1,opt,name=memory_bytes,json=memoryBytes,proto3" json:"memory_bytes,omitempty"` // CPU in millicpus. For example 0.1 of CPU is equivalent to 100 millicpus. // See https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#meaning-of-cpu. - CpuM int64 `protobuf:"varint,2,opt,name=cpu_m,json=cpuM,proto3" json:"cpu_m,omitempty"` + CpuM uint64 `protobuf:"varint,2,opt,name=cpu_m,json=cpuM,proto3" json:"cpu_m,omitempty"` // Disk size in bytes. - DiskSize int64 `protobuf:"varint,3,opt,name=disk_size,json=diskSize,proto3" json:"disk_size,omitempty"` + DiskSize uint64 `protobuf:"varint,3,opt,name=disk_size,json=diskSize,proto3" json:"disk_size,omitempty"` } func (x *Resources) Reset() { @@ -197,21 +197,21 @@ func (*Resources) Descriptor() ([]byte, []int) { return file_managementpb_dbaas_dbaas_proto_rawDescGZIP(), []int{2} } -func (x *Resources) GetMemoryBytes() int64 { +func (x *Resources) GetMemoryBytes() uint64 { if x != nil { return x.MemoryBytes } return 0 } -func (x *Resources) GetCpuM() int64 { +func (x *Resources) GetCpuM() uint64 { if x != nil { return x.CpuM } return 0 } -func (x *Resources) GetDiskSize() int64 { +func (x *Resources) GetDiskSize() uint64 { if x != nil { return x.DiskSize } @@ -238,10 +238,10 @@ var file_managementpb_dbaas_dbaas_proto_rawDesc = []byte{ 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x42, 0x79, 0x74, 0x65, 0x73, 0x22, 0x60, 0x0a, 0x09, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x12, 0x21, 0x0a, 0x0c, 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x42, 0x79, 0x74, 0x65, - 0x73, 0x12, 0x13, 0x0a, 0x05, 0x63, 0x70, 0x75, 0x5f, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, + 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x42, 0x79, 0x74, 0x65, + 0x73, 0x12, 0x13, 0x0a, 0x05, 0x63, 0x70, 0x75, 0x5f, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x04, 0x63, 0x70, 0x75, 0x4d, 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x69, 0x73, 0x6b, 0x5f, 0x73, - 0x69, 0x7a, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x64, 0x69, 0x73, 0x6b, 0x53, + 0x69, 0x7a, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x64, 0x69, 0x73, 0x6b, 0x53, 0x69, 0x7a, 0x65, 0x42, 0x25, 0x5a, 0x23, 0x61, 0x70, 0x69, 0x2f, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x70, 0x62, 0x2f, 0x64, 0x62, 0x61, 0x61, 0x73, 0x3b, 0x64, 0x62, 0x61, 0x61, 0x73, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, diff --git a/api/managementpb/dbaas/dbaas.proto b/api/managementpb/dbaas/dbaas.proto index a9d107990a..a00165c0e1 100644 --- a/api/managementpb/dbaas/dbaas.proto +++ b/api/managementpb/dbaas/dbaas.proto @@ -27,10 +27,10 @@ message ComputeResources { // Resources contains Kubernetes cluster resources. message Resources { // Memory in bytes. - int64 memory_bytes = 1; + uint64 memory_bytes = 1; // CPU in millicpus. For example 0.1 of CPU is equivalent to 100 millicpus. // See https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#meaning-of-cpu. - int64 cpu_m = 2; + uint64 cpu_m = 2; // Disk size in bytes. - int64 disk_size = 3; + uint64 disk_size = 3; } diff --git a/api/managementpb/dbaas/json/dbaas.json b/api/managementpb/dbaas/json/dbaas.json index a881aa4378..2d09bc2442 100644 --- a/api/managementpb/dbaas/json/dbaas.json +++ b/api/managementpb/dbaas/json/dbaas.json @@ -1163,19 +1163,19 @@ "cpu_m": { "description": "CPU in millicpus. For example 0.1 of CPU is equivalent to 100 millicpus.\nSee https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#meaning-of-cpu.", "type": "string", - "format": "int64", + "format": "uint64", "x-order": 1 }, "disk_size": { "description": "Disk size in bytes.", "type": "string", - "format": "int64", + "format": "uint64", "x-order": 2 }, "memory_bytes": { "description": "Memory in bytes.", "type": "string", - "format": "int64", + "format": "uint64", "x-order": 0 } }, @@ -1188,19 +1188,19 @@ "cpu_m": { "description": "CPU in millicpus. For example 0.1 of CPU is equivalent to 100 millicpus.\nSee https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#meaning-of-cpu.", "type": "string", - "format": "int64", + "format": "uint64", "x-order": 1 }, "disk_size": { "description": "Disk size in bytes.", "type": "string", - "format": "int64", + "format": "uint64", "x-order": 2 }, "memory_bytes": { "description": "Memory in bytes.", "type": "string", - "format": "int64", + "format": "uint64", "x-order": 0 } }, @@ -1617,19 +1617,19 @@ "cpu_m": { "description": "CPU in millicpus. For example 0.1 of CPU is equivalent to 100 millicpus.\nSee https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#meaning-of-cpu.", "type": "string", - "format": "int64", + "format": "uint64", "x-order": 1 }, "disk_size": { "description": "Disk size in bytes.", "type": "string", - "format": "int64", + "format": "uint64", "x-order": 2 }, "memory_bytes": { "description": "Memory in bytes.", "type": "string", - "format": "int64", + "format": "uint64", "x-order": 0 } }, @@ -2539,19 +2539,19 @@ "cpu_m": { "description": "CPU in millicpus. For example 0.1 of CPU is equivalent to 100 millicpus.\nSee https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#meaning-of-cpu.", "type": "string", - "format": "int64", + "format": "uint64", "x-order": 1 }, "disk_size": { "description": "Disk size in bytes.", "type": "string", - "format": "int64", + "format": "uint64", "x-order": 2 }, "memory_bytes": { "description": "Memory in bytes.", "type": "string", - "format": "int64", + "format": "uint64", "x-order": 0 } }, diff --git a/api/swagger/swagger-dev.json b/api/swagger/swagger-dev.json index 22e02b855f..1ab0324d6b 100644 --- a/api/swagger/swagger-dev.json +++ b/api/swagger/swagger-dev.json @@ -15866,19 +15866,19 @@ "memory_bytes": { "description": "Memory in bytes.", "type": "string", - "format": "int64", + "format": "uint64", "x-order": 0 }, "cpu_m": { "description": "CPU in millicpus. For example 0.1 of CPU is equivalent to 100 millicpus.\nSee https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#meaning-of-cpu.", "type": "string", - "format": "int64", + "format": "uint64", "x-order": 1 }, "disk_size": { "description": "Disk size in bytes.", "type": "string", - "format": "int64", + "format": "uint64", "x-order": 2 } }, @@ -15891,19 +15891,19 @@ "memory_bytes": { "description": "Memory in bytes.", "type": "string", - "format": "int64", + "format": "uint64", "x-order": 0 }, "cpu_m": { "description": "CPU in millicpus. For example 0.1 of CPU is equivalent to 100 millicpus.\nSee https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#meaning-of-cpu.", "type": "string", - "format": "int64", + "format": "uint64", "x-order": 1 }, "disk_size": { "description": "Disk size in bytes.", "type": "string", - "format": "int64", + "format": "uint64", "x-order": 2 } }, @@ -16320,19 +16320,19 @@ "memory_bytes": { "description": "Memory in bytes.", "type": "string", - "format": "int64", + "format": "uint64", "x-order": 0 }, "cpu_m": { "description": "CPU in millicpus. For example 0.1 of CPU is equivalent to 100 millicpus.\nSee https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#meaning-of-cpu.", "type": "string", - "format": "int64", + "format": "uint64", "x-order": 1 }, "disk_size": { "description": "Disk size in bytes.", "type": "string", - "format": "int64", + "format": "uint64", "x-order": 2 } }, @@ -17242,19 +17242,19 @@ "memory_bytes": { "description": "Memory in bytes.", "type": "string", - "format": "int64", + "format": "uint64", "x-order": 0 }, "cpu_m": { "description": "CPU in millicpus. For example 0.1 of CPU is equivalent to 100 millicpus.\nSee https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#meaning-of-cpu.", "type": "string", - "format": "int64", + "format": "uint64", "x-order": 1 }, "disk_size": { "description": "Disk size in bytes.", "type": "string", - "format": "int64", + "format": "uint64", "x-order": 2 } },