Skip to content

nutanix-cloud-native/nutanix-rancher-extension

Repository files navigation

Nutanix Rancher Extension

Requirements

  • Nutanix Prism Central 7.3 or higher
  • Nutanix Rancher Node Driver v3.8.0

Supported version

Rancher Compatibility Matrix

Rancher Branch Supported Version Range Status
v2.13 >= 2.13.1 ✅ Supported
v2.12 2.12.52.12.7 ✅ Supported
v2.11 2.11.82.11.11 ✅ Supported
Legacy < 2.11.8 ❌ Unsupported

Note

These ranges include pre-release versions (e.g., -rc or -alpha) due to the -0 semantic versioning suffix used in the metadata.

Installation

The Nutanix UI Extension is now available in the Rancher Partner Extension Catalog. You can install it directly from the Rancher UI.

Manual procedure

  • In the Rancher UI, Go to the Configuration / Extensions page
    image

  • Click on the three points top right and select Manage Extension Catalogs
    image

  • Click on the Import Extension Catalog button
    image

  • In the Catalog Image Reference add the following URL => ghcr.io/nutanix-cloud-native/ui-extension-nutanix and click on Load
    image

  • Click on Reload
    image

  • From the Extensions / Available page, install the Nutanix extension image

Development

https://rancher.github.io/dashboard/extensions/extensions-getting-started

Use the mise commands below for local development.

You can also run the same workflows with mise tasks:

mise tasks ls
mise run <task>

Building the Extension

mise run build

This will build the extension as a Vue library and the built extension will be placed in the dist-pkg folder.

Prevent loading your extension in dev mode

To do this, edit the file vue.config.js in the root my-app folder, and add the name of the package you want to exclude, such as:

const config = require('@rancher/shell/vue.config');

module.exports = config(__dirname, {
  excludes: ['test'],
});

Now we need to serve the built package locally by running the following:

mise run serve

Next import the extension with the given link.

Creating a Release

Release Prerequisites

In order to have a Helm repository you will need to enable Github Pages on your Github repository. Just follow these steps:

  1. Create a branch called gh-pages on your Github repository for the extension
  2. Go to the repository of the extension and click the Settings tab in the top navigation bar.
  3. Then on the left navigation bar of the settings page click the Pages tab. 4.Lastly, select GitHub Actions from the Source dropdown.

Adding the Release Workflow

If not done before use this command to add the workflow :

yarn create @rancher/pkg test -w

Consuming the Helm chart

After releasing the Helm chart you will be able to consume this from the Rancher UI by adding your Helm repository's URL to the App -> Repository list. If you used the automated workflow to release the Helm chart, you can find the URL within your Github repository under the "github-pages" Environment.

The URL should be listed as: https://.github.io/

Once the URL has been added to the repository list, the extension should appear within the Extensions page.

About

Rancher UI Extension for Nutanix with RKE2

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors