Skip to content

Commit

Permalink
feat: add timestamp to the provider status
Browse files Browse the repository at this point in the history
Signed-off-by: Artur Troian <[email protected]>
  • Loading branch information
troian committed Jan 29, 2024
1 parent 611df65 commit 8488acc
Show file tree
Hide file tree
Showing 4 changed files with 146 additions and 77 deletions.
1 change: 1 addition & 0 deletions docs/proto/provider.md
Original file line number Diff line number Diff line change
Expand Up @@ -604,6 +604,7 @@
| `bid_engine` | [BidEngineStatus](#akash.provider.v1.BidEngineStatus) | | |
| `manifest` | [ManifestStatus](#akash.provider.v1.ManifestStatus) | | |
| `public_hostnames` | [string](#string) | repeated | |
| `timestamp` | [google.protobuf.Timestamp](#google.protobuf.Timestamp) | | |



Expand Down
208 changes: 133 additions & 75 deletions go/provider/v1/status.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions make/setup-cache.mk
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,11 @@ $(PROTOC_VERSION_FILE): $(AKASH_DEVCACHE)
(cd /tmp; \
curl -sOL "https://github.com/protocolbuffers/protobuf/releases/download/v${PROTOC_VERSION}/${PROTOC_ZIP}"; \
unzip -oq ${PROTOC_ZIP} -d $(AKASH_DEVCACHE) bin/protoc; \
unzip -oq ${PROTOC_ZIP} -d $(AKASH_DEVCACHE) 'include/google/protobuf/descriptor.proto' \
unzip -oq ${PROTOC_ZIP} -d $(AKASH_DEVCACHE) \
'include/google/protobuf/descriptor.proto' \
'include/google/protobuf/struct.proto' \
'include/google/protobuf/empty.proto'; \
'include/google/protobuf/empty.proto' \
'include/google/protobuf/timestamp.proto'; \
rm -f ${PROTOC_ZIP})
rm -rf "$(dir $@)"
mkdir -p "$(dir $@)"
Expand Down
8 changes: 8 additions & 0 deletions proto/provider/akash/provider/v1/status.proto
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
syntax = "proto3";
package akash.provider.v1;

import "google/protobuf/timestamp.proto";
import "gogoproto/gogo.proto";
import "akash/inventory/v1/cluster.proto";
import "k8s.io/apimachinery/pkg/api/resource/generated.proto";
Expand Down Expand Up @@ -175,4 +176,11 @@ message Status {
(gogoproto.jsontag) = "public_hostnames",
(gogoproto.moretags) = "yaml:\"public_hostnames\""
];

google.protobuf.Timestamp timestamp = 6 [
(gogoproto.nullable) = false,
(gogoproto.customname) = "Timestamp",
(gogoproto.jsontag) = "timestamp",
(gogoproto.moretags) = "yaml:\"timestamp\""
];
}

0 comments on commit 8488acc

Please sign in to comment.