Chen Yuanrun

Results 20 comments of Chen Yuanrun
trafficstars

I need this to avoid memory copy between rust and c++ code.

Need this feature too.

These are the fields that do not generate: ```yaml annotations: additionalProperties: additionalProperties: type: string type: object nullable: true type: object x-kubernetes-preserve-unknown-fields: true cephConfig: additionalProperties: additionalProperties: type: string type: object nullable:...

Here is where the annotation crd field generated from: https://github.com/rook/rook/blob/master/pkg/apis/ceph.rook.io/v1/annotations.go#L23-L33 ```go // AnnotationsSpec is the main spec annotation for all daemons // +kubebuilder:pruning:PreserveUnknownFields // +nullable type AnnotationsSpec map[KeyType]Annotations // Annotations...

This is the minimal crd to reproduce this issue: ```yaml --- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: controller-gen.kubebuilder.io/version: v0.14.0 name: cephclusters.ceph.rook.io spec: group: ceph.rook.io names: kind: CephCluster listKind: CephClusterList plural:...

I think this field: ```yaml annotations: additionalProperties: additionalProperties: type: string type: object nullable: true type: object x-kubernetes-preserve-unknown-fields: true ``` may be translated to: ```rust #[derive(Serialize, Deserialize, Clone, Debug)] pub struct...

Run kopium with RUST_LOG=trace: ``` [2024-03-06T00:13:45Z DEBUG kopium] schema: { "properties": { "apiVersion": { "type": "string" }, "kind": { "type": "string" }, "metadata": { "type": "object" }, "spec": { "properties":...

I will manually patch the generated files with ```rust // Patched by xxx until https://github.com/kube-rs/kopium/issues/202 is fixed. // Do not edit it manually. #[derive(Serialize, Deserialize, Clone, Debug, JsonSchema)] pub struct...

@clux Sorry for my late reply. There is a example in rook repo: https://github.com/rook/rook/blob/02a552ce00c4f61703e09e5e3ad8aaca14f724ce/deploy/examples/cluster-test.yaml#L49 It seems to be something like `dict[str, dict[str, str]]` .

Is there any latest information for RDMA support now?