Hi, I built a small extension for rancher v2.12.2....
# extensions
h
Hi, I built a small extension for rancher v2.12.2. Should i stick to the shell version 3.0.5-rc.6 referenced in dashboard/shell/package.json at v2.12.2 · rancher/dashboard ? I updated shell package to 3.0.5 but I get weird stuff: the
Show configuration
button on list views for my CRD is not working. I think this is expected as it was introduced in Resource Detail: Give all resources the Show Configuration action · Issue #14824 · rancher/dashboard targeting v2.13 but Support matrixes | Rancher UI Extensions does not mention rancher 2.11+
b
I’ll need to have a look at this but you might be right 🤔 I’ll get back to you 🙏
❤️ 1
Ok, so the feature of
Show Configuration
is only coming from
2.13
Rancher versions and onwards and shell came from the updated UI with that part, wrongfully. A quick fix for your CRD is to disable this menu entry in your CRD model file with:
Copy code
disableResourceDetailDrawer() { return true }
Example of a model files in Elemental extension: https://github.com/rancher/elemental-ui/tree/main/pkg/elemental/models I’ll have a look at the possibility of fix this on our side and pushing out Shell
3.0.6
h
Using
disableResourceDetailDrawer
sounds good but there are a lot of other changes between releases 3.0.5-rc.6 and 3.0.5 so I was wondering whether extensions should generally match the UI shell version. I noticed the
Show configuration
issue but I may have overlooked other incompatibilities.
(I'm fine keeping 3.0.5-rc.6 in my extension until 2.13 🙂 )
b
We try not to break extensions unless we absolutely have no choice, but sometimes we miss stuff 😅… it happens. In this case we haven’t identified any further problems, so we assume that we are good in terms of compatibility. If other issues arise, we will address those 🙏 Thanks for reporting this one @hundreds-sugar-37524! 🙏
h
thanks for your help 🙂
🫡 1
b
@hundreds-sugar-37524, released shell
3.0.6
with a bug fix for your issue. You should not be seeing the
Show Configuration
table action anymore on non-compatible Rancher systems 🙏
h
I tried it and it works well ,thanks 🙌
🦜 1
🫡 1