adamant-kite-43734
07/08/2024, 7:01 AMbusy-ability-54059
07/08/2024, 9:10 AMisCreatable
prop.
Another thing that you’ll need to do is inside your pkg/kubearmor
folder, create a folder called edit
, then inside create a vue file with the name of your resource like security.kubearmor.com.kubearmorpolicy
. That should automatically be picked up by Rancher Dashboard and serve it as the appropriate edit
/ create
view
Example in Elemental: https://github.com/rancher/elemental-ui/tree/main/pkg/elemental/edit
with
https://github.com/rancher/elemental-ui/blob/main/pkg/elemental/elemental-config.js#L34-L40damp-agent-26487
07/08/2024, 1:52 PMdamp-agent-26487
08/12/2024, 10:30 AMdamp-agent-26487
08/12/2024, 10:42 AMdamp-agent-26487
08/12/2024, 4:58 PMbusy-ability-54059
08/12/2024, 5:31 PMbusy-ability-54059
08/12/2024, 5:32 PMbusy-ability-54059
08/12/2024, 5:33 PM<http://catalog.cattle.io/ui-extensions-version|catalog.cattle.io/ui-extensions-version>
2.0.0 is only present in Rancher 2.9busy-ability-54059
08/12/2024, 5:34 PMbusy-ability-54059
08/12/2024, 5:36 PMbusy-ability-54059
08/12/2024, 5:37 PMdamp-agent-26487
08/12/2024, 5:37 PMdamp-agent-26487
08/12/2024, 5:37 PMdamp-agent-26487
08/12/2024, 5:38 PMbusy-ability-54059
08/12/2024, 5:42 PM"<http://catalog.cattle.io/rancher-version|catalog.cattle.io/rancher-version>": ">= v2.7.0 < 2.9.0"
running the yarn create @rancher/app
you can’t include any versioning. there’s no option for that.
Check what we’ve done in Elemental:
main
branch is used for 2.9 and forward -> https://github.com/rancher/elemental-ui/blob/main/pkg/elemental/package.json
release-2.8.x
branch is for pre-2.9 systems -> https://github.com/rancher/elemental-ui/blob/release-2.8.x/pkg/elemental/package.json
We recommend you branch because of annotations, otherwise you will have a hard time keeping versions for both worlds. Feature-wise, the extension can be the samedamp-agent-26487
08/12/2024, 5:45 PMdamp-agent-26487
08/12/2024, 10:31 PMdamp-agent-26487
08/12/2024, 10:32 PMdamp-agent-26487
08/13/2024, 4:55 AMbusy-ability-54059
08/13/2024, 10:43 AMui-plugin-operator
. In Rancher 2.9 the ui-plugin-operator
is now built in Rancher, so I think you need to look at the actual deployment logs of Rancher which should live under this path:
/c/local/explorer/apps.deployment/cattle-system/rancher#pods
On that table view, click on the 3 dots (end of each row) and click view logs
busy-ability-54059
08/13/2024, 10:46 AM2.0.1
. That won’t work. you’ll need to change this shell version to 1.2.3
then release it again.damp-agent-26487
08/13/2024, 10:49 AMbusy-ability-54059
08/13/2024, 11:03 AMshell
is a dependency of the whole project and is the connection to Rancher dashboard. I would say that it’s the most important package extensions use. It’s defined on the root package.json
https://github.com/KrishAryan/kubearmorRUI/blob/main/package.json#L9.
As per https://extensions.rancher.io/extensions/rancher-2.9-support, for Rancher pre 2.9 you’ll need to use shell 1.2.3
and for Rancher 2.9 and forward you’ll need to use shell 2.0.1
busy-ability-54059
08/13/2024, 11:05 AMracher-version
or ui-extensions-version
as an example… There are some others you can define https://extensions.rancher.io/extensions/extensions-configuration#configurable-annotations
These might make Rancher not load/make available to install your extension if the conditions you set via annotations are “broken” (out of what you defined)damp-agent-26487
08/13/2024, 11:15 AMdamp-agent-26487
08/13/2024, 1:49 PM