- Nutanix Prism Central 2024.1
- Nutanix Rancher Node Driver v3.6.0
- Rancher 2.8.x
https://rancher.github.io/dashboard/extensions/extensions-getting-started
yarn build-pkg nutanix
This will build the extension as a Vue library and the built extension will be placed in the dist-pkg folder.
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:
yarn serve-pkgs
Next import the extension with the given link.
In order to have a Helm repository you will need to enable Github Pages on your Github repository. Just follow these steps:
- Create a branch called
gh-pages
on your Github repository for the extension - Go to the repository of the extension and click the
Settings
tab in the top navigation bar. - Then on the left navigation bar of the settings page click the
Pages
tab. 4.Lastly, selectGitHub Actions
from theSource
dropdown.
If not done before use this command to add the workflow :
yarn create @rancher/pkg test -w
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.