Skip to content

Commit ac0a256

Browse files
authored
[Maintenance] Lint Protos (#1748)
1 parent cd4f7a3 commit ac0a256

File tree

14 files changed

+70
-58
lines changed

14 files changed

+70
-58
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
- (Feature) Helm Client Support
66
- (Feature) Helm Client Extension
77
- (Feature) (Integration) SchedulerV2 Definition
8+
- (Maintenance) Proto Lint
89

910
## [1.2.43](https://github.com/arangodb/kube-arangodb/tree/1.2.43) (2024-10-14)
1011
- (Feature) ArangoRoute CRD

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -939,6 +939,6 @@ sync-charts:
939939
sync: sync-charts
940940

941941
ci-check:
942-
@$(MAKE) tidy vendor generate update-generated synchronize-v2alpha1-with-v1 sync fmt yamlfmt license
942+
@$(MAKE) tidy vendor generate update-generated synchronize-v2alpha1-with-v1 sync fmt yamlfmt license protolint
943943
@git checkout -- go.sum # ignore changes in go.sum
944944
@if [ ! -z "$(git status --porcelain)" ]; then echo "There are uncommited changes!"; git status; exit 1; fi

integrations/config/v1/definition/config.pb.go

Lines changed: 37 additions & 38 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

integrations/config/v1/definition/config.proto

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,11 @@ option go_package = "github.com/arangodb/kube-arangodb/integrations/config/v1/de
3030

3131
// ConfigV1 Service implementation
3232
service ConfigV1 {
33+
// Returns list of registered modules
3334
rpc Modules(shared.Empty) returns (ConfigV1ModulesResponse);
35+
// Returns details of the module
3436
rpc ModuleDetails(ConfigV1ModuleDetailsRequest) returns (ConfigV1ModuleDetailsResponse);
37+
// Returns file details
3538
rpc FileDetails(ConfigV1FileDetailsRequest) returns (ConfigV1FileDetailsResponse);
3639
}
3740

@@ -99,8 +102,8 @@ message ConfigV1File {
99102
optional string checksum = 3;
100103

101104
// Timestamp of the file creation
102-
google.protobuf.Timestamp created_at = 4;
105+
google.protobuf.Timestamp created = 4;
103106

104107
// Timestamp of the file update
105-
google.protobuf.Timestamp updated_at = 5;
108+
google.protobuf.Timestamp updated = 5;
106109
}

integrations/config/v1/definition/config_grpc.pb.go

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

integrations/config/v1/impl_darwin.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ func (i *impl) fileDetails(module ModuleDefinition, file string, checksum bool)
6464

6565
f.Path = strings.TrimPrefix(expectedPath, fmt.Sprintf("%s/", module.Path))
6666
f.Size = finfo.Size
67-
f.CreatedAt = timestamppb.New(time.Unix(finfo.Ctimespec.Sec, finfo.Ctimespec.Nsec))
68-
f.UpdatedAt = timestamppb.New(time.Unix(finfo.Mtimespec.Sec, finfo.Mtimespec.Nsec))
67+
f.Created = timestamppb.New(time.Unix(finfo.Ctimespec.Sec, finfo.Ctimespec.Nsec))
68+
f.Updated = timestamppb.New(time.Unix(finfo.Mtimespec.Sec, finfo.Mtimespec.Nsec))
6969

7070
if checksum {
7171
c, err := util.SHA256FromFile(expectedPath)

integrations/config/v1/impl_linux.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ func (i *impl) fileDetails(module ModuleDefinition, file string, checksum bool)
6464

6565
f.Path = strings.TrimPrefix(expectedPath, fmt.Sprintf("%s/", module.Path))
6666
f.Size = finfo.Size
67-
f.CreatedAt = timestamppb.New(time.Unix(finfo.Ctim.Sec, finfo.Ctim.Nsec))
68-
f.UpdatedAt = timestamppb.New(time.Unix(finfo.Mtim.Sec, finfo.Mtim.Nsec))
67+
f.Created = timestamppb.New(time.Unix(finfo.Ctim.Sec, finfo.Ctim.Nsec))
68+
f.Updated = timestamppb.New(time.Unix(finfo.Mtim.Sec, finfo.Mtim.Nsec))
6969

7070
if checksum {
7171
c, err := util.SHA256FromFile(expectedPath)

integrations/pong/v1/definition/pong.proto

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ option go_package = "github.com/arangodb/kube-arangodb/integrations/pong/v1/defi
3030

3131
// PongV1 Service implementation
3232
service PongV1 {
33+
// Sends ping to the server
3334
rpc Ping(shared.Empty) returns (PongV1PingResponse);
3435
}
3536

integrations/pong/v1/definition/pong_grpc.pb.go

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

integrations/scheduler/v1/definition/common.proto

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,10 @@ message StatusMetadata {
7272
bool created = 1;
7373

7474
// Defines checksum
75-
optional string checksum =2;
75+
optional string checksum = 2;
7676

7777
// Defines uid
78-
optional string uid =3;
78+
optional string uid = 3;
7979

8080
// Defiles list of applied profiles
8181
repeated string profiles = 4;

0 commit comments

Comments
 (0)