Skip to main content
Version: v3

Configuration

Package Metadata

Each extension package has the ability to customize certain aspects when it comes to compatibility with Rancher Manager/Kubernetes or displaying extension names. These are determined by the rancher.annotations object applied to the package.json of an extension package.

These annotations allow you to specify compatibility with Kubernetes, Rancher Manager, the Extensions API, and the Rancher UI version by relying on semver ranges. As well as version compatibility, you can also specify a Display Name for the Extension package as it appears on the "Extensions" page within the UI.

Annotations

AnnotationValueRancher Version support (Minimum version)Description
catalog.cattle.io/kube-versionRangev2.7.0Semver range of Kubernetes versions the extension supports. Prevents loading on clusters running a version outside the range.
catalog.cattle.io/rancher-versionRangev2.7.0Semver range of Rancher Manager versions the extension supports. Prevents loading on a Rancher version outside the range.
catalog.cattle.io/ui-extensions-hostStringv2.7.0Host application the extension targets (e.g. rancher-manager). Prevents loading when the host doesn't match.
catalog.cattle.io/ui-extensions-versionRangev2.9.0Semver range of the Extensions API (Shell package) the extension is built against for compatibility purposes. Some Rancher versions might bump it to a fixed major due to architectural changes: 2.8 → v1, 2.9 → v2, 2.10 → v3. Pin to the major you built against (e.g. >= 3.0.0 < 4.0.0). Mandatory from Rancher 2.10 onwards — extensions without this annotation will not be loaded.
catalog.cattle.io/display-nameStringv2.7.0Friendly name shown on the extension's card on the Extensions page. Falls back to the package name when omitted.

Other properties

PropertyValueDescription
noAuthBooleanIf noAuth is set to true then the extension will be loaded even when the user is logged out. (Rancher 2.9 - Extensions API 2.0)

Example

Here's an example configuration of an extensions package.json:

./pkg/my-package/package.json

{
"name": "my-package",
"description": "my-package plugin description",
"version": "0.1.0",
"rancher": {
"annotations": {
"catalog.cattle.io/kube-version": ">= v1.28.0-0 < v1.32.0-0",
"catalog.cattle.io/rancher-version": ">= 2.10.0-0",
"catalog.cattle.io/ui-extensions-version": ">= 3.0.0 < 4.0.0",
"catalog.cattle.io/display-name": "My Super Great Extension"
},
"noAuth": true
},
...
}