Skip to content

Commit c7ebbfb

Browse files
committed
drop servicegenerater and use fds to inject into files
Signed-off-by: clux <[email protected]>
1 parent 80289eb commit c7ebbfb

File tree

67 files changed

+101
-50
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+101
-50
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
/target
22
Cargo.lock
3+
protos.fds

Cargo.toml

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ edition = "2018"
77
[dependencies]
88
bytes = "1.0.1"
99
prost = "0.8.0"
10-
prost-types = "0.8"
1110

1211
[build-dependencies]
1312
prost-build = "0.8.0"
13+
prost-types = "0.8.0"
14+
prost = "0.8.0"

README.md

+1-1

build.rs

+22-47
Original file line numberDiff line numberDiff line change
@@ -1,58 +1,33 @@
1-
use std::cell::RefCell;
2-
use std::rc::Rc;
3-
4-
#[derive(Default)]
5-
struct GeneratorState {
6-
service_names: Vec<String>,
7-
finalized: usize,
8-
generated: usize
9-
}
10-
11-
struct KubeGenerator {
12-
data: String,
13-
state: Rc<RefCell<GeneratorState>>,
14-
}
15-
impl KubeGenerator {
16-
fn new(state: Rc<RefCell<GeneratorState>>) -> Self {
17-
let data = std::fs::read_to_string("./openapi/api-resources.json").unwrap();
18-
Self { data, state }
19-
}
20-
}
21-
22-
impl prost_build::ServiceGenerator for KubeGenerator {
23-
fn generate(&mut self, service: prost_build::Service, buf: &mut String) {
24-
let mut state = self.state.borrow_mut();
25-
state.service_names.push(service.name);
26-
state.generated += 1;
27-
// TODO: THIS doesn't work? never called by prost_build, bug?
28-
let generics = format!("// TODO: generate\n");
29-
buf.push_str(&generics);
30-
}
31-
32-
fn finalize(&mut self, buf: &mut String) {
33-
let mut state = self.state.borrow_mut();
34-
state.finalized += 1;
35-
// NB: THIS works, but we need a name here before it's useful
36-
//let generics = format!("// TODO: finalize\n");
37-
//buf.push_str(&generics);
38-
}
39-
}
1+
use prost_types::{FileDescriptorProto, FileDescriptorSet};
2+
use prost::Message;
403

