Skip to content

section: Add kube_node_info_v1 - #26

Open
bx9001 wants to merge 3 commits into
Checkmk:masterfrom
bx9001:CMK-36235-node-info
Open

section: Add kube_node_info_v1#26
bx9001 wants to merge 3 commits into
Checkmk:masterfrom
bx9001:CMK-36235-node-info

Conversation

@bx9001

@bx9001 bx9001 commented Aug 7, 2026

Copy link
Copy Markdown

CMK-36235

@bx9001
bx9001 marked this pull request as ready for review August 10, 2026 10:30
@bx9001
bx9001 force-pushed the CMK-36235-node-info branch from 80e4447 to 6beb824 Compare August 10, 2026 11:31
@bx9001
bx9001 force-pushed the CMK-36235-node-info branch from 6beb824 to 49f8ee3 Compare August 12, 2026 07:57

@relrod relrod left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Two nits inline (and one small separate followup request as another PR). Feel free to merge once the two nits are addressed.

Comment on lines +7 to +10
use crate::section::{
node::KubeNodeInfoV1,
writeable::{SectionError, WriteableSection},
};

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

By convention with the rest of the project, prefer to only group leaves of import trees:

Suggested change
use crate::section::{
node::KubeNodeInfoV1,
writeable::{SectionError, WriteableSection},
};
use crate::section::node::KubeNodeInfoV1;
use crate::section::writeable::{SectionError, WriteableSection};

But I know there are a few places lingering in the repo that break the convention.

(This would be nice to enforce with rustfmt but it's a nightly-only feature 😕)

let mut out = Vec::new();
if let Some(kube_node_info_v1) = KubeNodeInfoV1::from_node(self.api, self.settings) {
out.push(WriteableSection::of(&me, &kube_node_info_v1));
};

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Stray semicolon here

Suggested change
};
}

We have a few others in the repo, too, I just checked. Feel free to add this to Cargo.toml in the clippy section (as another PR) and fix the existing few occurrences, I'd appreciate it:

unnecessary_semicolon = "deny"

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.

2 participants