Skip to content

Commit

Permalink
feat: bump buf version & rework cache structure
Browse files Browse the repository at this point in the history
Signed-off-by: Matthis Holleville <matthish29@gmail.com>
  • Loading branch information
matthisholleville committed Nov 14, 2023
1 parent 8dc6bb3 commit ee5a662
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
BUF_VERSION=v1.6.0
BUF_VERSION=v1.28.0
TAG=protobuf-v0.1.4
guard-%:
@ if [ "${${*}}" = "" ]; then \
Expand Down
22 changes: 19 additions & 3 deletions protobuf/schema/v1/schema.proto
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,27 @@ message RemoveConfigResponse {
}

message Cache {

Check failure on line 77 in protobuf/schema/v1/schema.proto

View workflow job for this annotation

GitHub Actions / buf-breaking-changes

Previously present field "4" with name "container_name" on message "Cache" was deleted.
oneof cache_type {
S3Cache s3_cache = 1;

Check failure on line 79 in protobuf/schema/v1/schema.proto

View workflow job for this annotation

GitHub Actions / buf-breaking-changes

Field "1" with name "s3_cache" on message "Cache" changed option "json_name" from "region" to "s3Cache".

Check failure on line 79 in protobuf/schema/v1/schema.proto

View workflow job for this annotation

GitHub Actions / buf-breaking-changes

Field "1" on message "Cache" moved from outside to inside a oneof.

Check failure on line 79 in protobuf/schema/v1/schema.proto

View workflow job for this annotation

GitHub Actions / buf-breaking-changes

Field "1" on message "Cache" changed type from "string" to "message".

Check failure on line 79 in protobuf/schema/v1/schema.proto

View workflow job for this annotation

GitHub Actions / buf-breaking-changes

Field "1" on message "Cache" changed name from "region" to "s3_cache".
AzureCache azure_cache = 2;

Check failure on line 80 in protobuf/schema/v1/schema.proto

View workflow job for this annotation

GitHub Actions / buf-breaking-changes

Field "2" with name "azure_cache" on message "Cache" changed option "json_name" from "bucketName" to "azureCache".

Check failure on line 80 in protobuf/schema/v1/schema.proto

View workflow job for this annotation

GitHub Actions / buf-breaking-changes

Field "2" on message "Cache" moved from outside to inside a oneof.

Check failure on line 80 in protobuf/schema/v1/schema.proto

View workflow job for this annotation

GitHub Actions / buf-breaking-changes

Field "2" on message "Cache" changed type from "string" to "message".

Check failure on line 80 in protobuf/schema/v1/schema.proto

View workflow job for this annotation

GitHub Actions / buf-breaking-changes

Field "2" on message "Cache" changed name from "bucket_name" to "azure_cache".
GCSCache gcs_cache = 3;

Check failure on line 81 in protobuf/schema/v1/schema.proto

View workflow job for this annotation

GitHub Actions / buf-breaking-changes

Field "3" with name "gcs_cache" on message "Cache" changed option "json_name" from "storageAccount" to "gcsCache".
}
}

message S3Cache {
string region = 1;
string bucket_name = 2;
}

message AzureCache {
string storage_account = 1;
string container_name = 2;
}

message GCSCache {
string region = 1;
string bucket_name = 2;
string storage_account = 3;
string container_name = 4;
string project_id = 5;
string project_id = 3;
}

message Trivy {
Expand Down

0 comments on commit ee5a662

Please sign in to comment.