-
Notifications
You must be signed in to change notification settings - Fork 705
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
Make the slider param customizable via the schema #1223
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -383,6 +383,10 @@ export interface IBasicFormParam { | |
title?: string; | ||
minimum?: number; | ||
maximum?: number; | ||
render?: string; | ||
sliderMin?: number; | ||
sliderMax?: number; | ||
Comment on lines
+387
to
+388
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why do we need these in addition to the already-present There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I tried that but the problem is that if a parameter contains |
||
sliderUnit?: string; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So the awkwardness is that we have a generic param interface which is having fields added for specifics. Is it possible instead to compose a new My head isn't in this code deeply enough to see if that would avoid the awkwardness or make it more convoluted - so just see what you think. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. that would be more difficult to handle from the code point of view. In that case, the type of the parameters will be |
||
description?: string; | ||
children?: { [name: string]: IBasicFormParam }; | ||
} |
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.
So this is a string in the schema because it includes the units right? (ie. "10Gi") And it is parsed by helm as a string with units?
Makes this a bit awkward but I don't see a better option.
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.
Exactly, that's why it's a string. You can actually go to the Advance tab and write 10000Mi if you want.