From d0a84fa360b1b0ad5a6323ab00fb8d1527049287 Mon Sep 17 00:00:00 2001 From: Artur Troian Date: Mon, 29 Jan 2024 07:57:03 -0500 Subject: [PATCH] feat: add timestamp to the provider status Signed-off-by: Artur Troian --- docs/proto/provider.md | 1 + go/provider/v1/status.pb.go | 199 ++++++++++++------ make/setup-cache.mk | 6 +- proto/provider/akash/provider/v1/status.proto | 9 + 4 files changed, 143 insertions(+), 72 deletions(-) diff --git a/docs/proto/provider.md b/docs/proto/provider.md index ba74c3cd..5d5707f5 100644 --- a/docs/proto/provider.md +++ b/docs/proto/provider.md @@ -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) | | | diff --git a/go/provider/v1/status.pb.go b/go/provider/v1/status.pb.go index 9ba43570..58c7929b 100644 --- a/go/provider/v1/status.pb.go +++ b/go/provider/v1/status.pb.go @@ -8,16 +8,20 @@ import ( v1 "github.com/akash-network/akash-api/go/inventory/v1" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/gogo/protobuf/proto" + github_com_gogo_protobuf_types "github.com/gogo/protobuf/types" + _ "google.golang.org/protobuf/types/known/timestamppb" io "io" resource "k8s.io/apimachinery/pkg/api/resource" math "math" math_bits "math/bits" + time "time" ) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf +var _ = time.Kitchen // This is a compile-time assertion to ensure that this generated file // is compatible with the proto package it is being compiled against. @@ -456,6 +460,7 @@ type Status struct { BidEngine *BidEngineStatus `protobuf:"bytes,3,opt,name=bid_engine,json=bidEngine,proto3" json:"bid_engine,omitempty" yaml:"bid_engine,omitempty"` Manifest *ManifestStatus `protobuf:"bytes,4,opt,name=manifest,proto3" json:"manifest,omitempty" yaml:"manifest,omitempty"` PublicHostnames []string `protobuf:"bytes,5,rep,name=public_hostnames,json=publicHostnames,proto3" json:"public_hostnames" yaml:"public_hostnames"` + Timestamp time.Time `protobuf:"bytes,6,opt,name=timestamp,proto3,stdtime" json:"timestamp" yaml:"timestamp"` } func (m *Status) Reset() { *m = Status{} } @@ -526,6 +531,13 @@ func (m *Status) GetPublicHostnames() []string { return nil } +func (m *Status) GetTimestamp() time.Time { + if m != nil { + return m.Timestamp + } + return time.Time{} +} + func init() { proto.RegisterType((*ResourcesMetric)(nil), "akash.provider.v1.ResourcesMetric") proto.RegisterMapType((Storage)(nil), "akash.provider.v1.ResourcesMetric.StorageEntry") @@ -542,76 +554,80 @@ func init() { func init() { proto.RegisterFile("akash/provider/v1/status.proto", fileDescriptor_1ba712d181b7fc9b) } var fileDescriptor_1ba712d181b7fc9b = []byte{ - // 1100 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x56, 0x4f, 0x6b, 0x1b, 0xc7, - 0x1b, 0xf6, 0x46, 0xb1, 0x14, 0x8d, 0xed, 0x58, 0x9e, 0x5f, 0xe0, 0xa7, 0x38, 0x45, 0xe3, 0x0e, - 0x04, 0x1c, 0x48, 0x57, 0xd8, 0xc9, 0xc1, 0x4d, 0x09, 0xb4, 0xeb, 0x18, 0x27, 0xb4, 0xa6, 0xce, - 0x84, 0xf4, 0x50, 0x0a, 0x66, 0x25, 0x4d, 0x57, 0x1b, 0x69, 0xff, 0x74, 0x77, 0x56, 0x45, 0x50, - 0x4a, 0xe9, 0xb5, 0x97, 0x7e, 0x8a, 0x1e, 0xfa, 0x39, 0x7a, 0xf0, 0x31, 0xc7, 0x42, 0xe9, 0xb4, - 0xc8, 0x87, 0x52, 0x1d, 0xd5, 0x5b, 0x4f, 0x65, 0x76, 0xde, 0xfd, 0x23, 0x59, 0x10, 0xe2, 0xdb, - 0xce, 0xfb, 0xcc, 0x3c, 0xcf, 0xf3, 0xce, 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0x55, 0x3f, 0xe1, 0x76, 0xcc, 0x63, 0xfc, 0x18, 0x55, 0xed, 0xae, 0x70, 0x47, 0x3c, 0x15, 0xda, - 0xb0, 0xee, 0xaa, 0x4e, 0xfa, 0x28, 0x8d, 0xa8, 0x4e, 0xd2, 0x58, 0xd1, 0x49, 0x7a, 0x4c, 0x19, - 0x00, 0xf4, 0x17, 0x03, 0x61, 0xc6, 0x63, 0x1e, 0x8d, 0x6c, 0xe1, 0x06, 0x7e, 0x76, 0x6e, 0x0e, - 0xd0, 0x6a, 0x37, 0x48, 0x7c, 0x01, 0xa4, 0x74, 0x22, 0xc9, 0xea, 0xa1, 0x0a, 0x4c, 0x25, 0xd1, - 0xc8, 0x4c, 0x92, 0x75, 0x38, 0x09, 0x6a, 0x48, 0x99, 0x0e, 0x63, 0x81, 0xea, 0x99, 0xf3, 0x18, - 0xf2, 0xa4, 0x6f, 0xae, 0x83, 0xb5, 0x7f, 0x2e, 0xc9, 0xca, 0x44, 0x92, 0x7a, 0x0e, 0x4c, 0x25, - 0x29, 0x98, 0x66, 0x92, 0x34, 0xb4, 0x5a, 0x1e, 0xa2, 0xac, 0x80, 0xe9, 0x5f, 0x06, 0x5a, 0x2f, - 0xa7, 0x81, 0x3d, 0x54, 0x0b, 0xb9, 0xdf, 0x73, 0x7d, 0x07, 0x0e, 0xff, 0xdd, 0xe5, 0x26, 0x16, - 0x12, 0xb7, 0xee, 0x83, 0x8f, 0xda, 0xa9, 0x5e, 0xad, 0xda, 0x00, 0x88, 0x8a, 0x36, 0x80, 0x00, - 0x65, 0x19, 0x84, 0xfb, 0x79, 0x15, 0xae, 0xbd, 0x8d, 0xda, 0x3d, 0x50, 0x7b, 0x8b, 0x82, 0xfd, - 0x63, 0xa0, 0xfa, 0xb3, 0xec, 0xea, 0xc4, 0x5d, 0x54, 0x83, 0xab, 0x13, 0xd2, 0xbc, 0x03, 0xc2, - 0xf9, 0xed, 0xaa, 0x94, 0x0f, 0xf5, 0x94, 0x22, 0x39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a9, 0xb2, 0x2f, 0x4e, 0x2f, 0xca, 0xbe, 0x88, 0x50, 0xb6, 0x19, - 0xce, 0xaf, 0xb7, 0x3e, 0x3e, 0x9f, 0xb4, 0x8c, 0xd7, 0x93, 0x96, 0xf1, 0xe7, 0xa4, 0x65, 0xfc, - 0x78, 0xd1, 0x5a, 0x79, 0x7d, 0xd1, 0x5a, 0xf9, 0xf5, 0xa2, 0xb5, 0xf2, 0xf9, 0x9e, 0xe3, 0x8a, - 0x7e, 0xd2, 0x31, 0xbb, 0x81, 0xd7, 0x4e, 0x37, 0xe1, 0x3d, 0x9f, 0x8b, 0xaf, 0x83, 0x68, 0x00, - 0x23, 0xf5, 0xb3, 0xe8, 0x04, 0xe5, 0x1f, 0xd6, 0x4e, 0x35, 0xfd, 0x53, 0x7c, 0xf0, 0x5f, 0x00, - 0x00, 0x00, 0xff, 0xff, 0xf4, 0x46, 0x2e, 0xd3, 0xcc, 0x0a, 0x00, 0x00, + // 1160 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x56, 0xcf, 0x6f, 0x1b, 0x45, + 0x14, 0xce, 0xd6, 0xb5, 0x5d, 0x4f, 0xd2, 0xc6, 0x19, 0x2a, 0xe1, 0xa6, 0xc8, 0x13, 0x46, 0xaa, + 0x94, 0x4a, 0x65, 0x57, 0x49, 0x2b, 0x14, 0x8a, 0x2a, 0xc1, 0xa6, 0x51, 0x5a, 0x41, 0x44, 0x3a, + 0xa5, 0x1c, 0x10, 0x52, 0xb4, 0xb6, 0xa7, 0xeb, 0xad, 0xbd, 0x3b, 0xcb, 0xee, 0xac, 0x91, 0x25, + 0x84, 0x10, 0x57, 0x2e, 0xfd, 0x2b, 0x38, 0xf0, 0x77, 0x70, 0xc8, 0x05, 0xa9, 0x47, 0x2e, 0x4c, + 0x91, 0x73, 0x40, 0xf8, 0x68, 0x6e, 0x9c, 0xd0, 0xec, 0xcc, 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xf4, 0x6d, 0xe3, 0x1c, 0x87, 0x49, 0xee, 0x0b, 0x7d, 0xd0, + 0x0c, 0x93, 0xce, 0xd0, 0xeb, 0x9e, 0xf4, 0x59, 0xcc, 0x03, 0xc7, 0xa7, 0x71, 0xfa, 0xbf, 0x6d, + 0xd8, 0xf6, 0x44, 0xa0, 0xf5, 0xe3, 0x94, 0x7b, 0x94, 0x51, 0xb2, 0xed, 0x8b, 0xe1, 0x45, 0xdb, + 0x17, 0x19, 0x4c, 0xd6, 0xc3, 0xf9, 0xfd, 0x30, 0x04, 0x8d, 0xfc, 0x5a, 0xd9, 0xaa, 0xa5, 0x35, + 0x6f, 0x9a, 0xea, 0xe2, 0x69, 0x66, 0x17, 0x4f, 0xf3, 0xcb, 0x2c, 0xc2, 0xfe, 0x30, 0x3b, 0x87, + 0x39, 0x24, 0xcf, 0x61, 0xae, 0x50, 0x9c, 0xc3, 0x1c, 0xc2, 0x2f, 0x5f, 0x23, 0x83, 0x14, 0x21, + 0xf6, 0x67, 0xa7, 0x93, 0xb6, 0xf1, 0x6a, 0xd2, 0x36, 0xfe, 0x9a, 0xb4, 0x8d, 0x97, 0x67, 0xed, + 0x95, 0x57, 0x67, 0xed, 0x95, 0x3f, 0xce, 0xda, 0x2b, 0x5f, 0xef, 0xb8, 0x1e, 0xef, 0x27, 0x1d, + 0xb3, 0xcb, 0x7c, 0x2b, 0x7d, 0xed, 0x1f, 0x04, 0x94, 0x7f, 0xc7, 0xa2, 0x81, 0x5e, 0xc9, 0xeb, + 0xa9, 0xcb, 0xca, 0x77, 0xe8, 0x4e, 0x2d, 0xcd, 0xf1, 0xee, 0xff, 0x01, 0x00, 0x00, 0xff, 0xff, + 0xa8, 0x57, 0xf0, 0x94, 0x5f, 0x0b, 0x00, 0x00, } func (m *ResourcesMetric) Marshal() (dAtA []byte, err error) { @@ -982,6 +998,14 @@ func (m *Status) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + n13, err13 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.Timestamp, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.Timestamp):]) + if err13 != nil { + return 0, err13 + } + i -= n13 + i = encodeVarintStatus(dAtA, i, uint64(n13)) + i-- + dAtA[i] = 0x32 if len(m.PublicHostnames) > 0 { for iNdEx := len(m.PublicHostnames) - 1; iNdEx >= 0; iNdEx-- { i -= len(m.PublicHostnames[iNdEx]) @@ -1207,6 +1231,8 @@ func (m *Status) Size() (n int) { n += 1 + l + sovStatus(uint64(l)) } } + l = github_com_gogo_protobuf_types.SizeOfStdTime(m.Timestamp) + n += 1 + l + sovStatus(uint64(l)) return n } @@ -2397,6 +2423,39 @@ func (m *Status) Unmarshal(dAtA []byte) error { } m.PublicHostnames = append(m.PublicHostnames, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowStatus + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthStatus + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthStatus + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.Timestamp, dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipStatus(dAtA[iNdEx:]) diff --git a/make/setup-cache.mk b/make/setup-cache.mk index a4597138..b3e23c19 100644 --- a/make/setup-cache.mk +++ b/make/setup-cache.mk @@ -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 $@)" diff --git a/proto/provider/akash/provider/v1/status.proto b/proto/provider/akash/provider/v1/status.proto index 8877dbc5..d0a304e7 100644 --- a/proto/provider/akash/provider/v1/status.proto +++ b/proto/provider/akash/provider/v1/status.proto @@ -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"; @@ -175,4 +176,12 @@ message Status { (gogoproto.jsontag) = "public_hostnames", (gogoproto.moretags) = "yaml:\"public_hostnames\"" ]; + + google.protobuf.Timestamp timestamp = 6 [ + (gogoproto.nullable) = false, + (gogoproto.stdtime) = true, + (gogoproto.customname) = "Timestamp", + (gogoproto.jsontag) = "timestamp", + (gogoproto.moretags) = "yaml:\"timestamp\"" + ]; }