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

docs: 📝 little fixes #5

Merged
merged 1 commit into from
Nov 21, 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
4 changes: 2 additions & 2 deletions k8s-rs-pb/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
[package]
name = "k8s-rs-pb"
version = "0.1.1"
version = "0.1.2"
authors = ["Dmitriy Mastitskiy <[email protected]>"]
edition = "2021"
license = "MIT"
homepage = "https://github.com/DMoscicki/k8s-rs-pb/"
repository = "https://github.com/DMoscicki/k8s-rs-pb/"
documentation = "https://github.com/DMoscicki/k8s-rs-pb/blob/master/README.md"
description = "Converted from k8s-openapi to rust-protobuf"
description = "Converter from k8s-openapi to rust-protobuf"
publish = true

[dependencies]
Expand Down
11 changes: 5 additions & 6 deletions k8s-rs-pb/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,11 @@ In the future I will add Serialize to custom_date.
At this time i only need the Deserialize (i don't like to work with JSON).

```
use k8s-rs-pb::api::core::v1::{Node, Pod, PodList, Event};
use k8s_openapi::api::core::v1::{Event as OtherEvent, Node as OtherNode, Pod as OtherPod};
use k8s_rs_pb::api::core::v1::Pod;
use k8s_openapi::api::core::v1::Pod as OtherPod;

let pod_openapi = OtherPod::default();
let pod_openapi = OtherPod::default();
let pod_pb: Pod = k8s_rs_pb::converter::from_openapi(pod_openapi).unwrap();

let pod_pb: Pod = converter::from_openapi(pod_openapi).unwrap();

assert_eq!(pod_pb.has_metadata(), true);
assert_eq!(pod_pb.has_metadata(), true);
```
2 changes: 1 addition & 1 deletion k8s-rs-pb/src/api/admission/mod.rs
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
pub mod v1;
pub mod v1beta1;
pub mod v1;
2 changes: 1 addition & 1 deletion k8s-rs-pb/src/api/admissionregistration/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
pub mod v1beta1;
pub mod v1alpha1;
pub mod v1;
pub mod v1alpha1;
2 changes: 1 addition & 1 deletion k8s-rs-pb/src/api/apidiscovery/mod.rs
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
pub mod v2;
pub mod v2beta1;
pub mod v2;
2 changes: 1 addition & 1 deletion k8s-rs-pb/src/api/authentication/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
pub mod v1beta1;
pub mod v1alpha1;
pub mod v1;
pub mod v1beta1;
4 changes: 2 additions & 2 deletions k8s-rs-pb/src/api/autoscaling/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pub mod v1;
pub mod v2beta2;
pub mod v2;
pub mod v2beta1;
pub mod v2;
pub mod v1;
2 changes: 1 addition & 1 deletion k8s-rs-pb/src/api/certificates/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
pub mod v1beta1;
pub mod v1alpha1;
pub mod v1beta1;
pub mod v1;
2 changes: 1 addition & 1 deletion k8s-rs-pb/src/api/coordination/mod.rs
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
pub mod v1beta1;
pub mod v1;
pub mod v1beta1;
2 changes: 1 addition & 1 deletion k8s-rs-pb/src/api/flowcontrol/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pub mod v1beta3;
pub mod v1beta2;
pub mod v1beta1;
pub mod v1beta2;
pub mod v1;
32 changes: 16 additions & 16 deletions k8s-rs-pb/src/api/mod.rs
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
pub mod apiserverinternal;
pub mod core;
pub mod certificates;
pub mod coordination;
pub mod networking;
pub mod authorization;
pub mod discovery;
pub mod certificates;
pub mod apidiscovery;
pub mod policy;
pub mod autoscaling;
pub mod node;
pub mod admission;
pub mod batch;
pub mod flowcontrol;
pub mod imagepolicy;
pub mod node;
pub mod admissionregistration;
pub mod apps;
pub mod authentication;
pub mod extensions;
pub mod events;
pub mod apps;
pub mod networking;
pub mod authorization;
pub mod scheduling;
pub mod discovery;
pub mod apiserverinternal;
pub mod events;
pub mod imagepolicy;
pub mod flowcontrol;
pub mod rbac;
pub mod resource;
pub mod apidiscovery;
pub mod admission;
pub mod storage;
pub mod policy;
pub mod storagemigration;
pub mod admissionregistration;
pub mod storage;
pub mod resource;
2 changes: 1 addition & 1 deletion k8s-rs-pb/src/api/networking/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
pub mod v1beta1;
pub mod v1alpha1;
pub mod v1;
pub mod v1beta1;
2 changes: 1 addition & 1 deletion k8s-rs-pb/src/api/node/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
pub mod v1beta1;
pub mod v1alpha1;
pub mod v1;
pub mod v1alpha1;
2 changes: 1 addition & 1 deletion k8s-rs-pb/src/api/policy/mod.rs
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
pub mod v1beta1;
pub mod v1;
pub mod v1beta1;
2 changes: 1 addition & 1 deletion k8s-rs-pb/src/api/rbac/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
pub mod v1beta1;
pub mod v1;
pub mod v1alpha1;
pub mod v1;
2 changes: 1 addition & 1 deletion k8s-rs-pb/src/api/storage/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
pub mod v1beta1;
pub mod v1alpha1;
pub mod v1;
pub mod v1alpha1;
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
pub mod v1beta1;
pub mod v1;
pub mod v1beta1;
2 changes: 1 addition & 1 deletion k8s-rs-pb/src/apimachinery/pkg/apis/mod.rs
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
pub mod meta;
pub mod testapigroup;
pub mod meta;
2 changes: 1 addition & 1 deletion k8s-rs-pb/src/metrics/pkg/apis/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
pub mod external_metrics;
pub mod metrics;
pub mod custom_metrics;
pub mod external_metrics;
Loading