Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add conditions field to GetLeaseResponse #8

Merged
merged 1 commit into from
Oct 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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;
}