Skip to content

Commit

Permalink
chore!: run buf format, fix capitalization of proto fields
Browse files Browse the repository at this point in the history
  • Loading branch information
bojidar-bg committed Oct 7, 2024
1 parent a49db43 commit cd739e5
Show file tree
Hide file tree
Showing 7 changed files with 33 additions and 34 deletions.
8 changes: 4 additions & 4 deletions proto/autoscaler.proto
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@
syntax = "proto3";
package apocryph.proto.v0.autoscaler;

option go_package = "github.com/comrade-coop/apocryph/pkg/proto";

import "google/protobuf/empty.proto";

option go_package = "github.com/comrade-coop/apocryph/pkg/proto";

service AutoscalerService {
rpc ConnectCluster(ConnectClusterRequest) returns (ConnectClusterResponse);
rpc TriggerNode(ConnectClusterRequest) returns (TriggerNodeResponse);
}

message ConnectClusterRequest {
// could get it from within the cluster maybe?
// could get it from within the cluster maybe?
string nodeGateway = 1;
repeated string servers = 2;
uint32 timeout = 3;
Expand All @@ -25,5 +25,5 @@ message ConnectClusterResponse {
}

message TriggerNodeResponse {
string peerID =1;
string peerID = 1;
}
6 changes: 3 additions & 3 deletions proto/deployment.proto
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@

syntax = "proto3";
package apocryph.proto.v0.deployment;
option go_package = "github.com/comrade-coop/apocryph/pkg/proto";

import "provision-pod.proto";
import "pod.proto";
import "provision-pod.proto";

option go_package = "github.com/comrade-coop/apocryph/pkg/proto";

message Deployment {
string podManifestFile = 1;
Expand All @@ -15,7 +16,6 @@ message Deployment {
repeated UploadedSecret secrets = 5;
provisionPod.ProvisionPodResponse deployed = 6;
pod.KeyPair keyPair = 7;

}

message ProviderConfig {
Expand Down
20 changes: 10 additions & 10 deletions proto/pod.proto
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ message Container {
map<string, string> env = 7;
repeated VolumeMount volumes = 8;
repeated Resource resourceRequests = 9; // "cpu", "memory", custom

message Port {
string name = 1;
uint64 containerPort = 2;
Expand Down Expand Up @@ -51,9 +51,9 @@ message Image {
}

message VerificationDetails {
string signature = 1;
string identity = 2;
string issuer = 3;
string signature = 1;
string identity = 2;
string issuer = 3;
}

message Volume {
Expand Down Expand Up @@ -105,11 +105,11 @@ message Key {
}

message KeyPair {
string privateKey= 2;
string pubAddress = 3;
string privateKey = 2;
string pubAddress = 3;
}
message VerificationSettings{
bool ForcePolicy = 1;
bool PublicVerifiability = 2;
string VerificationHost = 3;
message VerificationSettings {
bool forcePolicy = 1;
bool publicVerifiability = 2;
string verificationHost = 3;
}
24 changes: 12 additions & 12 deletions proto/provision-pod.proto
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
syntax = "proto3";
package apocryph.proto.v0.provisionPod;

option go_package = "github.com/comrade-coop/apocryph/pkg/proto";
import "pod.proto";

option go_package = "github.com/comrade-coop/apocryph/pkg/proto";

service ProvisionPodService {
rpc ProvisionPod(ProvisionPodRequest) returns (ProvisionPodResponse);
rpc UpdatePod(UpdatePodRequest) returns (ProvisionPodResponse);
Expand All @@ -19,12 +20,11 @@ message ProvisionPodRequest {
PaymentChannel payment = 3;
}

message DeletePodRequest {
}
message DeletePodRequest {}

message DeletePodResponse {
bool success = 1;
string error = 2;
bool success = 1;
string error = 2;
}

message UpdatePodRequest {
Expand Down Expand Up @@ -56,23 +56,23 @@ message ProvisionPodResponse {
}
}

message PodLogRequest{
message PodLogRequest {
string ContainerName = 1;
}

message PodLogResponse{
LogEntry logEntry = 1;
message PodLogResponse {
LogEntry logEntry = 1;
}

message LogEntry{
message LogEntry {
uint64 NanosecondsUnixEpoch = 1;
string line= 2;
string line = 2;
}

message PodInfoRequest{
message PodInfoRequest {
string namespace = 1;
}

message PodInfoResponse{
message PodInfoResponse {
string info = 1;
}
3 changes: 1 addition & 2 deletions proto/registry.proto
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,10 @@ option go_package = "github.com/comrade-coop/apocryph/pkg/proto";
message HostInfo {
repeated string multiaddrs = 1;
repeated Region regions = 2;

message Region {
string name = 1;
string zone = 2;
uint32 num = 3;
}
}

2 changes: 1 addition & 1 deletion test/e2e/common/manifests/manifest-attestation-hello.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ replicas:
min: 1
max: 1
verificationSettings:
ImageVerification: true
imageVerification: true
4 changes: 2 additions & 2 deletions test/e2e/common/manifests/manifest-attestation-nginx.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ replicas:
min: 1
max: 1
verificationSettings:
ForcePolicy: true
PublicVerifiability: true
forcePolicy: true
publicVerifiability: true

0 comments on commit cd739e5

Please sign in to comment.