414
fn main() -> std::io::Result<()> {
42-
let protos: Vec<&str> = include_str!(concat!(env!("CARGO_MANIFEST_DIR"), "/protos.list"))
5+
let protos = include_str!(concat!(env!("CARGO_MANIFEST_DIR"), "/protos.list"))
436
.lines()
44-
.collect();
7+
.collect::<Vec<&str>>();
458

46-
let state = Rc::new(RefCell::new(GeneratorState::default()));
479
prost_build::Config::new()
48-
.service_generator(Box::new(KubeGenerator::new(Rc::clone(&state))))
10+
// should probably switch to this
11+
//.btree_map(&["."])
4912
.out_dir("./out")
5013
.compile_protos(protos.as_slice(), &["protos/"])?;
5114

52-
// sanity
53-
let state = state.borrow();
54-
assert_eq!(state.finalized, protos.len());
55-
assert_eq!(state.generated, protos.len()); // TODO: why does generate not trigger
15+
let apis = std::fs::read_to_string("./openapi/api-resources.json")?;
16+
17+
let buf = std::fs::read("./protos.fds").unwrap();
18+
let fds = FileDescriptorSet::decode(&*buf).unwrap(); // pulls in proto::Message
19+
20+
// NB: FDS fields: https://github.com/tokio-rs/prost/blob/32bc87cd0b7301f6af1a338e9afd7717d0f42ca9/prost-types/src/protobuf.rs#L1-L7
21+
// FDS usage: https://github.com/tokio-rs/prost/blob/32bc87cd0b7301f6af1a338e9afd7717d0f42ca9/prost-build/src/lib.rs#L765-L825
22+
for f in fds.file {
23+
use std::io::Write;
24+
if let Some(pkg) = f.package {
25+
let pkgpath = std::path::Path::new("./out").join(format!("{}.rs", pkg));
26+
let generics = format!("// TODO genericsfor {}\n", pkg);
27+
let mut file = std::fs::OpenOptions::new().write(true).append(true).open(&pkgpath)?;
28+
file.write(generics.as_bytes())?;
29+
}
30+
}
5631

5732
// Generate code in `src/` by reading files in `OUT_DIR`?
5833
// Need to create `mod.rs` file for each level based on the filename, and write generated code in correct file.

justfile

+13-1
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,20 @@ swagger-transform:
6161
# Download and generate all swagger dependent files
6262
swagger: swagger-dl swagger-patch swagger-transform
6363

64+
# Build a FileDescriptorSet for custom code generation
65+
build-fds:
66+
#!/usr/bin/env bash
67+
set -exuo pipefail
68+
shopt -s globstar
69+
protoc \
70+
--include_imports \
71+
--include_source_info \
72+
--descriptor_set_out=protos.fds \
73+
--proto_path=./protos \
74+
./protos/**/*.proto
75+
6476
# Generate the library code from completed swagger and protos
65-
build:
77+
build: build-fds
6678
#!/usr/bin/env bash
6779
set -exuo pipefail
6880
rm -rf out/ && mkdir out

out/api.admission.v1.rs

+1
Original file line numberDiff line numberDiff line change
@@ -137,3 +137,4 @@ pub struct AdmissionReview {
137137
#[prost(message, optional, tag="2")]
138138
pub response: ::core::option::Option<AdmissionResponse>,
139139
}
140+
// TODO genericsfor api.admission.v1

out/api.admission.v1beta1.rs

+1
Original file line numberDiff line numberDiff line change
@@ -137,3 +137,4 @@ pub struct AdmissionReview {
137137
#[prost(message, optional, tag="2")]
138138
pub response: ::core::option::Option<AdmissionResponse>,
139139
}
140+
// TODO genericsfor api.admission.v1beta1

out/api.admissionregistration.v1.rs

+1
Original file line numberDiff line numberDiff line change
@@ -457,3 +457,4 @@ pub struct WebhookClientConfig {
457457
#[prost(bytes="vec", optional, tag="2")]
458458
pub ca_bundle: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
459459
}
460+
// TODO genericsfor api.admissionregistration.v1

out/api.admissionregistration.v1beta1.rs

+1
Original file line numberDiff line numberDiff line change
@@ -465,3 +465,4 @@ pub struct WebhookClientConfig {
465465
#[prost(bytes="vec", optional, tag="2")]
466466
pub ca_bundle: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
467467
}
468+
// TODO genericsfor api.admissionregistration.v1beta1

out/api.apiserverinternal.v1alpha1.rs

+1
Original file line numberDiff line numberDiff line change
@@ -97,3 +97,4 @@ pub struct StorageVersionStatus {
9797
#[prost(message, repeated, tag="3")]
9898
pub conditions: ::prost::alloc::vec::Vec<StorageVersionCondition>,
9999
}
100+
// TODO genericsfor api.apiserverinternal.v1alpha1

out/api.apps.v1.rs

+1
Original file line numberDiff line numberDiff line change
@@ -737,3 +737,4 @@ pub struct StatefulSetUpdateStrategy {
737737
#[prost(message, optional, tag="2")]
738738
pub rolling_update: ::core::option::Option<RollingUpdateStatefulSetStrategy>,
739739
}
740+
// TODO genericsfor api.apps.v1

out/api.apps.v1beta1.rs

+1
Original file line numberDiff line numberDiff line change
@@ -484,3 +484,4 @@ pub struct StatefulSetUpdateStrategy {
484484
#[prost(message, optional, tag="2")]
485485
pub rolling_update: ::core::option::Option<RollingUpdateStatefulSetStrategy>,
486486
}
487+
// TODO genericsfor api.apps.v1beta1

out/api.apps.v1beta2.rs

+1
Original file line numberDiff line numberDiff line change
@@ -785,3 +785,4 @@ pub struct StatefulSetUpdateStrategy {
785785
#[prost(message, optional, tag="2")]
786786
pub rolling_update: ::core::option::Option<RollingUpdateStatefulSetStrategy>,
787787
}
788+
// TODO genericsfor api.apps.v1beta2

out/api.authentication.v1.rs

+1
Original file line numberDiff line numberDiff line change
@@ -165,3 +165,4 @@ pub struct UserInfo {
165165
#[prost(map="string, message", tag="4")]
166166
pub extra: ::std::collections::HashMap<::prost::alloc::string::String, ExtraValue>,
167167
}
168+
// TODO genericsfor api.authentication.v1

out/api.authentication.v1beta1.rs

+1
Original file line numberDiff line numberDiff line change
@@ -93,3 +93,4 @@ pub struct UserInfo {
9393
#[prost(map="string, message", tag="4")]
9494
pub extra: ::std::collections::HashMap<::prost::alloc::string::String, ExtraValue>,
9595
}
96+
// TODO genericsfor api.authentication.v1beta1

out/api.authorization.v1.rs

+1
Original file line numberDiff line numberDiff line change
@@ -263,3 +263,4 @@ pub struct SubjectRulesReviewStatus {
263263
#[prost(string, optional, tag="4")]
264264
pub evaluation_error: ::core::option::Option<::prost::alloc::string::String>,
265265
}
266+
// TODO genericsfor api.authorization.v1

out/api.authorization.v1beta1.rs

+1
Original file line numberDiff line numberDiff line change
@@ -263,3 +263,4 @@ pub struct SubjectRulesReviewStatus {
263263
#[prost(string, optional, tag="4")]
264264
pub evaluation_error: ::core::option::Option<::prost::alloc::string::String>,
265265
}
266+
// TODO genericsfor api.authorization.v1beta1

out/api.autoscaling.v1.rs

+1
Original file line numberDiff line numberDiff line change
@@ -482,3 +482,4 @@ pub struct ScaleStatus {
482482
#[prost(string, optional, tag="2")]
483483
pub selector: ::core::option::Option<::prost::alloc::string::String>,
484484
}
485+
// TODO genericsfor api.autoscaling.v1

out/api.autoscaling.v2beta1.rs

+1
Original file line numberDiff line numberDiff line change
@@ -459,3 +459,4 @@ pub struct ResourceMetricStatus {
459459
#[prost(message, optional, tag="3")]
460460
pub current_average_value: ::core::option::Option<super::super::super::apimachinery::pkg::api::resource::Quantity>,
461461
}
462+
// TODO genericsfor api.autoscaling.v2beta1

out/api.autoscaling.v2beta2.rs

+1
Original file line numberDiff line numberDiff line change
@@ -483,3 +483,4 @@ pub struct ResourceMetricStatus {
483483
#[prost(message, optional, tag="2")]
484484
pub current: ::core::option::Option<MetricValueStatus>,
485485
}
486+
// TODO genericsfor api.autoscaling.v2beta2

out/api.batch.v1.rs

+1
Original file line numberDiff line numberDiff line change
@@ -348,3 +348,4 @@ pub struct UncountedTerminatedPods {
348348
#[prost(string, repeated, tag="2")]
349349
pub failed: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
350350
}
351+
// TODO genericsfor api.batch.v1

out/api.batch.v1beta1.rs

+1
Original file line numberDiff line numberDiff line change
@@ -114,3 +114,4 @@ pub struct JobTemplateSpec {
114114
#[prost(message, optional, tag="2")]
115115
pub spec: ::core::option::Option<super::v1::JobSpec>,
116116
}
117+
// TODO genericsfor api.batch.v1beta1

out/api.certificates.v1.rs

+1
Original file line numberDiff line numberDiff line change
@@ -223,3 +223,4 @@ pub struct ExtraValue {
223223
#[prost(string, repeated, tag="1")]
224224
pub items: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
225225
}
226+
// TODO genericsfor api.certificates.v1

out/api.certificates.v1beta1.rs

+1
Original file line numberDiff line numberDiff line change
@@ -174,3 +174,4 @@ pub struct ExtraValue {
174174
#[prost(string, repeated, tag="1")]
175175
pub items: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
176176
}
177+
// TODO genericsfor api.certificates.v1beta1

out/api.coordination.v1.rs

+1
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,4 @@ pub struct LeaseSpec {
5151
#[prost(int32, optional, tag="5")]
5252
pub lease_transitions: ::core::option::Option<i32>,
5353
}
54+
// TODO genericsfor api.coordination.v1

out/api.coordination.v1beta1.rs

+1
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,4 @@ pub struct LeaseSpec {
5151
#[prost(int32, optional, tag="5")]
5252
pub lease_transitions: ::core::option::Option<i32>,
5353
}
54+
// TODO genericsfor api.coordination.v1beta1

out/api.core.v1.rs

+1
Original file line numberDiff line numberDiff line change
@@ -5824,3 +5824,4 @@ pub struct WindowsSecurityContextOptions {
58245824
#[prost(bool, optional, tag="4")]
58255825
pub host_process: ::core::option::Option<bool>,
58265826
}
5827+
// TODO genericsfor api.core.v1

out/api.discovery.v1.rs

+1
Original file line numberDiff line numberDiff line change
@@ -171,3 +171,4 @@ pub struct ForZone {
171171
#[prost(string, optional, tag="1")]
172172
pub name: ::core::option::Option<::prost::alloc::string::String>,
173173
}
174+
// TODO genericsfor api.discovery.v1

out/api.discovery.v1beta1.rs

+1
Original file line numberDiff line numberDiff line change
@@ -174,3 +174,4 @@ pub struct ForZone {
174174
#[prost(string, optional, tag="1")]
175175
pub name: ::core::option::Option<::prost::alloc::string::String>,
176176
}
177+
// TODO genericsfor api.discovery.v1beta1

out/api.events.v1.rs

+1
Original file line numberDiff line numberDiff line change
@@ -98,3 +98,4 @@ pub struct EventSeries {
9898
#[prost(message, optional, tag="2")]
9999
pub last_observed_time: ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::MicroTime>,
100100
}
101+
// TODO genericsfor api.events.v1

out/api.events.v1beta1.rs

+1
Original file line numberDiff line numberDiff line change
@@ -100,3 +100,4 @@ pub struct EventSeries {
100100
#[prost(message, optional, tag="2")]
101101
pub last_observed_time: ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::MicroTime>,
102102
}
103+
// TODO genericsfor api.events.v1beta1

out/api.extensions.v1beta1.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1295,3 +1295,4 @@ pub struct SupplementalGroupsStrategyOptions {
12951295
#[prost(message, repeated, tag="2")]
12961296
pub ranges: ::prost::alloc::vec::Vec<IdRange>,
12971297
}
1298+
// TODO genericsfor api.extensions.v1beta1

out/api.flowcontrol.v1alpha1.rs

+1
Original file line numberDiff line numberDiff line change
@@ -428,3 +428,4 @@ pub struct UserSubject {
428428
#[prost(string, optional, tag="1")]
429429
pub name: ::core::option::Option<::prost::alloc::string::String>,
430430
}
431+
// TODO genericsfor api.flowcontrol.v1alpha1

out/api.flowcontrol.v1beta1.rs

+1
Original file line numberDiff line numberDiff line change
@@ -428,3 +428,4 @@ pub struct UserSubject {
428428
#[prost(string, optional, tag="1")]
429429
pub name: ::core::option::Option<::prost::alloc::string::String>,
430430
}
431+
// TODO genericsfor api.flowcontrol.v1beta1

out/api.imagepolicy.v1alpha1.rs

+1
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,4 @@ pub struct ImageReviewStatus {
6060
#[prost(map="string, string", tag="3")]
6161
pub audit_annotations: ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>,
6262
}
63+
// TODO genericsfor api.imagepolicy.v1alpha1

out/api.networking.v1.rs

+1
Original file line numberDiff line numberDiff line change
@@ -494,3 +494,4 @@ pub struct ServiceBackendPort {
494494
#[prost(int32, optional, tag="2")]
495495
pub number: ::core::option::Option<i32>,
496496
}
497+
// TODO genericsfor api.networking.v1

out/api.networking.v1beta1.rs

+1
Original file line numberDiff line numberDiff line change
@@ -285,3 +285,4 @@ pub struct IngressTls {
285285
#[prost(string, optional, tag="2")]
286286
pub secret_name: ::core::option::Option<::prost::alloc::string::String>,
287287
}
288+
// TODO genericsfor api.networking.v1beta1

out/api.node.v1.rs

+1
Original file line numberDiff line numberDiff line change
@@ -80,3 +80,4 @@ pub struct Scheduling {
8080
#[prost(message, repeated, tag="2")]
8181
pub tolerations: ::prost::alloc::vec::Vec<super::super::core::v1::Toleration>,
8282
}
83+
// TODO genericsfor api.node.v1

out/api.node.v1alpha1.rs

+1
Original file line numberDiff line numberDiff line change
@@ -90,3 +90,4 @@ pub struct Scheduling {
9090
#[prost(message, repeated, tag="2")]
9191
pub tolerations: ::prost::alloc::vec::Vec<super::super::core::v1::Toleration>,
9292
}
93+
// TODO genericsfor api.node.v1alpha1

out/api.node.v1beta1.rs

+1
Original file line numberDiff line numberDiff line change
@@ -79,3 +79,4 @@ pub struct Scheduling {
7979
#[prost(message, repeated, tag="2")]
8080
pub tolerations: ::prost::alloc::vec::Vec<super::super::core::v1::Toleration>,
8181
}
82+
// TODO genericsfor api.node.v1beta1

out/api.policy.v1.rs

+1
Original file line numberDiff line numberDiff line change
@@ -123,3 +123,4 @@ pub struct PodDisruptionBudgetStatus {
123123
#[prost(message, repeated, tag="7")]
124124
pub conditions: ::prost::alloc::vec::Vec<super::super::super::apimachinery::pkg::apis::meta::v1::Condition>,
125125
}
126+
// TODO genericsfor api.policy.v1

out/api.policy.v1beta1.rs

+1
Original file line numberDiff line numberDiff line change
@@ -415,3 +415,4 @@ pub struct SupplementalGroupsStrategyOptions {
415415
#[prost(message, repeated, tag="2")]
416416
pub ranges: ::prost::alloc::vec::Vec<IdRange>,
417417
}
418+
// TODO genericsfor api.policy.v1beta1

out/api.rbac.v1.rs

+1
Original file line numberDiff line numberDiff line change
@@ -181,3 +181,4 @@ pub struct Subject {
181181
#[prost(string, optional, tag="4")]
182182
pub namespace: ::core::option::Option<::prost::alloc::string::String>,
183183
}
184+
// TODO genericsfor api.rbac.v1

out/api.rbac.v1alpha1.rs

+1
Original file line numberDiff line numberDiff line change
@@ -188,3 +188,4 @@ pub struct Subject {
188188
#[prost(string, optional, tag="4")]
189189
pub namespace: ::core::option::Option<::prost::alloc::string::String>,
190190
}
191+
// TODO genericsfor api.rbac.v1alpha1

out/api.rbac.v1beta1.rs

+1
Original file line numberDiff line numberDiff line change
@@ -188,3 +188,4 @@ pub struct Subject {
188188
#[prost(string, optional, tag="4")]
189189
pub namespace: ::core::option::Option<::prost::alloc::string::String>,
190190
}
191+
// TODO genericsfor api.rbac.v1beta1

out/api.scheduling.v1.rs

+1
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,4 @@ pub struct PriorityClassList {
4444
#[prost(message, repeated, tag="2")]
4545
pub items: ::prost::alloc::vec::Vec<PriorityClass>,
4646
}
47+
// TODO genericsfor api.scheduling.v1

out/api.scheduling.v1alpha1.rs

+1
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,4 @@ pub struct PriorityClassList {
4545
#[prost(message, repeated, tag="2")]
4646
pub items: ::prost::alloc::vec::Vec<PriorityClass>,
4747
}
48+
// TODO genericsfor api.scheduling.v1alpha1

out/api.scheduling.v1beta1.rs

+1
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,4 @@ pub struct PriorityClassList {
4545
#[prost(message, repeated, tag="2")]
4646
pub items: ::prost::alloc::vec::Vec<PriorityClass>,
4747
}
48+
// TODO genericsfor api.scheduling.v1beta1

out/api.storage.v1.rs

+1
Original file line numberDiff line numberDiff line change
@@ -446,3 +446,4 @@ pub struct VolumeNodeResources {
446446
#[prost(int32, optional, tag="1")]
447447
pub count: ::core::option::Option<i32>,
448448
}
449+
// TODO genericsfor api.storage.v1

out/api.storage.v1alpha1.rs

+1
Original file line numberDiff line numberDiff line change
@@ -201,3 +201,4 @@ pub struct VolumeError {
201201
#[prost(string, optional, tag="2")]
202202
pub message: ::core::option::Option<::prost::alloc::string::String>,
203203
}
204+
// TODO genericsfor api.storage.v1alpha1

out/api.storage.v1beta1.rs

+1
Original file line numberDiff line numberDiff line change
@@ -540,3 +540,4 @@ pub struct VolumeNodeResources {
540540
#[prost(int32, optional, tag="1")]
541541
pub count: ::core::option::Option<i32>,
542542
}
543+
// TODO genericsfor api.storage.v1beta1

out/apiextensions_apiserver.pkg.apis.apiextensions.v1.rs

+1
Original file line numberDiff line numberDiff line change
@@ -649,3 +649,4 @@ pub struct WebhookConversion {
649649
#[prost(string, repeated, tag="3")]
650650
pub conversion_review_versions: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
651651
}
652+
// TODO genericsfor apiextensions_apiserver.pkg.apis.apiextensions.v1

out/apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.rs

+1
Original file line numberDiff line numberDiff line change
@@ -685,3 +685,4 @@ pub struct WebhookClientConfig {
685685
#[prost(bytes="vec", optional, tag="2")]
686686
pub ca_bundle: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
687687
}
688+
// TODO genericsfor apiextensions_apiserver.pkg.apis.apiextensions.v1beta1

out/apimachinery.pkg.api.resource.rs

+1
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,4 @@ pub struct Quantity {
6161
#[prost(string, optional, tag="1")]
6262
pub string: ::core::option::Option<::prost::alloc::string::String>,
6363
}
64+
// TODO genericsfor apimachinery.pkg.api.resource

out/apimachinery.pkg.apis.meta.v1.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1137,3 +1137,4 @@ pub struct WatchEvent {
11371137
#[prost(message, optional, tag="2")]
11381138
pub object: ::core::option::Option<super::super::super::runtime::RawExtension>,
11391139
}
1140+
// TODO genericsfor apimachinery.pkg.apis.meta.v1

out/apimachinery.pkg.apis.meta.v1beta1.rs

+1
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ pub struct PartialObjectMetadataList {
1111
#[prost(message, repeated, tag="1")]
1212
pub items: ::prost::alloc::vec::Vec<super::v1::PartialObjectMetadata>,
1313
}
14+
// TODO genericsfor apimachinery.pkg.apis.meta.v1beta1

out/apimachinery.pkg.apis.testapigroup.v1.rs

+1
Original file line numberDiff line numberDiff line change
@@ -184,3 +184,4 @@ pub struct CarpStatus {
184184
#[prost(message, optional, tag="7")]
185185
pub start_time: ::core::option::Option<super::super::meta::v1::Time>,
186186
}
187+
// TODO genericsfor apimachinery.pkg.apis.testapigroup.v1

out/apimachinery.pkg.runtime.rs

+1
Original file line numberDiff line numberDiff line change
@@ -102,3 +102,4 @@ pub struct Unknown {
102102
#[prost(string, optional, tag="4")]
103103
pub content_type: ::core::option::Option<::prost::alloc::string::String>,
104104
}
105+
// TODO genericsfor apimachinery.pkg.runtime
+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
// TODO genericsfor apimachinery.pkg.runtime.schema

out/apimachinery.pkg.util.intstr.rs

+1
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,4 @@ pub struct IntOrString {
1616
#[prost(string, optional, tag="3")]
1717
pub str_val: ::core::option::Option<::prost::alloc::string::String>,
1818
}
19+
// TODO genericsfor apimachinery.pkg.util.intstr

0 commit comments

Comments
 (0)