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

Update deps, adapt to newer versions, fix clippy #77

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

nertpinx
Copy link

I am not sure whether this project, in its current state, accepts PRs, but the idea behind it is very nice and since I just used it for some testing I want to contribute some updates back upstream.

And change default k8s-openapi feature to v1_24 as the older versions were
dropped.

Also update the code for newer cargo/rust.

And fix what cargo clippy suggests.

Signed-off-by: Martin Kletzander <nert.pinx@gmail.com>
Signed-off-by: Martin Kletzander <nert.pinx@gmail.com>
Copy link
Member

@kflansburg kflansburg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, the project is archived, but I appreciate the submission. I just had one comment.

Would be curious to hear about what you found this useful for!

krator/Cargo.toml Show resolved Hide resolved
@thomastaylor312
Copy link
Contributor

I am also very curious what you found it useful for!

@nertpinx
Copy link
Author

I need a virtual kubelet and wanted to use krustlet due to me and the Rust language usually being in more agreement than with Go. I also needed to update the dependencies there and make it buildable with newer rust/cargo since that project is not actively maintained.

I understand the possible issues, however I'm just using these to do a proof of concept. Moreover the interesting functionality will be in another binary/repository so I'm using krustlet to really simply fake that pods are running. Feel free to check out my repository of krustlet but bear in mind that the code is very rough, the commits are not descriptive, and so on.

I am unable to send a proper PR to krustlet because in order to update it properly I would have to rewrite the WASM handling due to the need to switch to another backend. In my branch I removed the wasi part completely.

What I might use krator for later is handling of the state machine of my CRD objects, unless I have the need for finalizers and other things that are, to the best of my knowledge, not handled in krator.

On the other hand, to be honest, if the other idea ends with the PoC, or if I need a current, stable, and updated stack I might not use krator (or krustlet) at all in the end. I just figured I might as well polish the update to krator and contribute it back, just in case it helps someone else or someone wants to get back to it at some point =)

@thomastaylor312
Copy link
Contributor

Looks like the failures are all from features not being enabled on the openapi crate

@nertpinx
Copy link
Author

nertpinx commented Mar 6, 2024

The documentation tests fail because markdownlint finds issues in target/doc/static.files/SourceSerif4-LICENSE-3bb119e13b1258b7.md which would not fail before building since that does not exist there.

Build tests fail because the tests do not enable any of the 'v1_*' features of k8s-openapi and the test runs cargo build which will not use dev-dependencies from Cargo.toml.

I have an idea how to fix it, but I'm not sure if it's the best way.

@thomastaylor312
Copy link
Contributor

@nertpinx Feel free to try whatever feels best!

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

Successfully merging this pull request may close these issues.

None yet

3 participants