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

Plans to Support Builder Pattern in Kube.rs? #156

Closed
Oyelowo opened this issue Apr 12, 2024 · 3 comments
Closed

Plans to Support Builder Pattern in Kube.rs? #156

Oyelowo opened this issue Apr 12, 2024 · 3 comments

Comments

@Oyelowo
Copy link

Oyelowo commented Apr 12, 2024

I’ve been exploring the k8s-openapi library and find it incredibly useful for interfacing with Kubernetes in Rust. However, I noticed that the library does not currently support the builder pattern through libraries like typed-builder or derive_builder, which can enhance the usability and type safety of building complex objects.

From my research across GitHub issues, I haven’t found any discussions or plans to implement this feature. Here are my questions:

Is there a specific reason why the builder pattern isn’t currently supported in k8s-openapi? Understanding any underlying architectural or design considerations could provide valuable insights.

Are there any plans to support the builder pattern in future releases? If not, could this be considered a valuable addition to the roadmap? The builder pattern can significantly ease the creation of objects with many optional parameters, which is common in Kubernetes configurations.

How can the community contribute to such a feature? If there is interest in having builder pattern support, I would love to explore how I can contribute to the implementation.

@Arnavion
Copy link
Owner

From my research across GitHub issues, I haven’t found any discussions or plans to implement this feature.

https://github.com/Arnavion/k8s-openapi/issues?q=is%3Aissue+builder -> #80 :)

@Oyelowo
Copy link
Author

Oyelowo commented Apr 12, 2024

Just checked out #80 after your mention-thanks for pointing me there! I’ve caught up on the discussion now. Nothing to add at the moment, just wanted to see what had been covered. Also, thanks for all the work you’ve put into this project; it’s really appreciated!

@Oyelowo Oyelowo closed this as completed Apr 12, 2024
@imp
Copy link

imp commented Apr 15, 2024

@Oyelowo you may want to have a look at https://docs.rs/k8s-openapi-ext

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants