Skip to content

Commit

Permalink
Merge pull request #8 from jumpstarter-dev/enrich-lease
Browse files Browse the repository at this point in the history
Add conditions field to GetLeaseResponse
  • Loading branch information
mangelajo authored Oct 1, 2024
2 parents 731d40a + 37725bd commit 435034e
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions buf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ lint:
- STANDARD
except:
- ENUM_ZERO_VALUE_SUFFIX
- FIELD_LOWER_SNAKE_CASE
rpc_allow_same_request_response: true
rpc_allow_google_protobuf_empty_requests: true
rpc_allow_google_protobuf_empty_responses: true
Expand Down
1 change: 1 addition & 0 deletions proto/jumpstarter/v1/jumpstarter.proto
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ message GetLeaseResponse {
optional google.protobuf.Timestamp begin_time = 3;
optional google.protobuf.Timestamp end_time = 4;
optional string exporter_uuid = 5;
repeated Condition conditions = 6;
}

message RequestLeaseRequest {
Expand Down
15 changes: 15 additions & 0 deletions proto/jumpstarter/v1/kubernetes.proto
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,18 @@ message LabelSelector {
repeated LabelSelectorRequirement match_expressions = 1;
map<string, string> match_labels = 2;
}

// Reference: https://github.com/kubernetes/kubernetes/blob/v1.31.1/staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto
message Time {
optional int64 seconds = 1;
optional int32 nanos = 2;
}

message Condition {
optional string type = 1;
optional string status = 2;
optional int64 observedGeneration = 3;
optional Time lastTransitionTime = 4;
optional string reason = 5;
optional string message = 6;
}

0 comments on commit 435034e

Please sign in to comment.