-
-
Notifications
You must be signed in to change notification settings - Fork 85
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
Conversation
Thank you 🙏. I'm on vacation now. I'll check and merge in 2 weeks when I'm back |
05f1aab
to
943a980
Compare
There was a problem hiding this 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; |
There was a problem hiding this comment.
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>, |
There was a problem hiding this comment.
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(), |
There was a problem hiding this comment.
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
src/handlers/mod.rs
Outdated
@@ -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), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
move to line 494
src/network/kube_api.rs
Outdated
@@ -332,4 +333,13 @@ impl<'a> Network<'a> { | |||
None => Api::all(self.client.clone()), | |||
} | |||
} | |||
|
|||
pub async fn get_storage_classes(&self) { |
There was a problem hiding this comment.
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
"Name", | ||
"Provisioner", | ||
"Reclaim Policy", | ||
"Volume binding mode", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Volume binding mode", | |
"Volume Binding Mode", |
src/ui/resource_tabs.rs
Outdated
"Provisioner", | ||
"Reclaim Policy", | ||
"Volume binding mode", | ||
"Allow volume expansion", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Allow volume expansion", | |
"Allow Volume Expansion", |
@deepu105 - Review changes are pushed. Can you take a look when you get time, please? |
Thank you @deepu105 |
Fix #50