-
Notifications
You must be signed in to change notification settings - Fork 667
[WIP] Kubvirt plugin vmtemplate #1637
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
Conversation
|
cc// @mareklibra |
5bb73e9 to
16e9d11
Compare
16e9d11 to
9f11bc5
Compare
9f11bc5 to
04b3db4
Compare
8a07eae to
8f2c0d8
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.
This should be:
plural: 'vmtemplates' then the menu item link is /vmtemplates but the page it'self stay /tempates and we get a 404 page :-(
@mareklibra what am I missing ?
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.
We do not have specific CRD for a VM template, regular OpenShift templates are reused, just with template.kubevirt.io/type label is set (afaik either base or vm values recently).
Proper plural here is vmtemplates.
Per comment in #1592, I will remove TemplateModel from here in favour of core console-app models. But the VmTemplateModel should remain here, we differentiate via id/plural/selector.
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.
Regarding the 404, the VmTemplateModel is filtered out in k8s-models.ts on an attempt to redefine Template model.
@vojtechszocs , do you have any idea how to ease this check to enable specialization of a model?
If we stay strict on disabling redefinition, we might introduce explicit extension for Router so we will not land on the VmTemplatesList page via generic /k8s/ns/:ns/:plural but a specific one will be provided.
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.
We do not have a CRD for VmTemplates, I think this should be removed.
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.
We do not have specific CRD for a VM template, regular OpenShift templates are reused, just with template.kubevirt.io/type label is set (afaik either base or vm values recently).
Proper plural here is vmtemplates.
Per comment in #1592, I will remove TemplateModel from here in favour of core console-app models. But the VmTemplateModel should remain here, we differentiate via id/plural/selector.
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.
Regarding the 404, the VmTemplateModel is filtered out in k8s-models.ts on an attempt to redefine Template model.
@vojtechszocs , do you have any idea how to ease this check to enable specialization of a model?
If we stay strict on disabling redefinition, we might introduce explicit extension for Router so we will not land on the VmTemplatesList page via generic /k8s/ns/:ns/:plural but a specific one will be provided.
7b1714c to
6234d24
Compare
6234d24 to
cdd250d
Compare
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: yaacov The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
Integrate template list page
Depends on:
Screenshot:
