-
Notifications
You must be signed in to change notification settings - Fork 3
[CLOUD-254]: Custom profiles support for NodeTerminal #262
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
base: release/1.2.0
Are you sure you want to change the base?
Conversation
| nodeName, | ||
| substractHeight, | ||
| defaultProfile, | ||
| listPodTemplatesNs = 'incloud-web', |
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.
Seems like default option is not too good here
| plural: 'podtemplates', | ||
| namespace: listPodTemplatesNs, | ||
| }, | ||
| preserveStateOnUrlChange: false, |
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.
Seems redudant
| { | ||
| label: 'Predefined Profiles', | ||
| options: predefinedOptions, | ||
| }, |
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.
Better to remove predefined if we have specific pod templates. You will need an option to hide predifend options if you keep it
| ] | ||
| }, [hasPodTemplates, podTemplateNames]) | ||
|
|
||
| const isPredefinedProfile = PREDEFINED_PROFILES.includes(currentProfile as typeof PREDEFINED_PROFILES[number]) |
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.
Well currentProfile can be not that type. Better to remove as
| }, [hasPodTemplates, podTemplateNames]) | ||
|
|
||
| const isPredefinedProfile = PREDEFINED_PROFILES.includes(currentProfile as typeof PREDEFINED_PROFILES[number]) | ||
| const selectedPodTemplateName = hasPodTemplates && !isPredefinedProfile ? currentProfile : undefined |
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.
Profile names can be the same. So no need for this logic after removing show of dredefined if custom exist. Better just provide boolean to XTerminal
|
Add proper PR name please |
https://prorobotech.youtrack.cloud/issue/CLOUD-254/Factory-NodeTerminal-vozmozhnost-zadavat-kastomnyj-profil
Support of custom podTemplates in NodeTerminal