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

Adding support for storageclass #222

Merged
merged 3 commits into from
Jul 29, 2022

Conversation

shinusuresh
Copy link
Contributor

@shinusuresh shinusuresh commented Jul 12, 2022

Fix #50

@deepu105
Copy link
Contributor

Thank you 🙏. I'm on vacation now. I'll check and merge in 2 weeks when I'm back

Copy link
Contributor

@deepu105 deepu105 left a comment

Choose a reason for hiding this comment

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

Great work. I made some codestyle comments. I can also do those updates after merge if you like

pub(crate) mod svcs;
mod utils;

use crate::app::storageclass::KubeStorageClass;
Copy link
Contributor

Choose a reason for hiding this comment

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

move it to existing import grouping below in line 40. If you are using VSCode it should do that when you format

src/app/mod.rs Outdated
@@ -123,6 +126,7 @@ pub struct Data {
pub logs: LogsState,
pub describe_out: ScrollableTxt,
pub metrics: StatefulTable<(Vec<String>, Option<QtyByQualifier>)>,
pub storageclasses: StatefulTable<KubeStorageClass>,
Copy link
Contributor

Choose a reason for hiding this comment

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

move to line 125 for consistency plz

src/app/mod.rs Outdated
@@ -195,6 +199,7 @@ impl Default for Data {
logs: LogsState::new(String::default()),
describe_out: ScrollableTxt::new(),
metrics: StatefulTable::new(),
storageclasses: StatefulTable::new(),
Copy link
Contributor

Choose a reason for hiding this comment

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

move to line 192 plz

@@ -479,6 +494,7 @@ async fn handle_block_scroll(app: &mut App, up: bool, is_mouse: bool, page: bool
ActiveBlock::RplCtrl => app.data.rpl_ctrls.handle_scroll(up, page),
ActiveBlock::Contexts => app.data.contexts.handle_scroll(up, page),
ActiveBlock::Utilization => app.data.metrics.handle_scroll(up, page),
ActiveBlock::StorageClasses => app.data.storageclasses.handle_scroll(up, page),
Copy link
Contributor

Choose a reason for hiding this comment

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

move to line 494

@@ -332,4 +333,13 @@ impl<'a> Network<'a> {
None => Api::all(self.client.clone()),
}
}

pub async fn get_storage_classes(&self) {
Copy link
Contributor

Choose a reason for hiding this comment

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

move to line 301 to seperate pub and private functions visually

src/ui/resource_tabs.rs Outdated Show resolved Hide resolved
"Name",
"Provisioner",
"Reclaim Policy",
"Volume binding mode",
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
"Volume binding mode",
"Volume Binding Mode",

"Provisioner",
"Reclaim Policy",
"Volume binding mode",
"Allow volume expansion",
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
"Allow volume expansion",
"Allow Volume Expansion",

@shinusuresh
Copy link
Contributor Author

@deepu105 - Review changes are pushed. Can you take a look when you get time, please?

@deepu105 deepu105 merged commit 7a6ee6a into kdash-rs:main Jul 29, 2022
@shinusuresh
Copy link
Contributor Author

Thank you @deepu105

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.

Add support for Storage classes
3 participants