mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2026-11-24 01:20:49 +08:00
Compare commits
33
Commits
v1.7-head
...
v1.10-head
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6538436102 | ||
|
|
ba8548eaa2 | ||
|
|
601527c371 | ||
|
|
469caf7f17 | ||
|
|
7c815928b4 | ||
|
|
942eded594 | ||
|
|
60661c1673 | ||
|
|
a59602f055 | ||
|
|
9ef6166339 | ||
|
|
702d266242 | ||
|
|
658fe19fa0 | ||
|
|
91a39fc912 | ||
|
|
4be2390802 | ||
|
|
b12e940c78 | ||
|
|
9247875827 | ||
|
|
8f08716ff6 | ||
|
|
4acb2d1878 | ||
|
|
368d29d849 | ||
|
|
a5aa04f6db | ||
|
|
4335ebe628 | ||
|
|
d6c814914e | ||
|
|
17dd02c6f6 | ||
|
|
d41a58965c | ||
|
|
9ad5a88a25 | ||
|
|
b640e9c9a7 | ||
|
|
e75c94e3f6 | ||
|
|
ed511ffa52 | ||
|
|
baedb241d0 | ||
|
|
76d3da0420 | ||
|
|
8a4e687c61 | ||
|
|
453bd51c0f | ||
|
|
1dbb6601db | ||
|
|
b6f5d0f93c |
No files matched your search
@@ -1,2 +1,178 @@
|
|||||||
# harvester
|
# harvester-ui-extension
|
||||||
harvester UI extension
|
|
||||||
|
The Harvester UI Extension is a Rancher extension that provides the user interface for [Harvester](https://harvesterhci.io) within the [Rancher Dashboard](https://github.com/rancher/dashboard).
|
||||||
|
|
||||||
|
> **Note:**
|
||||||
|
> This extension is available starting from **Rancher 2.10.0**. Ensure your Rancher version is **2.10.0 or later** to access Harvester integration.
|
||||||
|
|
||||||
|
## Installation
|
||||||
|
|
||||||
|
For detailed installation instructions, please refer to the [official Harvester documentation](https://docs.harvesterhci.io/v1.5/rancher/harvester-ui-extension#installation-on-rancher-210).
|
||||||
|
|
||||||
|
|
||||||
|
## Development Setup
|
||||||
|
|
||||||
|
Ensure **Node.js v20 or later** is installed for development and debugging.
|
||||||
|
|
||||||
|
### Standalone Mode
|
||||||
|
|
||||||
|
Run the extension standalone with hot reload at `https://localhost:8005`.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Install dependencies
|
||||||
|
yarn install
|
||||||
|
|
||||||
|
# Start the development server
|
||||||
|
RANCHER_ENV=harvester API=https://your-harvester-ip yarn dev
|
||||||
|
|
||||||
|
# Example with specific server version
|
||||||
|
RANCHER_ENV=harvester VUE_APP_SERVER_VERSION=v1.5.0 API=https://192.168.1.123 yarn dev
|
||||||
|
```
|
||||||
|
|
||||||
|
You may also define environment variables in a `.env` file:
|
||||||
|
|
||||||
|
```env
|
||||||
|
RANCHER_ENV=harvester
|
||||||
|
VUE_APP_SERVER_VERSION=v1.5.0
|
||||||
|
API=https://192.168.1.123
|
||||||
|
```
|
||||||
|
|
||||||
|
### Rancher Integration Mode
|
||||||
|
|
||||||
|
To run as a Rancher extension, follow the [Rancher UI Extension Guide](https://extensions.rancher.io/extensions/next/extensions-getting-started#running-the-app).
|
||||||
|
|
||||||
|
```bash
|
||||||
|
API=https://your-rancher-ip yarn dev
|
||||||
|
```
|
||||||
|
|
||||||
|
## Commit Message Guidelines
|
||||||
|
|
||||||
|
This project uses [commit-lint](https://commitlint.js.org/) with [Conventional Commits](https://www.conventionalcommits.org/) to ensure consistent and meaningful commit messages.
|
||||||
|
|
||||||
|
### Commit Message Format
|
||||||
|
|
||||||
|
All commit messages must follow the conventional commit format:
|
||||||
|
|
||||||
|
```
|
||||||
|
<type>[optional scope]: <description>
|
||||||
|
|
||||||
|
[optional body]
|
||||||
|
|
||||||
|
[optional footer(s)]
|
||||||
|
```
|
||||||
|
|
||||||
|
### Supported Types
|
||||||
|
|
||||||
|
- **feat**: New features
|
||||||
|
- **fix**: Bug fixes
|
||||||
|
- **docs**: Documentation changes
|
||||||
|
- **style**: Code style changes (formatting, missing semicolons, etc.)
|
||||||
|
- **refactor**: Code refactoring
|
||||||
|
- **perf**: Performance improvements
|
||||||
|
- **test**: Adding or updating tests
|
||||||
|
- **build**: Build system or external dependencies
|
||||||
|
- **ci**: CI/CD changes
|
||||||
|
- **chore**: Other changes that don't modify src or test files
|
||||||
|
- **revert**: Reverts a previous commit
|
||||||
|
- **wip**: Work in progress
|
||||||
|
- **deps**: Dependency updates
|
||||||
|
- **security**: Security fixes
|
||||||
|
|
||||||
|
### Examples
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Feature
|
||||||
|
git commit -m "feat: add new virtual machine creation wizard"
|
||||||
|
|
||||||
|
# Bug fix
|
||||||
|
git commit -m "fix: resolve memory leak in VM console"
|
||||||
|
|
||||||
|
# Documentation
|
||||||
|
git commit -m "docs: update installation instructions"
|
||||||
|
|
||||||
|
# Breaking change
|
||||||
|
git commit -m "feat!: change API endpoint structure
|
||||||
|
|
||||||
|
BREAKING CHANGE: The /api/v1/vms endpoint has been replaced with /api/v2/vms"
|
||||||
|
```
|
||||||
|
|
||||||
|
### Git Hooks
|
||||||
|
|
||||||
|
The project uses [Husky](https://typicode.github.io/husky/) to automatically validate commit messages and run linting before commits:
|
||||||
|
|
||||||
|
- **pre-commit**: Runs ESLint to ensure code quality
|
||||||
|
- **commit-msg**: Validates commit message format using commit-lint
|
||||||
|
|
||||||
|
These hooks are automatically installed when you run `yarn install`.
|
||||||
|
|
||||||
|
### Manual Validation
|
||||||
|
|
||||||
|
You can manually validate commit messages:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Validate the last commit
|
||||||
|
yarn commitlint
|
||||||
|
|
||||||
|
# Validate a specific commit
|
||||||
|
npx commitlint --from <commit-hash>
|
||||||
|
|
||||||
|
# Validate a range of commits
|
||||||
|
npx commitlint --from <start-hash> --to <end-hash>
|
||||||
|
```
|
||||||
|
|
||||||
|
## Branch Structure
|
||||||
|
|
||||||
|
- **`main`** – Main development branch
|
||||||
|
- **`release-harvester-vX.Y`** – Stable release branches per version series
|
||||||
|
- **`vX.Y-head`** – Testing branches for ongoing changes to extension builds in each release series
|
||||||
|
|
||||||
|
> **Note:**
|
||||||
|
> The `vX.Y-head` branches are auto-generated and kept in sync with release branches. Use these for testing the latest changes in each version series.
|
||||||
|
|
||||||
|
## Testing Guidelines
|
||||||
|
|
||||||
|
### UI Extension Testing
|
||||||
|
|
||||||
|
To validate changes in a release series, switch to the appropriate `vX.Y-head` branch. For main branch testing, use `main-head`.
|
||||||
|
|
||||||
|
- Examples:
|
||||||
|
- Test `1.0.x` series → `v1.0-head`
|
||||||
|
- Test `1.5.x` series → `v1.5-head`
|
||||||
|
|
||||||
|
**Steps:**
|
||||||
|
1. Navigate to **Rancher UI** → **Local** → **App** → **Repositories**
|
||||||
|
2. Refresh the Harvester repository using the target `vX.Y-head` branch
|
||||||
|
3. Go to the **Extensions** page and install the desired version
|
||||||
|
|
||||||
|
### Standalone Mode Testing
|
||||||
|
|
||||||
|
To test the standalone UI, configure Harvester to load the UI from an external source.
|
||||||
|
|
||||||
|
- Examples of `ui-index`:
|
||||||
|
- Main branch → `https://releases.rancher.com/harvester-ui/dashboard/latest/index.html`
|
||||||
|
- Release series `1.5.x` → `https://releases.rancher.com/harvester-ui/dashboard/release-harvester-v1.5/index.html`
|
||||||
|
|
||||||
|
**Steps:**
|
||||||
|
1. Go to **Harvester UI** → **Advanced** → **Settings** → **UI**
|
||||||
|
2. Set **ui-source** to `External`
|
||||||
|
3. Set **ui-index** to the desired URL
|
||||||
|
|
||||||
|
## Contributing
|
||||||
|
|
||||||
|
If you want to contribute, start by reading this document, then visit our [Getting Started guide](https://extensions.rancher.io/extensions/next/extensions-getting-started) to learn how to develop and submit changes.
|
||||||
|
|
||||||
|
## License
|
||||||
|
|
||||||
|
Copyright (c) 2014-2025 [SUSE, LLC.](https://www.suse.com/)
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
[http://www.apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0)
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+265
-1
@@ -1,6 +1,270 @@
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
entries:
|
entries:
|
||||||
harvester:
|
harvester:
|
||||||
|
- annotations:
|
||||||
|
catalog.cattle.io/certified: rancher
|
||||||
|
catalog.cattle.io/display-name: Harvester
|
||||||
|
catalog.cattle.io/kube-version: '>= 1.16.0-0'
|
||||||
|
catalog.cattle.io/namespace: cattle-ui-plugin-system
|
||||||
|
catalog.cattle.io/os: linux
|
||||||
|
catalog.cattle.io/permits-os: linux, windows
|
||||||
|
catalog.cattle.io/rancher-version: '>= 2.15.0-0'
|
||||||
|
catalog.cattle.io/scope: management
|
||||||
|
catalog.cattle.io/ui-component: plugins
|
||||||
|
catalog.cattle.io/ui-extensions-version: '>= 3.0.0 < 4.0.0'
|
||||||
|
apiVersion: v2
|
||||||
|
appVersion: 1.10.0-rc3
|
||||||
|
created: "2026-11-23T16:05:40.104805063Z"
|
||||||
|
description: Rancher UI Extension for Harvester
|
||||||
|
digest: c935db6a2aae1809ea52bffb555988dbcca56d47128fba455bb5220d1b8cbb34
|
||||||
|
icon: https://raw.githubusercontent.com/harvester/harvester-ui-extension/main/pkg/harvester/icon.svg
|
||||||
|
name: harvester
|
||||||
|
type: application
|
||||||
|
urls:
|
||||||
|
- assets/harvester/harvester-1.10.0-rc3.tgz
|
||||||
|
version: 1.10.0-rc3
|
||||||
|
- annotations:
|
||||||
|
catalog.cattle.io/certified: rancher
|
||||||
|
catalog.cattle.io/display-name: Harvester
|
||||||
|
catalog.cattle.io/kube-version: '>= 1.16.0-0'
|
||||||
|
catalog.cattle.io/namespace: cattle-ui-plugin-system
|
||||||
|
catalog.cattle.io/os: linux
|
||||||
|
catalog.cattle.io/permits-os: linux, windows
|
||||||
|
catalog.cattle.io/rancher-version: '>= 2.15.0-0'
|
||||||
|
catalog.cattle.io/scope: management
|
||||||
|
catalog.cattle.io/ui-component: plugins
|
||||||
|
catalog.cattle.io/ui-extensions-version: '>= 3.0.0 < 4.0.0'
|
||||||
|
apiVersion: v2
|
||||||
|
appVersion: 1.10.0-rc2
|
||||||
|
created: "2026-11-20T17:51:38.252617069Z"
|
||||||
|
description: Rancher UI Extension for Harvester
|
||||||
|
digest: 56a490efe41f6836429aec71958ec3da4678e1406d5bd7efe2bf1a598e2e7a42
|
||||||
|
icon: https://raw.githubusercontent.com/harvester/harvester-ui-extension/main/pkg/harvester/icon.svg
|
||||||
|
name: harvester
|
||||||
|
type: application
|
||||||
|
urls:
|
||||||
|
- assets/harvester/harvester-1.10.0-rc2.tgz
|
||||||
|
version: 1.10.0-rc2
|
||||||
|
- annotations:
|
||||||
|
catalog.cattle.io/certified: rancher
|
||||||
|
catalog.cattle.io/display-name: Harvester
|
||||||
|
catalog.cattle.io/kube-version: '>= 1.16.0-0'
|
||||||
|
catalog.cattle.io/namespace: cattle-ui-plugin-system
|
||||||
|
catalog.cattle.io/os: linux
|
||||||
|
catalog.cattle.io/permits-os: linux, windows
|
||||||
|
catalog.cattle.io/rancher-version: '>= 2.15.0-0'
|
||||||
|
catalog.cattle.io/scope: management
|
||||||
|
catalog.cattle.io/ui-component: plugins
|
||||||
|
catalog.cattle.io/ui-extensions-version: '>= 3.0.0 < 4.0.0'
|
||||||
|
apiVersion: v2
|
||||||
|
appVersion: 1.10.0-rc1
|
||||||
|
created: "2026-10-29T16:37:53.21665994Z"
|
||||||
|
description: Rancher UI Extension for Harvester
|
||||||
|
digest: 061efb6e08a6fe30110eb1428646253d70207c0895249175cbaaecd225be6305
|
||||||
|
icon: https://raw.githubusercontent.com/harvester/harvester-ui-extension/main/pkg/harvester/icon.svg
|
||||||
|
name: harvester
|
||||||
|
type: application
|
||||||
|
urls:
|
||||||
|
- assets/harvester/harvester-1.10.0-rc1.tgz
|
||||||
|
version: 1.10.0-rc1
|
||||||
|
- annotations:
|
||||||
|
catalog.cattle.io/certified: rancher
|
||||||
|
catalog.cattle.io/display-name: Harvester
|
||||||
|
catalog.cattle.io/kube-version: '>= 1.16.0-0'
|
||||||
|
catalog.cattle.io/namespace: cattle-ui-plugin-system
|
||||||
|
catalog.cattle.io/os: linux
|
||||||
|
catalog.cattle.io/permits-os: linux, windows
|
||||||
|
catalog.cattle.io/rancher-version: '>= 2.15.0-0'
|
||||||
|
catalog.cattle.io/scope: management
|
||||||
|
catalog.cattle.io/ui-component: plugins
|
||||||
|
catalog.cattle.io/ui-extensions-version: '>= 3.0.0 < 4.0.0'
|
||||||
|
apiVersion: v2
|
||||||
|
appVersion: 1.10.0-dev
|
||||||
|
created: "2026-10-28T15:25:18.690559065Z"
|
||||||
|
description: Rancher UI Extension for Harvester
|
||||||
|
digest: 5097f4f52ce42f34d18a9bb40cec62c4ecf0e44254fb7c4c40be5b3b5396274a
|
||||||
|
icon: https://raw.githubusercontent.com/harvester/harvester-ui-extension/main/pkg/harvester/icon.svg
|
||||||
|
name: harvester
|
||||||
|
type: application
|
||||||
|
urls:
|
||||||
|
- assets/harvester/harvester-1.10.0-dev.tgz
|
||||||
|
version: 1.10.0-dev
|
||||||
|
- annotations:
|
||||||
|
catalog.cattle.io/certified: rancher
|
||||||
|
catalog.cattle.io/display-name: Harvester
|
||||||
|
catalog.cattle.io/kube-version: '>= 1.16.0-0'
|
||||||
|
catalog.cattle.io/namespace: cattle-ui-plugin-system
|
||||||
|
catalog.cattle.io/os: linux
|
||||||
|
catalog.cattle.io/permits-os: linux, windows
|
||||||
|
catalog.cattle.io/rancher-version: '>= 2.15.0-0'
|
||||||
|
catalog.cattle.io/scope: management
|
||||||
|
catalog.cattle.io/ui-component: plugins
|
||||||
|
catalog.cattle.io/ui-extensions-version: '>= 3.0.0 < 4.0.0'
|
||||||
|
apiVersion: v2
|
||||||
|
appVersion: 1.9.0
|
||||||
|
created: "2026-09-15T13:30:51.535724913Z"
|
||||||
|
description: Rancher UI Extension for Harvester
|
||||||
|
digest: b3b8ba75a19ffde85dce0ace87945f5fe85d9e40ae51663513cb13c634116b43
|
||||||
|
icon: https://raw.githubusercontent.com/harvester/harvester-ui-extension/main/pkg/harvester/icon.svg
|
||||||
|
name: harvester
|
||||||
|
type: application
|
||||||
|
urls:
|
||||||
|
- assets/harvester/harvester-1.9.0.tgz
|
||||||
|
version: 1.9.0
|
||||||
|
- annotations:
|
||||||
|
catalog.cattle.io/certified: rancher
|
||||||
|
catalog.cattle.io/display-name: Harvester
|
||||||
|
catalog.cattle.io/kube-version: '>= 1.16.0-0'
|
||||||
|
catalog.cattle.io/namespace: cattle-ui-plugin-system
|
||||||
|
catalog.cattle.io/os: linux
|
||||||
|
catalog.cattle.io/permits-os: linux, windows
|
||||||
|
catalog.cattle.io/rancher-version: '>= 2.14.0-0'
|
||||||
|
catalog.cattle.io/scope: management
|
||||||
|
catalog.cattle.io/ui-component: plugins
|
||||||
|
catalog.cattle.io/ui-extensions-version: '>= 3.0.0 < 4.0.0'
|
||||||
|
apiVersion: v2
|
||||||
|
appVersion: 1.8.2
|
||||||
|
created: "2026-08-06T03:37:29.641760406Z"
|
||||||
|
description: Rancher UI Extension for Harvester
|
||||||
|
digest: 268213cdf656bd6b995b1e96659eefd6a649e9166588442ed452ec6f9e37ded8
|
||||||
|
icon: https://raw.githubusercontent.com/harvester/harvester-ui-extension/main/pkg/harvester/icon.svg
|
||||||
|
name: harvester
|
||||||
|
type: application
|
||||||
|
urls:
|
||||||
|
- assets/harvester/harvester-1.8.2.tgz
|
||||||
|
version: 1.8.2
|
||||||
|
- annotations:
|
||||||
|
catalog.cattle.io/certified: rancher
|
||||||
|
catalog.cattle.io/display-name: Harvester
|
||||||
|
catalog.cattle.io/kube-version: '>= 1.16.0-0'
|
||||||
|
catalog.cattle.io/namespace: cattle-ui-plugin-system
|
||||||
|
catalog.cattle.io/os: linux
|
||||||
|
catalog.cattle.io/permits-os: linux, windows
|
||||||
|
catalog.cattle.io/rancher-version: '>= 2.14.0-0'
|
||||||
|
catalog.cattle.io/scope: management
|
||||||
|
catalog.cattle.io/ui-component: plugins
|
||||||
|
catalog.cattle.io/ui-extensions-version: '>= 3.0.0 < 4.0.0'
|
||||||
|
apiVersion: v2
|
||||||
|
appVersion: 1.8.1
|
||||||
|
created: "2026-06-29T09:03:05.788811487Z"
|
||||||
|
description: Rancher UI Extension for Harvester
|
||||||
|
digest: d3421615d52a305a3ffb160f09680200fc4336fb7cfd6153b9fd89c31aaf9e9c
|
||||||
|
icon: https://raw.githubusercontent.com/harvester/harvester-ui-extension/main/pkg/harvester/icon.svg
|
||||||
|
name: harvester
|
||||||
|
type: application
|
||||||
|
urls:
|
||||||
|
- assets/harvester/harvester-1.8.1.tgz
|
||||||
|
version: 1.8.1
|
||||||
|
- annotations:
|
||||||
|
catalog.cattle.io/certified: rancher
|
||||||
|
catalog.cattle.io/display-name: Harvester
|
||||||
|
catalog.cattle.io/kube-version: '>= 1.16.0-0'
|
||||||
|
catalog.cattle.io/namespace: cattle-ui-plugin-system
|
||||||
|
catalog.cattle.io/os: linux
|
||||||
|
catalog.cattle.io/permits-os: linux, windows
|
||||||
|
catalog.cattle.io/rancher-version: '>= 2.14.0-0'
|
||||||
|
catalog.cattle.io/scope: management
|
||||||
|
catalog.cattle.io/ui-component: plugins
|
||||||
|
catalog.cattle.io/ui-extensions-version: '>= 3.0.0 < 4.0.0'
|
||||||
|
apiVersion: v2
|
||||||
|
appVersion: 1.8.0
|
||||||
|
created: "2026-04-24T08:42:25.876102825Z"
|
||||||
|
description: Rancher UI Extension for Harvester
|
||||||
|
digest: 3d59157b1f071cf7e6da5efa2024c2484681075c18b1ef1ee9d114805b995af9
|
||||||
|
icon: https://raw.githubusercontent.com/harvester/harvester-ui-extension/main/pkg/harvester/icon.svg
|
||||||
|
name: harvester
|
||||||
|
type: application
|
||||||
|
urls:
|
||||||
|
- assets/harvester/harvester-1.8.0.tgz
|
||||||
|
version: 1.8.0
|
||||||
|
- annotations:
|
||||||
|
catalog.cattle.io/certified: rancher
|
||||||
|
catalog.cattle.io/display-name: Harvester
|
||||||
|
catalog.cattle.io/kube-version: '>= 1.16.0-0'
|
||||||
|
catalog.cattle.io/namespace: cattle-ui-plugin-system
|
||||||
|
catalog.cattle.io/os: linux
|
||||||
|
catalog.cattle.io/permits-os: linux, windows
|
||||||
|
catalog.cattle.io/rancher-version: '>= 2.13.0-0'
|
||||||
|
catalog.cattle.io/scope: management
|
||||||
|
catalog.cattle.io/ui-component: plugins
|
||||||
|
catalog.cattle.io/ui-extensions-version: '>= 3.0.0 < 4.0.0'
|
||||||
|
apiVersion: v2
|
||||||
|
appVersion: 1.7.3
|
||||||
|
created: "2026-08-13T02:40:24.127885544Z"
|
||||||
|
description: Rancher UI Extension for Harvester
|
||||||
|
digest: a6ca6cab128884cd2bb9b01cfb29cfa6778dbd4624c06068a05c6d7fcbc80635
|
||||||
|
icon: https://raw.githubusercontent.com/harvester/harvester-ui-extension/main/pkg/harvester/icon.svg
|
||||||
|
name: harvester
|
||||||
|
type: application
|
||||||
|
urls:
|
||||||
|
- assets/harvester/harvester-1.7.3.tgz
|
||||||
|
version: 1.7.3
|
||||||
|
- annotations:
|
||||||
|
catalog.cattle.io/certified: rancher
|
||||||
|
catalog.cattle.io/display-name: Harvester
|
||||||
|
catalog.cattle.io/kube-version: '>= 1.16.0-0'
|
||||||
|
catalog.cattle.io/namespace: cattle-ui-plugin-system
|
||||||
|
catalog.cattle.io/os: linux
|
||||||
|
catalog.cattle.io/permits-os: linux, windows
|
||||||
|
catalog.cattle.io/rancher-version: '>= 2.13.0-0'
|
||||||
|
catalog.cattle.io/scope: management
|
||||||
|
catalog.cattle.io/ui-component: plugins
|
||||||
|
catalog.cattle.io/ui-extensions-version: '>= 3.0.0 < 4.0.0'
|
||||||
|
apiVersion: v2
|
||||||
|
appVersion: 1.7.2
|
||||||
|
created: "2026-07-09T10:22:38.522196614Z"
|
||||||
|
description: Rancher UI Extension for Harvester
|
||||||
|
digest: 596cffcf148af5fed7ad4a42f31666265fff66b837c78442d77bf8288b681105
|
||||||
|
icon: https://raw.githubusercontent.com/harvester/harvester-ui-extension/main/pkg/harvester/icon.svg
|
||||||
|
name: harvester
|
||||||
|
type: application
|
||||||
|
urls:
|
||||||
|
- assets/harvester/harvester-1.7.2.tgz
|
||||||
|
version: 1.7.2
|
||||||
|
- annotations:
|
||||||
|
catalog.cattle.io/certified: rancher
|
||||||
|
catalog.cattle.io/display-name: Harvester
|
||||||
|
catalog.cattle.io/kube-version: '>= 1.16.0-0'
|
||||||
|
catalog.cattle.io/namespace: cattle-ui-plugin-system
|
||||||
|
catalog.cattle.io/os: linux
|
||||||
|
catalog.cattle.io/permits-os: linux, windows
|
||||||
|
catalog.cattle.io/rancher-version: '>= 2.13.0-0'
|
||||||
|
catalog.cattle.io/scope: management
|
||||||
|
catalog.cattle.io/ui-component: plugins
|
||||||
|
catalog.cattle.io/ui-extensions-version: '>= 3.0.0 < 4.0.0'
|
||||||
|
apiVersion: v2
|
||||||
|
appVersion: 1.7.1
|
||||||
|
created: "2026-02-09T01:38:47.352758035Z"
|
||||||
|
description: Rancher UI Extension for Harvester
|
||||||
|
digest: c570a3e3c94e82ead235d9466bac185d7b598900475deab0252d41164e9ee8b6
|
||||||
|
icon: https://raw.githubusercontent.com/harvester/harvester-ui-extension/main/pkg/harvester/icon.svg
|
||||||
|
name: harvester
|
||||||
|
type: application
|
||||||
|
urls:
|
||||||
|
- assets/harvester/harvester-1.7.1.tgz
|
||||||
|
version: 1.7.1
|
||||||
|
- annotations:
|
||||||
|
catalog.cattle.io/certified: rancher
|
||||||
|
catalog.cattle.io/display-name: Harvester
|
||||||
|
catalog.cattle.io/kube-version: '>= 1.16.0-0'
|
||||||
|
catalog.cattle.io/namespace: cattle-ui-plugin-system
|
||||||
|
catalog.cattle.io/os: linux
|
||||||
|
catalog.cattle.io/permits-os: linux, windows
|
||||||
|
catalog.cattle.io/rancher-version: '>= 2.13.0-0'
|
||||||
|
catalog.cattle.io/scope: management
|
||||||
|
catalog.cattle.io/ui-component: plugins
|
||||||
|
catalog.cattle.io/ui-extensions-version: '>= 3.0.0 < 4.0.0'
|
||||||
|
apiVersion: v2
|
||||||
|
appVersion: 1.7.0
|
||||||
|
created: "2025-12-22T05:51:53.138074031Z"
|
||||||
|
description: Rancher UI Extension for Harvester
|
||||||
|
digest: cd5c5510f7ae950080515d45a8fdff4e4783bb5f84aa1a3137beea9b31c36ca4
|
||||||
|
icon: https://raw.githubusercontent.com/harvester/harvester-ui-extension/main/pkg/harvester/icon.svg
|
||||||
|
name: harvester
|
||||||
|
type: application
|
||||||
|
urls:
|
||||||
|
- assets/harvester/harvester-1.7.0.tgz
|
||||||
|
version: 1.7.0
|
||||||
- annotations:
|
- annotations:
|
||||||
catalog.cattle.io/certified: rancher
|
catalog.cattle.io/certified: rancher
|
||||||
catalog.cattle.io/display-name: Harvester
|
catalog.cattle.io/display-name: Harvester
|
||||||
@@ -265,4 +529,4 @@ entries:
|
|||||||
urls:
|
urls:
|
||||||
- assets/harvester/harvester-1.0.0.tgz
|
- assets/harvester/harvester-1.0.0.tgz
|
||||||
version: 1.0.0
|
version: 1.0.0
|
||||||
generated: "2025-10-16T04:39:45.574460787Z"
|
generated: "2026-11-23T16:05:40.10399554Z"
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
annotations:
|
||||||
|
catalog.cattle.io/certified: rancher
|
||||||
|
catalog.cattle.io/namespace: cattle-ui-plugin-system
|
||||||
|
catalog.cattle.io/os: linux
|
||||||
|
catalog.cattle.io/permits-os: linux, windows
|
||||||
|
catalog.cattle.io/scope: management
|
||||||
|
catalog.cattle.io/ui-component: plugins
|
||||||
|
catalog.cattle.io/display-name: Harvester
|
||||||
|
catalog.cattle.io/kube-version: '>= 1.16.0-0'
|
||||||
|
catalog.cattle.io/rancher-version: '>= 2.15.0-0'
|
||||||
|
catalog.cattle.io/ui-extensions-version: '>= 3.0.0 < 4.0.0'
|
||||||
|
apiVersion: v2
|
||||||
|
appVersion: 1.10.0-dev
|
||||||
|
description: Rancher UI Extension for Harvester
|
||||||
|
name: harvester
|
||||||
|
type: application
|
||||||
|
version: 1.10.0-dev
|
||||||
|
icon: >-
|
||||||
|
https://raw.githubusercontent.com/harvester/harvester-ui-extension/main/pkg/harvester/icon.svg
|
||||||
@@ -0,0 +1,177 @@
|
|||||||
|
# harvester-ui-extension
|
||||||
|
|
||||||
|
The Harvester UI Extension is a Rancher extension that provides the user interface for [Harvester](https://harvesterhci.io) within the [Rancher Dashboard](https://github.com/rancher/dashboard).
|
||||||
|
|
||||||
|
> **Note:**
|
||||||
|
> This extension is available starting from **Rancher 2.10.0**. Ensure your Rancher version is **2.10.0 or later** to access Harvester integration.
|
||||||
|
|
||||||
|
## Installation
|
||||||
|
|
||||||
|
For Harvester UI extension installation instructions, please refer to the page **Rancher Integration** -> **Harvester UI Extension** in [official Harvester documentation](https://docs.harvesterhci.io).
|
||||||
|
|
||||||
|
## Development Setup
|
||||||
|
|
||||||
|
Ensure **Node.js v20 or later** is installed for development and debugging.
|
||||||
|
|
||||||
|
### Standalone Mode
|
||||||
|
|
||||||
|
Run the extension standalone with hot reload at `https://localhost:8005`.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Install dependencies
|
||||||
|
yarn install
|
||||||
|
|
||||||
|
# Start the development server
|
||||||
|
RANCHER_ENV=harvester API=https://your-harvester-ip yarn dev
|
||||||
|
|
||||||
|
# Example with specific server version
|
||||||
|
RANCHER_ENV=harvester VUE_APP_SERVER_VERSION=v1.5.0 API=https://192.168.1.123 yarn dev
|
||||||
|
```
|
||||||
|
|
||||||
|
You may also define environment variables in a `.env` file:
|
||||||
|
|
||||||
|
```env
|
||||||
|
RANCHER_ENV=harvester
|
||||||
|
VUE_APP_SERVER_VERSION=v1.5.0
|
||||||
|
API=https://192.168.1.123
|
||||||
|
```
|
||||||
|
|
||||||
|
### Rancher Integration Mode
|
||||||
|
|
||||||
|
To run as a Rancher extension, follow the [Rancher UI Extension Guide](https://extensions.rancher.io/extensions/next/extensions-getting-started#running-the-app).
|
||||||
|
|
||||||
|
```bash
|
||||||
|
API=https://your-rancher-ip yarn dev
|
||||||
|
```
|
||||||
|
|
||||||
|
## Commit Message Guidelines
|
||||||
|
|
||||||
|
This project uses [commit-lint](https://commitlint.js.org/) with [Conventional Commits](https://www.conventionalcommits.org/) to ensure consistent and meaningful commit messages.
|
||||||
|
|
||||||
|
### Commit Message Format
|
||||||
|
|
||||||
|
All commit messages must follow the conventional commit format:
|
||||||
|
|
||||||
|
```
|
||||||
|
<type>[optional scope]: <description>
|
||||||
|
|
||||||
|
[optional body]
|
||||||
|
|
||||||
|
[optional footer(s)]
|
||||||
|
```
|
||||||
|
|
||||||
|
### Supported Types
|
||||||
|
|
||||||
|
- **feat**: New features
|
||||||
|
- **fix**: Bug fixes
|
||||||
|
- **docs**: Documentation changes
|
||||||
|
- **style**: Code style changes (formatting, missing semicolons, etc.)
|
||||||
|
- **refactor**: Code refactoring
|
||||||
|
- **perf**: Performance improvements
|
||||||
|
- **test**: Adding or updating tests
|
||||||
|
- **build**: Build system or external dependencies
|
||||||
|
- **ci**: CI/CD changes
|
||||||
|
- **chore**: Other changes that don't modify src or test files
|
||||||
|
- **revert**: Reverts a previous commit
|
||||||
|
- **wip**: Work in progress
|
||||||
|
- **deps**: Dependency updates
|
||||||
|
- **security**: Security fixes
|
||||||
|
|
||||||
|
### Examples
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Feature
|
||||||
|
git commit -m "feat: add new virtual machine creation wizard"
|
||||||
|
|
||||||
|
# Bug fix
|
||||||
|
git commit -m "fix: resolve memory leak in VM console"
|
||||||
|
|
||||||
|
# Documentation
|
||||||
|
git commit -m "docs: update installation instructions"
|
||||||
|
|
||||||
|
# Breaking change
|
||||||
|
git commit -m "feat!: change API endpoint structure
|
||||||
|
|
||||||
|
BREAKING CHANGE: The /api/v1/vms endpoint has been replaced with /api/v2/vms"
|
||||||
|
```
|
||||||
|
|
||||||
|
### Git Hooks
|
||||||
|
|
||||||
|
The project uses [Husky](https://typicode.github.io/husky/) to automatically validate commit messages and run linting before commits:
|
||||||
|
|
||||||
|
- **pre-commit**: Runs ESLint to ensure code quality
|
||||||
|
- **commit-msg**: Validates commit message format using commit-lint
|
||||||
|
|
||||||
|
These hooks are automatically installed when you run `yarn install`.
|
||||||
|
|
||||||
|
### Manual Validation
|
||||||
|
|
||||||
|
You can manually validate commit messages:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Validate the last commit
|
||||||
|
yarn commitlint
|
||||||
|
|
||||||
|
# Validate a specific commit
|
||||||
|
npx commitlint --from <commit-hash>
|
||||||
|
|
||||||
|
# Validate a range of commits
|
||||||
|
npx commitlint --from <start-hash> --to <end-hash>
|
||||||
|
```
|
||||||
|
|
||||||
|
## Branch Structure
|
||||||
|
|
||||||
|
- **`main`** – Main development branch
|
||||||
|
- **`release-harvester-vX.Y`** – Stable release branches per version series
|
||||||
|
- **`vX.Y-head`** – Testing branches for ongoing changes to extension builds in each release series
|
||||||
|
|
||||||
|
> **Note:**
|
||||||
|
> The `vX.Y-head` branches are auto-generated and kept in sync with release branches. Use these for testing the latest changes in each version series.
|
||||||
|
|
||||||
|
## Testing Guidelines
|
||||||
|
|
||||||
|
### UI Extension Testing
|
||||||
|
|
||||||
|
To validate changes in a release series, switch to the appropriate `vX.Y-head` branch. For main branch testing, use `main-head`.
|
||||||
|
|
||||||
|
- Examples:
|
||||||
|
- Test `1.0.x` series → `v1.0-head`
|
||||||
|
- Test `1.5.x` series → `v1.5-head`
|
||||||
|
|
||||||
|
**Steps:**
|
||||||
|
1. Navigate to **Rancher UI** → **Local** → **App** → **Repositories**
|
||||||
|
2. Refresh the Harvester repository using the target `vX.Y-head` branch
|
||||||
|
3. Go to the **Extensions** page and install the desired version
|
||||||
|
|
||||||
|
### Standalone Mode Testing
|
||||||
|
|
||||||
|
To test the standalone UI, configure Harvester to load the UI from an external source.
|
||||||
|
|
||||||
|
- Examples of `ui-index`:
|
||||||
|
- Main branch → `https://releases.rancher.com/harvester-ui/dashboard/latest/index.html`
|
||||||
|
- Release series `1.5.x` → `https://releases.rancher.com/harvester-ui/dashboard/release-harvester-v1.5/index.html`
|
||||||
|
|
||||||
|
**Steps:**
|
||||||
|
1. Go to **Harvester UI** → **Advanced** → **Settings** → **UI**
|
||||||
|
2. Set **ui-source** to `External`
|
||||||
|
3. Set **ui-index** to the desired URL
|
||||||
|
|
||||||
|
## Contributing
|
||||||
|
|
||||||
|
If you want to contribute, start by reading this document, then visit our [Getting Started guide](https://extensions.rancher.io/extensions/next/extensions-getting-started) to learn how to develop and submit changes.
|
||||||
|
|
||||||
|
## License
|
||||||
|
|
||||||
|
Copyright (c) 2014-2026 [SUSE, LLC.](https://www.suse.com/)
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
[http://www.apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0)
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
@@ -0,0 +1,63 @@
|
|||||||
|
{{/*
|
||||||
|
Expand the name of the chart.
|
||||||
|
*/}}
|
||||||
|
{{- define "extension-server.name" -}}
|
||||||
|
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Create a default fully qualified app name.
|
||||||
|
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
|
||||||
|
If release name contains chart name it will be used as a full name.
|
||||||
|
*/}}
|
||||||
|
{{- define "extension-server.fullname" -}}
|
||||||
|
{{- if .Values.fullnameOverride }}
|
||||||
|
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- else }}
|
||||||
|
{{- $name := default .Chart.Name .Values.nameOverride }}
|
||||||
|
{{- if contains $name .Release.Name }}
|
||||||
|
{{- .Release.Name | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- else }}
|
||||||
|
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Create chart name and version as used by the chart label.
|
||||||
|
*/}}
|
||||||
|
{{- define "extension-server.chart" -}}
|
||||||
|
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Common labels
|
||||||
|
*/}}
|
||||||
|
{{- define "extension-server.labels" -}}
|
||||||
|
helm.sh/chart: {{ include "extension-server.chart" . }}
|
||||||
|
{{ include "extension-server.selectorLabels" . }}
|
||||||
|
{{- if .Chart.AppVersion }}
|
||||||
|
app.kubernetes.io/version: {{ .Chart.AppVersion | replace "+" "_" | quote }}
|
||||||
|
{{- end }}
|
||||||
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Selector labels
|
||||||
|
*/}}
|
||||||
|
{{- define "extension-server.selectorLabels" -}}
|
||||||
|
app.kubernetes.io/name: {{ include "extension-server.name" . }}
|
||||||
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Pkg annotations
|
||||||
|
*/}}
|
||||||
|
{{- define "extension-server.pluginMetadata" -}}
|
||||||
|
{{- with .Values.plugin.metadata }}
|
||||||
|
{{- range $key, $value := . }}
|
||||||
|
{{ $key }}: {{ $value | quote }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
apiVersion: catalog.cattle.io/v1
|
||||||
|
kind: UIPlugin
|
||||||
|
metadata:
|
||||||
|
name: {{ include "extension-server.fullname" . }}
|
||||||
|
namespace: {{ .Release.Namespace }}
|
||||||
|
labels: {{ include "extension-server.labels" . | nindent 4 }}
|
||||||
|
spec:
|
||||||
|
plugin:
|
||||||
|
name: {{ include "extension-server.fullname" . }}
|
||||||
|
version: {{ (semver (default .Chart.AppVersion .Values.plugin.versionOverride)).Original }}
|
||||||
|
endpoint: {{ .Values.plugin.endpoint | quote }}
|
||||||
|
compressedEndpoint: {{ .Values.plugin.compressedEndpoint | quote }}
|
||||||
|
noCache: {{ .Values.plugin.noCache }}
|
||||||
|
noAuth: {{ .Values.plugin.noAuth }}
|
||||||
|
metadata: {{ include "extension-server.pluginMetadata" . | indent 6 }}
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
nameOverride: ""
|
||||||
|
fullnameOverride: ""
|
||||||
|
plugin:
|
||||||
|
enabled: true
|
||||||
|
versionOverride: ""
|
||||||
|
endpoint: >-
|
||||||
|
https://raw.githubusercontent.com/harvester/harvester-ui-extension/v1.10-head/extensions/harvester/1.10.0-dev
|
||||||
|
compressedEndpoint: >-
|
||||||
|
https://raw.githubusercontent.com/harvester/harvester-ui-extension/v1.10-head/extensions/harvester/1.10.0-dev.tgz
|
||||||
|
noCache: false
|
||||||
|
noAuth: false
|
||||||
|
metadata:
|
||||||
|
catalog.cattle.io/display-name: Harvester
|
||||||
|
catalog.cattle.io/kube-version: ">= 1.16.0-0"
|
||||||
|
catalog.cattle.io/rancher-version: ">= 2.15.0-0"
|
||||||
|
catalog.cattle.io/ui-extensions-version: ">= 3.0.0 < 4.0.0"
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
annotations:
|
||||||
|
catalog.cattle.io/certified: rancher
|
||||||
|
catalog.cattle.io/namespace: cattle-ui-plugin-system
|
||||||
|
catalog.cattle.io/os: linux
|
||||||
|
catalog.cattle.io/permits-os: linux, windows
|
||||||
|
catalog.cattle.io/scope: management
|
||||||
|
catalog.cattle.io/ui-component: plugins
|
||||||
|
catalog.cattle.io/display-name: Harvester
|
||||||
|
catalog.cattle.io/kube-version: '>= 1.16.0-0'
|
||||||
|
catalog.cattle.io/rancher-version: '>= 2.15.0-0'
|
||||||
|
catalog.cattle.io/ui-extensions-version: '>= 3.0.0 < 4.0.0'
|
||||||
|
apiVersion: v2
|
||||||
|
appVersion: 1.10.0-rc1
|
||||||
|
description: Rancher UI Extension for Harvester
|
||||||
|
name: harvester
|
||||||
|
type: application
|
||||||
|
version: 1.10.0-rc1
|
||||||
|
icon: >-
|
||||||
|
https://raw.githubusercontent.com/harvester/harvester-ui-extension/main/pkg/harvester/icon.svg
|
||||||
@@ -0,0 +1,177 @@
|
|||||||
|
# harvester-ui-extension
|
||||||
|
|
||||||
|
The Harvester UI Extension is a Rancher extension that provides the user interface for [Harvester](https://harvesterhci.io) within the [Rancher Dashboard](https://github.com/rancher/dashboard).
|
||||||
|
|
||||||
|
> **Note:**
|
||||||
|
> This extension is available starting from **Rancher 2.10.0**. Ensure your Rancher version is **2.10.0 or later** to access Harvester integration.
|
||||||
|
|
||||||
|
## Installation
|
||||||
|
|
||||||
|
For Harvester UI extension installation instructions, please refer to the page **Rancher Integration** -> **Harvester UI Extension** in [official Harvester documentation](https://docs.harvesterhci.io).
|
||||||
|
|
||||||
|
## Development Setup
|
||||||
|
|
||||||
|
Ensure **Node.js v20 or later** is installed for development and debugging.
|
||||||
|
|
||||||
|
### Standalone Mode
|
||||||
|
|
||||||
|
Run the extension standalone with hot reload at `https://localhost:8005`.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Install dependencies
|
||||||
|
yarn install
|
||||||
|
|
||||||
|
# Start the development server
|
||||||
|
RANCHER_ENV=harvester API=https://your-harvester-ip yarn dev
|
||||||
|
|
||||||
|
# Example with specific server version
|
||||||
|
RANCHER_ENV=harvester VUE_APP_SERVER_VERSION=v1.5.0 API=https://192.168.1.123 yarn dev
|
||||||
|
```
|
||||||
|
|
||||||
|
You may also define environment variables in a `.env` file:
|
||||||
|
|
||||||
|
```env
|
||||||
|
RANCHER_ENV=harvester
|
||||||
|
VUE_APP_SERVER_VERSION=v1.5.0
|
||||||
|
API=https://192.168.1.123
|
||||||
|
```
|
||||||
|
|
||||||
|
### Rancher Integration Mode
|
||||||
|
|
||||||
|
To run as a Rancher extension, follow the [Rancher UI Extension Guide](https://extensions.rancher.io/extensions/next/extensions-getting-started#running-the-app).
|
||||||
|
|
||||||
|
```bash
|
||||||
|
API=https://your-rancher-ip yarn dev
|
||||||
|
```
|
||||||
|
|
||||||
|
## Commit Message Guidelines
|
||||||
|
|
||||||
|
This project uses [commit-lint](https://commitlint.js.org/) with [Conventional Commits](https://www.conventionalcommits.org/) to ensure consistent and meaningful commit messages.
|
||||||
|
|
||||||
|
### Commit Message Format
|
||||||
|
|
||||||
|
All commit messages must follow the conventional commit format:
|
||||||
|
|
||||||
|
```
|
||||||
|
<type>[optional scope]: <description>
|
||||||
|
|
||||||
|
[optional body]
|
||||||
|
|
||||||
|
[optional footer(s)]
|
||||||
|
```
|
||||||
|
|
||||||
|
### Supported Types
|
||||||
|
|
||||||
|
- **feat**: New features
|
||||||
|
- **fix**: Bug fixes
|
||||||
|
- **docs**: Documentation changes
|
||||||
|
- **style**: Code style changes (formatting, missing semicolons, etc.)
|
||||||
|
- **refactor**: Code refactoring
|
||||||
|
- **perf**: Performance improvements
|
||||||
|
- **test**: Adding or updating tests
|
||||||
|
- **build**: Build system or external dependencies
|
||||||
|
- **ci**: CI/CD changes
|
||||||
|
- **chore**: Other changes that don't modify src or test files
|
||||||
|
- **revert**: Reverts a previous commit
|
||||||
|
- **wip**: Work in progress
|
||||||
|
- **deps**: Dependency updates
|
||||||
|
- **security**: Security fixes
|
||||||
|
|
||||||
|
### Examples
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Feature
|
||||||
|
git commit -m "feat: add new virtual machine creation wizard"
|
||||||
|
|
||||||
|
# Bug fix
|
||||||
|
git commit -m "fix: resolve memory leak in VM console"
|
||||||
|
|
||||||
|
# Documentation
|
||||||
|
git commit -m "docs: update installation instructions"
|
||||||
|
|
||||||
|
# Breaking change
|
||||||
|
git commit -m "feat!: change API endpoint structure
|
||||||
|
|
||||||
|
BREAKING CHANGE: The /api/v1/vms endpoint has been replaced with /api/v2/vms"
|
||||||
|
```
|
||||||
|
|
||||||
|
### Git Hooks
|
||||||
|
|
||||||
|
The project uses [Husky](https://typicode.github.io/husky/) to automatically validate commit messages and run linting before commits:
|
||||||
|
|
||||||
|
- **pre-commit**: Runs ESLint to ensure code quality
|
||||||
|
- **commit-msg**: Validates commit message format using commit-lint
|
||||||
|
|
||||||
|
These hooks are automatically installed when you run `yarn install`.
|
||||||
|
|
||||||
|
### Manual Validation
|
||||||
|
|
||||||
|
You can manually validate commit messages:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Validate the last commit
|
||||||
|
yarn commitlint
|
||||||
|
|
||||||
|
# Validate a specific commit
|
||||||
|
npx commitlint --from <commit-hash>
|
||||||
|
|
||||||
|
# Validate a range of commits
|
||||||
|
npx commitlint --from <start-hash> --to <end-hash>
|
||||||
|
```
|
||||||
|
|
||||||
|
## Branch Structure
|
||||||
|
|
||||||
|
- **`main`** – Main development branch
|
||||||
|
- **`release-harvester-vX.Y`** – Stable release branches per version series
|
||||||
|
- **`vX.Y-head`** – Testing branches for ongoing changes to extension builds in each release series
|
||||||
|
|
||||||
|
> **Note:**
|
||||||
|
> The `vX.Y-head` branches are auto-generated and kept in sync with release branches. Use these for testing the latest changes in each version series.
|
||||||
|
|
||||||
|
## Testing Guidelines
|
||||||
|
|
||||||
|
### UI Extension Testing
|
||||||
|
|
||||||
|
To validate changes in a release series, switch to the appropriate `vX.Y-head` branch. For main branch testing, use `main-head`.
|
||||||
|
|
||||||
|
- Examples:
|
||||||
|
- Test `1.0.x` series → `v1.0-head`
|
||||||
|
- Test `1.5.x` series → `v1.5-head`
|
||||||
|
|
||||||
|
**Steps:**
|
||||||
|
1. Navigate to **Rancher UI** → **Local** → **App** → **Repositories**
|
||||||
|
2. Refresh the Harvester repository using the target `vX.Y-head` branch
|
||||||
|
3. Go to the **Extensions** page and install the desired version
|
||||||
|
|
||||||
|
### Standalone Mode Testing
|
||||||
|
|
||||||
|
To test the standalone UI, configure Harvester to load the UI from an external source.
|
||||||
|
|
||||||
|
- Examples of `ui-index`:
|
||||||
|
- Main branch → `https://releases.rancher.com/harvester-ui/dashboard/latest/index.html`
|
||||||
|
- Release series `1.5.x` → `https://releases.rancher.com/harvester-ui/dashboard/release-harvester-v1.5/index.html`
|
||||||
|
|
||||||
|
**Steps:**
|
||||||
|
1. Go to **Harvester UI** → **Advanced** → **Settings** → **UI**
|
||||||
|
2. Set **ui-source** to `External`
|
||||||
|
3. Set **ui-index** to the desired URL
|
||||||
|
|
||||||
|
## Contributing
|
||||||
|
|
||||||
|
If you want to contribute, start by reading this document, then visit our [Getting Started guide](https://extensions.rancher.io/extensions/next/extensions-getting-started) to learn how to develop and submit changes.
|
||||||
|
|
||||||
|
## License
|
||||||
|
|
||||||
|
Copyright (c) 2014-2026 [SUSE, LLC.](https://www.suse.com/)
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
[http://www.apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0)
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
@@ -0,0 +1,63 @@
|
|||||||
|
{{/*
|
||||||
|
Expand the name of the chart.
|
||||||
|
*/}}
|
||||||
|
{{- define "extension-server.name" -}}
|
||||||
|
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Create a default fully qualified app name.
|
||||||
|
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
|
||||||
|
If release name contains chart name it will be used as a full name.
|
||||||
|
*/}}
|
||||||
|
{{- define "extension-server.fullname" -}}
|
||||||
|
{{- if .Values.fullnameOverride }}
|
||||||
|
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- else }}
|
||||||
|
{{- $name := default .Chart.Name .Values.nameOverride }}
|
||||||
|
{{- if contains $name .Release.Name }}
|
||||||
|
{{- .Release.Name | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- else }}
|
||||||
|
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Create chart name and version as used by the chart label.
|
||||||
|
*/}}
|
||||||
|
{{- define "extension-server.chart" -}}
|
||||||
|
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Common labels
|
||||||
|
*/}}
|
||||||
|
{{- define "extension-server.labels" -}}
|
||||||
|
helm.sh/chart: {{ include "extension-server.chart" . }}
|
||||||
|
{{ include "extension-server.selectorLabels" . }}
|
||||||
|
{{- if .Chart.AppVersion }}
|
||||||
|
app.kubernetes.io/version: {{ .Chart.AppVersion | replace "+" "_" | quote }}
|
||||||
|
{{- end }}
|
||||||
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Selector labels
|
||||||
|
*/}}
|
||||||
|
{{- define "extension-server.selectorLabels" -}}
|
||||||
|
app.kubernetes.io/name: {{ include "extension-server.name" . }}
|
||||||
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Pkg annotations
|
||||||
|
*/}}
|
||||||
|
{{- define "extension-server.pluginMetadata" -}}
|
||||||
|
{{- with .Values.plugin.metadata }}
|
||||||
|
{{- range $key, $value := . }}
|
||||||
|
{{ $key }}: {{ $value | quote }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
apiVersion: catalog.cattle.io/v1
|
||||||
|
kind: UIPlugin
|
||||||
|
metadata:
|
||||||
|
name: {{ include "extension-server.fullname" . }}
|
||||||
|
namespace: {{ .Release.Namespace }}
|
||||||
|
labels: {{ include "extension-server.labels" . | nindent 4 }}
|
||||||
|
spec:
|
||||||
|
plugin:
|
||||||
|
name: {{ include "extension-server.fullname" . }}
|
||||||
|
version: {{ (semver (default .Chart.AppVersion .Values.plugin.versionOverride)).Original }}
|
||||||
|
endpoint: {{ .Values.plugin.endpoint | quote }}
|
||||||
|
compressedEndpoint: {{ .Values.plugin.compressedEndpoint | quote }}
|
||||||
|
noCache: {{ .Values.plugin.noCache }}
|
||||||
|
noAuth: {{ .Values.plugin.noAuth }}
|
||||||
|
metadata: {{ include "extension-server.pluginMetadata" . | indent 6 }}
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
nameOverride: ""
|
||||||
|
fullnameOverride: ""
|
||||||
|
plugin:
|
||||||
|
enabled: true
|
||||||
|
versionOverride: ""
|
||||||
|
endpoint: >-
|
||||||
|
https://raw.githubusercontent.com/harvester/harvester-ui-extension/v1.10-head/extensions/harvester/1.10.0-rc1
|
||||||
|
compressedEndpoint: >-
|
||||||
|
https://raw.githubusercontent.com/harvester/harvester-ui-extension/v1.10-head/extensions/harvester/1.10.0-rc1.tgz
|
||||||
|
noCache: false
|
||||||
|
noAuth: false
|
||||||
|
metadata:
|
||||||
|
catalog.cattle.io/display-name: Harvester
|
||||||
|
catalog.cattle.io/kube-version: ">= 1.16.0-0"
|
||||||
|
catalog.cattle.io/rancher-version: ">= 2.15.0-0"
|
||||||
|
catalog.cattle.io/ui-extensions-version: ">= 3.0.0 < 4.0.0"
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
annotations:
|
||||||
|
catalog.cattle.io/certified: rancher
|
||||||
|
catalog.cattle.io/namespace: cattle-ui-plugin-system
|
||||||
|
catalog.cattle.io/os: linux
|
||||||
|
catalog.cattle.io/permits-os: linux, windows
|
||||||
|
catalog.cattle.io/scope: management
|
||||||
|
catalog.cattle.io/ui-component: plugins
|
||||||
|
catalog.cattle.io/display-name: Harvester
|
||||||
|
catalog.cattle.io/kube-version: '>= 1.16.0-0'
|
||||||
|
catalog.cattle.io/rancher-version: '>= 2.15.0-0'
|
||||||
|
catalog.cattle.io/ui-extensions-version: '>= 3.0.0 < 4.0.0'
|
||||||
|
apiVersion: v2
|
||||||
|
appVersion: 1.10.0-rc2
|
||||||
|
description: Rancher UI Extension for Harvester
|
||||||
|
name: harvester
|
||||||
|
type: application
|
||||||
|
version: 1.10.0-rc2
|
||||||
|
icon: >-
|
||||||
|
https://raw.githubusercontent.com/harvester/harvester-ui-extension/main/pkg/harvester/icon.svg
|
||||||
@@ -0,0 +1,177 @@
|
|||||||
|
# harvester-ui-extension
|
||||||
|
|
||||||
|
The Harvester UI Extension is a Rancher extension that provides the user interface for [Harvester](https://harvesterhci.io) within the [Rancher Dashboard](https://github.com/rancher/dashboard).
|
||||||
|
|
||||||
|
> **Note:**
|
||||||
|
> This extension is available starting from **Rancher 2.10.0**. Ensure your Rancher version is **2.10.0 or later** to access Harvester integration.
|
||||||
|
|
||||||
|
## Installation
|
||||||
|
|
||||||
|
For Harvester UI extension installation instructions, please refer to the page **Rancher Integration** -> **Harvester UI Extension** in [official Harvester documentation](https://docs.harvesterhci.io).
|
||||||
|
|
||||||
|
## Development Setup
|
||||||
|
|
||||||
|
Ensure **Node.js v20 or later** is installed for development and debugging.
|
||||||
|
|
||||||
|
### Standalone Mode
|
||||||
|
|
||||||
|
Run the extension standalone with hot reload at `https://localhost:8005`.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Install dependencies
|
||||||
|
yarn install
|
||||||
|
|
||||||
|
# Start the development server
|
||||||
|
RANCHER_ENV=harvester API=https://your-harvester-ip yarn dev
|
||||||
|
|
||||||
|
# Example with specific server version
|
||||||
|
RANCHER_ENV=harvester VUE_APP_SERVER_VERSION=v1.5.0 API=https://192.168.1.123 yarn dev
|
||||||
|
```
|
||||||
|
|
||||||
|
You may also define environment variables in a `.env` file:
|
||||||
|
|
||||||
|
```env
|
||||||
|
RANCHER_ENV=harvester
|
||||||
|
VUE_APP_SERVER_VERSION=v1.5.0
|
||||||
|
API=https://192.168.1.123
|
||||||
|
```
|
||||||
|
|
||||||
|
### Rancher Integration Mode
|
||||||
|
|
||||||
|
To run as a Rancher extension, follow the [Rancher UI Extension Guide](https://extensions.rancher.io/extensions/next/extensions-getting-started#running-the-app).
|
||||||
|
|
||||||
|
```bash
|
||||||
|
API=https://your-rancher-ip yarn dev
|
||||||
|
```
|
||||||
|
|
||||||
|
## Commit Message Guidelines
|
||||||
|
|
||||||
|
This project uses [commit-lint](https://commitlint.js.org/) with [Conventional Commits](https://www.conventionalcommits.org/) to ensure consistent and meaningful commit messages.
|
||||||
|
|
||||||
|
### Commit Message Format
|
||||||
|
|
||||||
|
All commit messages must follow the conventional commit format:
|
||||||
|
|
||||||
|
```
|
||||||
|
<type>[optional scope]: <description>
|
||||||
|
|
||||||
|
[optional body]
|
||||||
|
|
||||||
|
[optional footer(s)]
|
||||||
|
```
|
||||||
|
|
||||||
|
### Supported Types
|
||||||
|
|
||||||
|
- **feat**: New features
|
||||||
|
- **fix**: Bug fixes
|
||||||
|
- **docs**: Documentation changes
|
||||||
|
- **style**: Code style changes (formatting, missing semicolons, etc.)
|
||||||
|
- **refactor**: Code refactoring
|
||||||
|
- **perf**: Performance improvements
|
||||||
|
- **test**: Adding or updating tests
|
||||||
|
- **build**: Build system or external dependencies
|
||||||
|
- **ci**: CI/CD changes
|
||||||
|
- **chore**: Other changes that don't modify src or test files
|
||||||
|
- **revert**: Reverts a previous commit
|
||||||
|
- **wip**: Work in progress
|
||||||
|
- **deps**: Dependency updates
|
||||||
|
- **security**: Security fixes
|
||||||
|
|
||||||
|
### Examples
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Feature
|
||||||
|
git commit -m "feat: add new virtual machine creation wizard"
|
||||||
|
|
||||||
|
# Bug fix
|
||||||
|
git commit -m "fix: resolve memory leak in VM console"
|
||||||
|
|
||||||
|
# Documentation
|
||||||
|
git commit -m "docs: update installation instructions"
|
||||||
|
|
||||||
|
# Breaking change
|
||||||
|
git commit -m "feat!: change API endpoint structure
|
||||||
|
|
||||||
|
BREAKING CHANGE: The /api/v1/vms endpoint has been replaced with /api/v2/vms"
|
||||||
|
```
|
||||||
|
|
||||||
|
### Git Hooks
|
||||||
|
|
||||||
|
The project uses [Husky](https://typicode.github.io/husky/) to automatically validate commit messages and run linting before commits:
|
||||||
|
|
||||||
|
- **pre-commit**: Runs ESLint to ensure code quality
|
||||||
|
- **commit-msg**: Validates commit message format using commit-lint
|
||||||
|
|
||||||
|
These hooks are automatically installed when you run `yarn install`.
|
||||||
|
|
||||||
|
### Manual Validation
|
||||||
|
|
||||||
|
You can manually validate commit messages:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Validate the last commit
|
||||||
|
yarn commitlint
|
||||||
|
|
||||||
|
# Validate a specific commit
|
||||||
|
npx commitlint --from <commit-hash>
|
||||||
|
|
||||||
|
# Validate a range of commits
|
||||||
|
npx commitlint --from <start-hash> --to <end-hash>
|
||||||
|
```
|
||||||
|
|
||||||
|
## Branch Structure
|
||||||
|
|
||||||
|
- **`main`** – Main development branch
|
||||||
|
- **`release-harvester-vX.Y`** – Stable release branches per version series
|
||||||
|
- **`vX.Y-head`** – Testing branches for ongoing changes to extension builds in each release series
|
||||||
|
|
||||||
|
> **Note:**
|
||||||
|
> The `vX.Y-head` branches are auto-generated and kept in sync with release branches. Use these for testing the latest changes in each version series.
|
||||||
|
|
||||||
|
## Testing Guidelines
|
||||||
|
|
||||||
|
### UI Extension Testing
|
||||||
|
|
||||||
|
To validate changes in a release series, switch to the appropriate `vX.Y-head` branch. For main branch testing, use `main-head`.
|
||||||
|
|
||||||
|
- Examples:
|
||||||
|
- Test `1.0.x` series → `v1.0-head`
|
||||||
|
- Test `1.5.x` series → `v1.5-head`
|
||||||
|
|
||||||
|
**Steps:**
|
||||||
|
1. Navigate to **Rancher UI** → **Local** → **App** → **Repositories**
|
||||||
|
2. Refresh the Harvester repository using the target `vX.Y-head` branch
|
||||||
|
3. Go to the **Extensions** page and install the desired version
|
||||||
|
|
||||||
|
### Standalone Mode Testing
|
||||||
|
|
||||||
|
To test the standalone UI, configure Harvester to load the UI from an external source.
|
||||||
|
|
||||||
|
- Examples of `ui-index`:
|
||||||
|
- Main branch → `https://releases.rancher.com/harvester-ui/dashboard/latest/index.html`
|
||||||
|
- Release series `1.5.x` → `https://releases.rancher.com/harvester-ui/dashboard/release-harvester-v1.5/index.html`
|
||||||
|
|
||||||
|
**Steps:**
|
||||||
|
1. Go to **Harvester UI** → **Advanced** → **Settings** → **UI**
|
||||||
|
2. Set **ui-source** to `External`
|
||||||
|
3. Set **ui-index** to the desired URL
|
||||||
|
|
||||||
|
## Contributing
|
||||||
|
|
||||||
|
If you want to contribute, start by reading this document, then visit our [Getting Started guide](https://extensions.rancher.io/extensions/next/extensions-getting-started) to learn how to develop and submit changes.
|
||||||
|
|
||||||
|
## License
|
||||||
|
|
||||||
|
Copyright (c) 2014-2026 [SUSE, LLC.](https://www.suse.com/)
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
[http://www.apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0)
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
@@ -0,0 +1,63 @@
|
|||||||
|
{{/*
|
||||||
|
Expand the name of the chart.
|
||||||
|
*/}}
|
||||||
|
{{- define "extension-server.name" -}}
|
||||||
|
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Create a default fully qualified app name.
|
||||||
|
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
|
||||||
|
If release name contains chart name it will be used as a full name.
|
||||||
|
*/}}
|
||||||
|
{{- define "extension-server.fullname" -}}
|
||||||
|
{{- if .Values.fullnameOverride }}
|
||||||
|
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- else }}
|
||||||
|
{{- $name := default .Chart.Name .Values.nameOverride }}
|
||||||
|
{{- if contains $name .Release.Name }}
|
||||||
|
{{- .Release.Name | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- else }}
|
||||||
|
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Create chart name and version as used by the chart label.
|
||||||
|
*/}}
|
||||||
|
{{- define "extension-server.chart" -}}
|
||||||
|
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Common labels
|
||||||
|
*/}}
|
||||||
|
{{- define "extension-server.labels" -}}
|
||||||
|
helm.sh/chart: {{ include "extension-server.chart" . }}
|
||||||
|
{{ include "extension-server.selectorLabels" . }}
|
||||||
|
{{- if .Chart.AppVersion }}
|
||||||
|
app.kubernetes.io/version: {{ .Chart.AppVersion | replace "+" "_" | quote }}
|
||||||
|
{{- end }}
|
||||||
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Selector labels
|
||||||
|
*/}}
|
||||||
|
{{- define "extension-server.selectorLabels" -}}
|
||||||
|
app.kubernetes.io/name: {{ include "extension-server.name" . }}
|
||||||
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Pkg annotations
|
||||||
|
*/}}
|
||||||
|
{{- define "extension-server.pluginMetadata" -}}
|
||||||
|
{{- with .Values.plugin.metadata }}
|
||||||
|
{{- range $key, $value := . }}
|
||||||
|
{{ $key }}: {{ $value | quote }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
apiVersion: catalog.cattle.io/v1
|
||||||
|
kind: UIPlugin
|
||||||
|
metadata:
|
||||||
|
name: {{ include "extension-server.fullname" . }}
|
||||||
|
namespace: {{ .Release.Namespace }}
|
||||||
|
labels: {{ include "extension-server.labels" . | nindent 4 }}
|
||||||
|
spec:
|
||||||
|
plugin:
|
||||||
|
name: {{ include "extension-server.fullname" . }}
|
||||||
|
version: {{ (semver (default .Chart.AppVersion .Values.plugin.versionOverride)).Original }}
|
||||||
|
endpoint: {{ .Values.plugin.endpoint | quote }}
|
||||||
|
compressedEndpoint: {{ .Values.plugin.compressedEndpoint | quote }}
|
||||||
|
noCache: {{ .Values.plugin.noCache }}
|
||||||
|
noAuth: {{ .Values.plugin.noAuth }}
|
||||||
|
metadata: {{ include "extension-server.pluginMetadata" . | indent 6 }}
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
nameOverride: ""
|
||||||
|
fullnameOverride: ""
|
||||||
|
plugin:
|
||||||
|
enabled: true
|
||||||
|
versionOverride: ""
|
||||||
|
endpoint: >-
|
||||||
|
https://raw.githubusercontent.com/harvester/harvester-ui-extension/v1.10-head/extensions/harvester/1.10.0-rc2
|
||||||
|
compressedEndpoint: >-
|
||||||
|
https://raw.githubusercontent.com/harvester/harvester-ui-extension/v1.10-head/extensions/harvester/1.10.0-rc2.tgz
|
||||||
|
noCache: false
|
||||||
|
noAuth: false
|
||||||
|
metadata:
|
||||||
|
catalog.cattle.io/display-name: Harvester
|
||||||
|
catalog.cattle.io/kube-version: ">= 1.16.0-0"
|
||||||
|
catalog.cattle.io/rancher-version: ">= 2.15.0-0"
|
||||||
|
catalog.cattle.io/ui-extensions-version: ">= 3.0.0 < 4.0.0"
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
annotations:
|
||||||
|
catalog.cattle.io/certified: rancher
|
||||||
|
catalog.cattle.io/namespace: cattle-ui-plugin-system
|
||||||
|
catalog.cattle.io/os: linux
|
||||||
|
catalog.cattle.io/permits-os: linux, windows
|
||||||
|
catalog.cattle.io/scope: management
|
||||||
|
catalog.cattle.io/ui-component: plugins
|
||||||
|
catalog.cattle.io/display-name: Harvester
|
||||||
|
catalog.cattle.io/kube-version: '>= 1.16.0-0'
|
||||||
|
catalog.cattle.io/rancher-version: '>= 2.15.0-0'
|
||||||
|
catalog.cattle.io/ui-extensions-version: '>= 3.0.0 < 4.0.0'
|
||||||
|
apiVersion: v2
|
||||||
|
appVersion: 1.10.0-rc3
|
||||||
|
description: Rancher UI Extension for Harvester
|
||||||
|
name: harvester
|
||||||
|
type: application
|
||||||
|
version: 1.10.0-rc3
|
||||||
|
icon: >-
|
||||||
|
https://raw.githubusercontent.com/harvester/harvester-ui-extension/main/pkg/harvester/icon.svg
|
||||||
@@ -0,0 +1,177 @@
|
|||||||
|
# harvester-ui-extension
|
||||||
|
|
||||||
|
The Harvester UI Extension is a Rancher extension that provides the user interface for [Harvester](https://harvesterhci.io) within the [Rancher Dashboard](https://github.com/rancher/dashboard).
|
||||||
|
|
||||||
|
> **Note:**
|
||||||
|
> This extension is available starting from **Rancher 2.10.0**. Ensure your Rancher version is **2.10.0 or later** to access Harvester integration.
|
||||||
|
|
||||||
|
## Installation
|
||||||
|
|
||||||
|
For Harvester UI extension installation instructions, please refer to the page **Rancher Integration** -> **Harvester UI Extension** in [official Harvester documentation](https://docs.harvesterhci.io).
|
||||||
|
|
||||||
|
## Development Setup
|
||||||
|
|
||||||
|
Ensure **Node.js v20 or later** is installed for development and debugging.
|
||||||
|
|
||||||
|
### Standalone Mode
|
||||||
|
|
||||||
|
Run the extension standalone with hot reload at `https://localhost:8005`.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Install dependencies
|
||||||
|
yarn install
|
||||||
|
|
||||||
|
# Start the development server
|
||||||
|
RANCHER_ENV=harvester API=https://your-harvester-ip yarn dev
|
||||||
|
|
||||||
|
# Example with specific server version
|
||||||
|
RANCHER_ENV=harvester VUE_APP_SERVER_VERSION=v1.5.0 API=https://192.168.1.123 yarn dev
|
||||||
|
```
|
||||||
|
|
||||||
|
You may also define environment variables in a `.env` file:
|
||||||
|
|
||||||
|
```env
|
||||||
|
RANCHER_ENV=harvester
|
||||||
|
VUE_APP_SERVER_VERSION=v1.5.0
|
||||||
|
API=https://192.168.1.123
|
||||||
|
```
|
||||||
|
|
||||||
|
### Rancher Integration Mode
|
||||||
|
|
||||||
|
To run as a Rancher extension, follow the [Rancher UI Extension Guide](https://extensions.rancher.io/extensions/next/extensions-getting-started#running-the-app).
|
||||||
|
|
||||||
|
```bash
|
||||||
|
API=https://your-rancher-ip yarn dev
|
||||||
|
```
|
||||||
|
|
||||||
|
## Commit Message Guidelines
|
||||||
|
|
||||||
|
This project uses [commit-lint](https://commitlint.js.org/) with [Conventional Commits](https://www.conventionalcommits.org/) to ensure consistent and meaningful commit messages.
|
||||||
|
|
||||||
|
### Commit Message Format
|
||||||
|
|
||||||
|
All commit messages must follow the conventional commit format:
|
||||||
|
|
||||||
|
```
|
||||||
|
<type>[optional scope]: <description>
|
||||||
|
|
||||||
|
[optional body]
|
||||||
|
|
||||||
|
[optional footer(s)]
|
||||||
|
```
|
||||||
|
|
||||||
|
### Supported Types
|
||||||
|
|
||||||
|
- **feat**: New features
|
||||||
|
- **fix**: Bug fixes
|
||||||
|
- **docs**: Documentation changes
|
||||||
|
- **style**: Code style changes (formatting, missing semicolons, etc.)
|
||||||
|
- **refactor**: Code refactoring
|
||||||
|
- **perf**: Performance improvements
|
||||||
|
- **test**: Adding or updating tests
|
||||||
|
- **build**: Build system or external dependencies
|
||||||
|
- **ci**: CI/CD changes
|
||||||
|
- **chore**: Other changes that don't modify src or test files
|
||||||
|
- **revert**: Reverts a previous commit
|
||||||
|
- **wip**: Work in progress
|
||||||
|
- **deps**: Dependency updates
|
||||||
|
- **security**: Security fixes
|
||||||
|
|
||||||
|
### Examples
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Feature
|
||||||
|
git commit -m "feat: add new virtual machine creation wizard"
|
||||||
|
|
||||||
|
# Bug fix
|
||||||
|
git commit -m "fix: resolve memory leak in VM console"
|
||||||
|
|
||||||
|
# Documentation
|
||||||
|
git commit -m "docs: update installation instructions"
|
||||||
|
|
||||||
|
# Breaking change
|
||||||
|
git commit -m "feat!: change API endpoint structure
|
||||||
|
|
||||||
|
BREAKING CHANGE: The /api/v1/vms endpoint has been replaced with /api/v2/vms"
|
||||||
|
```
|
||||||
|
|
||||||
|
### Git Hooks
|
||||||
|
|
||||||
|
The project uses [Husky](https://typicode.github.io/husky/) to automatically validate commit messages and run linting before commits:
|
||||||
|
|
||||||
|
- **pre-commit**: Runs ESLint to ensure code quality
|
||||||
|
- **commit-msg**: Validates commit message format using commit-lint
|
||||||
|
|
||||||
|
These hooks are automatically installed when you run `yarn install`.
|
||||||
|
|
||||||
|
### Manual Validation
|
||||||
|
|
||||||
|
You can manually validate commit messages:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Validate the last commit
|
||||||
|
yarn commitlint
|
||||||
|
|
||||||
|
# Validate a specific commit
|
||||||
|
npx commitlint --from <commit-hash>
|
||||||
|
|
||||||
|
# Validate a range of commits
|
||||||
|
npx commitlint --from <start-hash> --to <end-hash>
|
||||||
|
```
|
||||||
|
|
||||||
|
## Branch Structure
|
||||||
|
|
||||||
|
- **`main`** – Main development branch
|
||||||
|
- **`release-harvester-vX.Y`** – Stable release branches per version series
|
||||||
|
- **`vX.Y-head`** – Testing branches for ongoing changes to extension builds in each release series
|
||||||
|
|
||||||
|
> **Note:**
|
||||||
|
> The `vX.Y-head` branches are auto-generated and kept in sync with release branches. Use these for testing the latest changes in each version series.
|
||||||
|
|
||||||
|
## Testing Guidelines
|
||||||
|
|
||||||
|
### UI Extension Testing
|
||||||
|
|
||||||
|
To validate changes in a release series, switch to the appropriate `vX.Y-head` branch. For main branch testing, use `main-head`.
|
||||||
|
|
||||||
|
- Examples:
|
||||||
|
- Test `1.0.x` series → `v1.0-head`
|
||||||
|
- Test `1.5.x` series → `v1.5-head`
|
||||||
|
|
||||||
|
**Steps:**
|
||||||
|
1. Navigate to **Rancher UI** → **Local** → **App** → **Repositories**
|
||||||
|
2. Refresh the Harvester repository using the target `vX.Y-head` branch
|
||||||
|
3. Go to the **Extensions** page and install the desired version
|
||||||
|
|
||||||
|
### Standalone Mode Testing
|
||||||
|
|
||||||
|
To test the standalone UI, configure Harvester to load the UI from an external source.
|
||||||
|
|
||||||
|
- Examples of `ui-index`:
|
||||||
|
- Main branch → `https://releases.rancher.com/harvester-ui/dashboard/latest/index.html`
|
||||||
|
- Release series `1.5.x` → `https://releases.rancher.com/harvester-ui/dashboard/release-harvester-v1.5/index.html`
|
||||||
|
|
||||||
|
**Steps:**
|
||||||
|
1. Go to **Harvester UI** → **Advanced** → **Settings** → **UI**
|
||||||
|
2. Set **ui-source** to `External`
|
||||||
|
3. Set **ui-index** to the desired URL
|
||||||
|
|
||||||
|
## Contributing
|
||||||
|
|
||||||
|
If you want to contribute, start by reading this document, then visit our [Getting Started guide](https://extensions.rancher.io/extensions/next/extensions-getting-started) to learn how to develop and submit changes.
|
||||||
|
|
||||||
|
## License
|
||||||
|
|
||||||
|
Copyright (c) 2014-2026 [SUSE, LLC.](https://www.suse.com/)
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
[http://www.apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0)
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
@@ -0,0 +1,63 @@
|
|||||||
|
{{/*
|
||||||
|
Expand the name of the chart.
|
||||||
|
*/}}
|
||||||
|
{{- define "extension-server.name" -}}
|
||||||
|
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Create a default fully qualified app name.
|
||||||
|
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
|
||||||
|
If release name contains chart name it will be used as a full name.
|
||||||
|
*/}}
|
||||||
|
{{- define "extension-server.fullname" -}}
|
||||||
|
{{- if .Values.fullnameOverride }}
|
||||||
|
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- else }}
|
||||||
|
{{- $name := default .Chart.Name .Values.nameOverride }}
|
||||||
|
{{- if contains $name .Release.Name }}
|
||||||
|
{{- .Release.Name | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- else }}
|
||||||
|
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Create chart name and version as used by the chart label.
|
||||||
|
*/}}
|
||||||
|
{{- define "extension-server.chart" -}}
|
||||||
|
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Common labels
|
||||||
|
*/}}
|
||||||
|
{{- define "extension-server.labels" -}}
|
||||||
|
helm.sh/chart: {{ include "extension-server.chart" . }}
|
||||||
|
{{ include "extension-server.selectorLabels" . }}
|
||||||
|
{{- if .Chart.AppVersion }}
|
||||||
|
app.kubernetes.io/version: {{ .Chart.AppVersion | replace "+" "_" | quote }}
|
||||||
|
{{- end }}
|
||||||
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Selector labels
|
||||||
|
*/}}
|
||||||
|
{{- define "extension-server.selectorLabels" -}}
|
||||||
|
app.kubernetes.io/name: {{ include "extension-server.name" . }}
|
||||||
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Pkg annotations
|
||||||
|
*/}}
|
||||||
|
{{- define "extension-server.pluginMetadata" -}}
|
||||||
|
{{- with .Values.plugin.metadata }}
|
||||||
|
{{- range $key, $value := . }}
|
||||||
|
{{ $key }}: {{ $value | quote }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
apiVersion: catalog.cattle.io/v1
|
||||||
|
kind: UIPlugin
|
||||||
|
metadata:
|
||||||
|
name: {{ include "extension-server.fullname" . }}
|
||||||
|
namespace: {{ .Release.Namespace }}
|
||||||
|
labels: {{ include "extension-server.labels" . | nindent 4 }}
|
||||||
|
spec:
|
||||||
|
plugin:
|
||||||
|
name: {{ include "extension-server.fullname" . }}
|
||||||
|
version: {{ (semver (default .Chart.AppVersion .Values.plugin.versionOverride)).Original }}
|
||||||
|
endpoint: {{ .Values.plugin.endpoint | quote }}
|
||||||
|
compressedEndpoint: {{ .Values.plugin.compressedEndpoint | quote }}
|
||||||
|
noCache: {{ .Values.plugin.noCache }}
|
||||||
|
noAuth: {{ .Values.plugin.noAuth }}
|
||||||
|
metadata: {{ include "extension-server.pluginMetadata" . | indent 6 }}
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
nameOverride: ""
|
||||||
|
fullnameOverride: ""
|
||||||
|
plugin:
|
||||||
|
enabled: true
|
||||||
|
versionOverride: ""
|
||||||
|
endpoint: >-
|
||||||
|
https://raw.githubusercontent.com/harvester/harvester-ui-extension/v1.10-head/extensions/harvester/1.10.0-rc3
|
||||||
|
compressedEndpoint: >-
|
||||||
|
https://raw.githubusercontent.com/harvester/harvester-ui-extension/v1.10-head/extensions/harvester/1.10.0-rc3.tgz
|
||||||
|
noCache: false
|
||||||
|
noAuth: false
|
||||||
|
metadata:
|
||||||
|
catalog.cattle.io/display-name: Harvester
|
||||||
|
catalog.cattle.io/kube-version: ">= 1.16.0-0"
|
||||||
|
catalog.cattle.io/rancher-version: ">= 2.15.0-0"
|
||||||
|
catalog.cattle.io/ui-extensions-version: ">= 3.0.0 < 4.0.0"
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
annotations:
|
||||||
|
catalog.cattle.io/certified: rancher
|
||||||
|
catalog.cattle.io/namespace: cattle-ui-plugin-system
|
||||||
|
catalog.cattle.io/os: linux
|
||||||
|
catalog.cattle.io/permits-os: linux, windows
|
||||||
|
catalog.cattle.io/scope: management
|
||||||
|
catalog.cattle.io/ui-component: plugins
|
||||||
|
catalog.cattle.io/display-name: Harvester
|
||||||
|
catalog.cattle.io/kube-version: '>= 1.16.0-0'
|
||||||
|
catalog.cattle.io/rancher-version: '>= 2.13.0-0'
|
||||||
|
catalog.cattle.io/ui-extensions-version: '>= 3.0.0 < 4.0.0'
|
||||||
|
apiVersion: v2
|
||||||
|
appVersion: 1.7.0
|
||||||
|
description: Rancher UI Extension for Harvester
|
||||||
|
name: harvester
|
||||||
|
type: application
|
||||||
|
version: 1.7.0
|
||||||
|
icon: >-
|
||||||
|
https://raw.githubusercontent.com/harvester/harvester-ui-extension/main/pkg/harvester/icon.svg
|
||||||
@@ -0,0 +1,178 @@
|
|||||||
|
# harvester-ui-extension
|
||||||
|
|
||||||
|
The Harvester UI Extension is a Rancher extension that provides the user interface for [Harvester](https://harvesterhci.io) within the [Rancher Dashboard](https://github.com/rancher/dashboard).
|
||||||
|
|
||||||
|
> **Note:**
|
||||||
|
> This extension is available starting from **Rancher 2.10.0**. Ensure your Rancher version is **2.10.0 or later** to access Harvester integration.
|
||||||
|
|
||||||
|
## Installation
|
||||||
|
|
||||||
|
For detailed installation instructions, please refer to the [official Harvester documentation](https://docs.harvesterhci.io/v1.5/rancher/harvester-ui-extension#installation-on-rancher-210).
|
||||||
|
|
||||||
|
|
||||||
|
## Development Setup
|
||||||
|
|
||||||
|
Ensure **Node.js v20 or later** is installed for development and debugging.
|
||||||
|
|
||||||
|
### Standalone Mode
|
||||||
|
|
||||||
|
Run the extension standalone with hot reload at `https://localhost:8005`.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Install dependencies
|
||||||
|
yarn install
|
||||||
|
|
||||||
|
# Start the development server
|
||||||
|
RANCHER_ENV=harvester API=https://your-harvester-ip yarn dev
|
||||||
|
|
||||||
|
# Example with specific server version
|
||||||
|
RANCHER_ENV=harvester VUE_APP_SERVER_VERSION=v1.5.0 API=https://192.168.1.123 yarn dev
|
||||||
|
```
|
||||||
|
|
||||||
|
You may also define environment variables in a `.env` file:
|
||||||
|
|
||||||
|
```env
|
||||||
|
RANCHER_ENV=harvester
|
||||||
|
VUE_APP_SERVER_VERSION=v1.5.0
|
||||||
|
API=https://192.168.1.123
|
||||||
|
```
|
||||||
|
|
||||||
|
### Rancher Integration Mode
|
||||||
|
|
||||||
|
To run as a Rancher extension, follow the [Rancher UI Extension Guide](https://extensions.rancher.io/extensions/next/extensions-getting-started#running-the-app).
|
||||||
|
|
||||||
|
```bash
|
||||||
|
API=https://your-rancher-ip yarn dev
|
||||||
|
```
|
||||||
|
|
||||||
|
## Commit Message Guidelines
|
||||||
|
|
||||||
|
This project uses [commit-lint](https://commitlint.js.org/) with [Conventional Commits](https://www.conventionalcommits.org/) to ensure consistent and meaningful commit messages.
|
||||||
|
|
||||||
|
### Commit Message Format
|
||||||
|
|
||||||
|
All commit messages must follow the conventional commit format:
|
||||||
|
|
||||||
|
```
|
||||||
|
<type>[optional scope]: <description>
|
||||||
|
|
||||||
|
[optional body]
|
||||||
|
|
||||||
|
[optional footer(s)]
|
||||||
|
```
|
||||||
|
|
||||||
|
### Supported Types
|
||||||
|
|
||||||
|
- **feat**: New features
|
||||||
|
- **fix**: Bug fixes
|
||||||
|
- **docs**: Documentation changes
|
||||||
|
- **style**: Code style changes (formatting, missing semicolons, etc.)
|
||||||
|
- **refactor**: Code refactoring
|
||||||
|
- **perf**: Performance improvements
|
||||||
|
- **test**: Adding or updating tests
|
||||||
|
- **build**: Build system or external dependencies
|
||||||
|
- **ci**: CI/CD changes
|
||||||
|
- **chore**: Other changes that don't modify src or test files
|
||||||
|
- **revert**: Reverts a previous commit
|
||||||
|
- **wip**: Work in progress
|
||||||
|
- **deps**: Dependency updates
|
||||||
|
- **security**: Security fixes
|
||||||
|
|
||||||
|
### Examples
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Feature
|
||||||
|
git commit -m "feat: add new virtual machine creation wizard"
|
||||||
|
|
||||||
|
# Bug fix
|
||||||
|
git commit -m "fix: resolve memory leak in VM console"
|
||||||
|
|
||||||
|
# Documentation
|
||||||
|
git commit -m "docs: update installation instructions"
|
||||||
|
|
||||||
|
# Breaking change
|
||||||
|
git commit -m "feat!: change API endpoint structure
|
||||||
|
|
||||||
|
BREAKING CHANGE: The /api/v1/vms endpoint has been replaced with /api/v2/vms"
|
||||||
|
```
|
||||||
|
|
||||||
|
### Git Hooks
|
||||||
|
|
||||||
|
The project uses [Husky](https://typicode.github.io/husky/) to automatically validate commit messages and run linting before commits:
|
||||||
|
|
||||||
|
- **pre-commit**: Runs ESLint to ensure code quality
|
||||||
|
- **commit-msg**: Validates commit message format using commit-lint
|
||||||
|
|
||||||
|
These hooks are automatically installed when you run `yarn install`.
|
||||||
|
|
||||||
|
### Manual Validation
|
||||||
|
|
||||||
|
You can manually validate commit messages:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Validate the last commit
|
||||||
|
yarn commitlint
|
||||||
|
|
||||||
|
# Validate a specific commit
|
||||||
|
npx commitlint --from <commit-hash>
|
||||||
|
|
||||||
|
# Validate a range of commits
|
||||||
|
npx commitlint --from <start-hash> --to <end-hash>
|
||||||
|
```
|
||||||
|
|
||||||
|
## Branch Structure
|
||||||
|
|
||||||
|
- **`main`** – Main development branch
|
||||||
|
- **`release-harvester-vX.Y`** – Stable release branches per version series
|
||||||
|
- **`vX.Y-head`** – Testing branches for ongoing changes to extension builds in each release series
|
||||||
|
|
||||||
|
> **Note:**
|
||||||
|
> The `vX.Y-head` branches are auto-generated and kept in sync with release branches. Use these for testing the latest changes in each version series.
|
||||||
|
|
||||||
|
## Testing Guidelines
|
||||||
|
|
||||||
|
### UI Extension Testing
|
||||||
|
|
||||||
|
To validate changes in a release series, switch to the appropriate `vX.Y-head` branch. For main branch testing, use `main-head`.
|
||||||
|
|
||||||
|
- Examples:
|
||||||
|
- Test `1.0.x` series → `v1.0-head`
|
||||||
|
- Test `1.5.x` series → `v1.5-head`
|
||||||
|
|
||||||
|
**Steps:**
|
||||||
|
1. Navigate to **Rancher UI** → **Local** → **App** → **Repositories**
|
||||||
|
2. Refresh the Harvester repository using the target `vX.Y-head` branch
|
||||||
|
3. Go to the **Extensions** page and install the desired version
|
||||||
|
|
||||||
|
### Standalone Mode Testing
|
||||||
|
|
||||||
|
To test the standalone UI, configure Harvester to load the UI from an external source.
|
||||||
|
|
||||||
|
- Examples of `ui-index`:
|
||||||
|
- Main branch → `https://releases.rancher.com/harvester-ui/dashboard/latest/index.html`
|
||||||
|
- Release series `1.5.x` → `https://releases.rancher.com/harvester-ui/dashboard/release-harvester-v1.5/index.html`
|
||||||
|
|
||||||
|
**Steps:**
|
||||||
|
1. Go to **Harvester UI** → **Advanced** → **Settings** → **UI**
|
||||||
|
2. Set **ui-source** to `External`
|
||||||
|
3. Set **ui-index** to the desired URL
|
||||||
|
|
||||||
|
## Contributing
|
||||||
|
|
||||||
|
If you want to contribute, start by reading this document, then visit our [Getting Started guide](https://extensions.rancher.io/extensions/next/extensions-getting-started) to learn how to develop and submit changes.
|
||||||
|
|
||||||
|
## License
|
||||||
|
|
||||||
|
Copyright (c) 2014-2025 [SUSE, LLC.](https://www.suse.com/)
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
[http://www.apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0)
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
@@ -0,0 +1,63 @@
|
|||||||
|
{{/*
|
||||||
|
Expand the name of the chart.
|
||||||
|
*/}}
|
||||||
|
{{- define "extension-server.name" -}}
|
||||||
|
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Create a default fully qualified app name.
|
||||||
|
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
|
||||||
|
If release name contains chart name it will be used as a full name.
|
||||||
|
*/}}
|
||||||
|
{{- define "extension-server.fullname" -}}
|
||||||
|
{{- if .Values.fullnameOverride }}
|
||||||
|
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- else }}
|
||||||
|
{{- $name := default .Chart.Name .Values.nameOverride }}
|
||||||
|
{{- if contains $name .Release.Name }}
|
||||||
|
{{- .Release.Name | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- else }}
|
||||||
|
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Create chart name and version as used by the chart label.
|
||||||
|
*/}}
|
||||||
|
{{- define "extension-server.chart" -}}
|
||||||
|
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Common labels
|
||||||
|
*/}}
|
||||||
|
{{- define "extension-server.labels" -}}
|
||||||
|
helm.sh/chart: {{ include "extension-server.chart" . }}
|
||||||
|
{{ include "extension-server.selectorLabels" . }}
|
||||||
|
{{- if .Chart.AppVersion }}
|
||||||
|
app.kubernetes.io/version: {{ .Chart.AppVersion | replace "+" "_" | quote }}
|
||||||
|
{{- end }}
|
||||||
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Selector labels
|
||||||
|
*/}}
|
||||||
|
{{- define "extension-server.selectorLabels" -}}
|
||||||
|
app.kubernetes.io/name: {{ include "extension-server.name" . }}
|
||||||
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Pkg annotations
|
||||||
|
*/}}
|
||||||
|
{{- define "extension-server.pluginMetadata" -}}
|
||||||
|
{{- with .Values.plugin.metadata }}
|
||||||
|
{{- range $key, $value := . }}
|
||||||
|
{{ $key }}: {{ $value | quote }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
apiVersion: catalog.cattle.io/v1
|
||||||
|
kind: UIPlugin
|
||||||
|
metadata:
|
||||||
|
name: {{ include "extension-server.fullname" . }}
|
||||||
|
namespace: {{ .Release.Namespace }}
|
||||||
|
labels: {{ include "extension-server.labels" . | nindent 4 }}
|
||||||
|
spec:
|
||||||
|
plugin:
|
||||||
|
name: {{ include "extension-server.fullname" . }}
|
||||||
|
version: {{ (semver (default .Chart.AppVersion .Values.plugin.versionOverride)).Original }}
|
||||||
|
endpoint: {{ .Values.plugin.endpoint | quote }}
|
||||||
|
compressedEndpoint: {{ .Values.plugin.compressedEndpoint | quote }}
|
||||||
|
noCache: {{ .Values.plugin.noCache }}
|
||||||
|
noAuth: {{ .Values.plugin.noAuth }}
|
||||||
|
metadata: {{ include "extension-server.pluginMetadata" . | indent 6 }}
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
nameOverride: ""
|
||||||
|
fullnameOverride: ""
|
||||||
|
plugin:
|
||||||
|
enabled: true
|
||||||
|
versionOverride: ""
|
||||||
|
endpoint: >-
|
||||||
|
https://raw.githubusercontent.com/harvester/harvester-ui-extension/gh-pages/extensions/harvester/1.7.0
|
||||||
|
compressedEndpoint: >-
|
||||||
|
https://raw.githubusercontent.com/harvester/harvester-ui-extension/gh-pages/extensions/harvester/1.7.0.tgz
|
||||||
|
noCache: false
|
||||||
|
noAuth: false
|
||||||
|
metadata:
|
||||||
|
catalog.cattle.io/display-name: Harvester
|
||||||
|
catalog.cattle.io/kube-version: ">= 1.16.0-0"
|
||||||
|
catalog.cattle.io/rancher-version: ">= 2.13.0-0"
|
||||||
|
catalog.cattle.io/ui-extensions-version: ">= 3.0.0 < 4.0.0"
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
annotations:
|
||||||
|
catalog.cattle.io/certified: rancher
|
||||||
|
catalog.cattle.io/namespace: cattle-ui-plugin-system
|
||||||
|
catalog.cattle.io/os: linux
|
||||||
|
catalog.cattle.io/permits-os: linux, windows
|
||||||
|
catalog.cattle.io/scope: management
|
||||||
|
catalog.cattle.io/ui-component: plugins
|
||||||
|
catalog.cattle.io/display-name: Harvester
|
||||||
|
catalog.cattle.io/kube-version: '>= 1.16.0-0'
|
||||||
|
catalog.cattle.io/rancher-version: '>= 2.13.0-0'
|
||||||
|
catalog.cattle.io/ui-extensions-version: '>= 3.0.0 < 4.0.0'
|
||||||
|
apiVersion: v2
|
||||||
|
appVersion: 1.7.1
|
||||||
|
description: Rancher UI Extension for Harvester
|
||||||
|
name: harvester
|
||||||
|
type: application
|
||||||
|
version: 1.7.1
|
||||||
|
icon: >-
|
||||||
|
https://raw.githubusercontent.com/harvester/harvester-ui-extension/main/pkg/harvester/icon.svg
|
||||||
@@ -0,0 +1,178 @@
|
|||||||
|
# harvester-ui-extension
|
||||||
|
|
||||||
|
The Harvester UI Extension is a Rancher extension that provides the user interface for [Harvester](https://harvesterhci.io) within the [Rancher Dashboard](https://github.com/rancher/dashboard).
|
||||||
|
|
||||||
|
> **Note:**
|
||||||
|
> This extension is available starting from **Rancher 2.10.0**. Ensure your Rancher version is **2.10.0 or later** to access Harvester integration.
|
||||||
|
|
||||||
|
## Installation
|
||||||
|
|
||||||
|
For detailed installation instructions, please refer to the [official Harvester documentation](https://docs.harvesterhci.io/v1.5/rancher/harvester-ui-extension#installation-on-rancher-210).
|
||||||
|
|
||||||
|
|
||||||
|
## Development Setup
|
||||||
|
|
||||||
|
Ensure **Node.js v20 or later** is installed for development and debugging.
|
||||||
|
|
||||||
|
### Standalone Mode
|
||||||
|
|
||||||
|
Run the extension standalone with hot reload at `https://localhost:8005`.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Install dependencies
|
||||||
|
yarn install
|
||||||
|
|
||||||
|
# Start the development server
|
||||||
|
RANCHER_ENV=harvester API=https://your-harvester-ip yarn dev
|
||||||
|
|
||||||
|
# Example with specific server version
|
||||||
|
RANCHER_ENV=harvester VUE_APP_SERVER_VERSION=v1.5.0 API=https://192.168.1.123 yarn dev
|
||||||
|
```
|
||||||
|
|
||||||
|
You may also define environment variables in a `.env` file:
|
||||||
|
|
||||||
|
```env
|
||||||
|
RANCHER_ENV=harvester
|
||||||
|
VUE_APP_SERVER_VERSION=v1.5.0
|
||||||
|
API=https://192.168.1.123
|
||||||
|
```
|
||||||
|
|
||||||
|
### Rancher Integration Mode
|
||||||
|
|
||||||
|
To run as a Rancher extension, follow the [Rancher UI Extension Guide](https://extensions.rancher.io/extensions/next/extensions-getting-started#running-the-app).
|
||||||
|
|
||||||
|
```bash
|
||||||
|
API=https://your-rancher-ip yarn dev
|
||||||
|
```
|
||||||
|
|
||||||
|
## Commit Message Guidelines
|
||||||
|
|
||||||
|
This project uses [commit-lint](https://commitlint.js.org/) with [Conventional Commits](https://www.conventionalcommits.org/) to ensure consistent and meaningful commit messages.
|
||||||
|
|
||||||
|
### Commit Message Format
|
||||||
|
|
||||||
|
All commit messages must follow the conventional commit format:
|
||||||
|
|
||||||
|
```
|
||||||
|
<type>[optional scope]: <description>
|
||||||
|
|
||||||
|
[optional body]
|
||||||
|
|
||||||
|
[optional footer(s)]
|
||||||
|
```
|
||||||
|
|
||||||
|
### Supported Types
|
||||||
|
|
||||||
|
- **feat**: New features
|
||||||
|
- **fix**: Bug fixes
|
||||||
|
- **docs**: Documentation changes
|
||||||
|
- **style**: Code style changes (formatting, missing semicolons, etc.)
|
||||||
|
- **refactor**: Code refactoring
|
||||||
|
- **perf**: Performance improvements
|
||||||
|
- **test**: Adding or updating tests
|
||||||
|
- **build**: Build system or external dependencies
|
||||||
|
- **ci**: CI/CD changes
|
||||||
|
- **chore**: Other changes that don't modify src or test files
|
||||||
|
- **revert**: Reverts a previous commit
|
||||||
|
- **wip**: Work in progress
|
||||||
|
- **deps**: Dependency updates
|
||||||
|
- **security**: Security fixes
|
||||||
|
|
||||||
|
### Examples
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Feature
|
||||||
|
git commit -m "feat: add new virtual machine creation wizard"
|
||||||
|
|
||||||
|
# Bug fix
|
||||||
|
git commit -m "fix: resolve memory leak in VM console"
|
||||||
|
|
||||||
|
# Documentation
|
||||||
|
git commit -m "docs: update installation instructions"
|
||||||
|
|
||||||
|
# Breaking change
|
||||||
|
git commit -m "feat!: change API endpoint structure
|
||||||
|
|
||||||
|
BREAKING CHANGE: The /api/v1/vms endpoint has been replaced with /api/v2/vms"
|
||||||
|
```
|
||||||
|
|
||||||
|
### Git Hooks
|
||||||
|
|
||||||
|
The project uses [Husky](https://typicode.github.io/husky/) to automatically validate commit messages and run linting before commits:
|
||||||
|
|
||||||
|
- **pre-commit**: Runs ESLint to ensure code quality
|
||||||
|
- **commit-msg**: Validates commit message format using commit-lint
|
||||||
|
|
||||||
|
These hooks are automatically installed when you run `yarn install`.
|
||||||
|
|
||||||
|
### Manual Validation
|
||||||
|
|
||||||
|
You can manually validate commit messages:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Validate the last commit
|
||||||
|
yarn commitlint
|
||||||
|
|
||||||
|
# Validate a specific commit
|
||||||
|
npx commitlint --from <commit-hash>
|
||||||
|
|
||||||
|
# Validate a range of commits
|
||||||
|
npx commitlint --from <start-hash> --to <end-hash>
|
||||||
|
```
|
||||||
|
|
||||||
|
## Branch Structure
|
||||||
|
|
||||||
|
- **`main`** – Main development branch
|
||||||
|
- **`release-harvester-vX.Y`** – Stable release branches per version series
|
||||||
|
- **`vX.Y-head`** – Testing branches for ongoing changes to extension builds in each release series
|
||||||
|
|
||||||
|
> **Note:**
|
||||||
|
> The `vX.Y-head` branches are auto-generated and kept in sync with release branches. Use these for testing the latest changes in each version series.
|
||||||
|
|
||||||
|
## Testing Guidelines
|
||||||
|
|
||||||
|
### UI Extension Testing
|
||||||
|
|
||||||
|
To validate changes in a release series, switch to the appropriate `vX.Y-head` branch. For main branch testing, use `main-head`.
|
||||||
|
|
||||||
|
- Examples:
|
||||||
|
- Test `1.0.x` series → `v1.0-head`
|
||||||
|
- Test `1.5.x` series → `v1.5-head`
|
||||||
|
|
||||||
|
**Steps:**
|
||||||
|
1. Navigate to **Rancher UI** → **Local** → **App** → **Repositories**
|
||||||
|
2. Refresh the Harvester repository using the target `vX.Y-head` branch
|
||||||
|
3. Go to the **Extensions** page and install the desired version
|
||||||
|
|
||||||
|
### Standalone Mode Testing
|
||||||
|
|
||||||
|
To test the standalone UI, configure Harvester to load the UI from an external source.
|
||||||
|
|
||||||
|
- Examples of `ui-index`:
|
||||||
|
- Main branch → `https://releases.rancher.com/harvester-ui/dashboard/latest/index.html`
|
||||||
|
- Release series `1.5.x` → `https://releases.rancher.com/harvester-ui/dashboard/release-harvester-v1.5/index.html`
|
||||||
|
|
||||||
|
**Steps:**
|
||||||
|
1. Go to **Harvester UI** → **Advanced** → **Settings** → **UI**
|
||||||
|
2. Set **ui-source** to `External`
|
||||||
|
3. Set **ui-index** to the desired URL
|
||||||
|
|
||||||
|
## Contributing
|
||||||
|
|
||||||
|
If you want to contribute, start by reading this document, then visit our [Getting Started guide](https://extensions.rancher.io/extensions/next/extensions-getting-started) to learn how to develop and submit changes.
|
||||||
|
|
||||||
|
## License
|
||||||
|
|
||||||
|
Copyright (c) 2014-2025 [SUSE, LLC.](https://www.suse.com/)
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
[http://www.apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0)
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
@@ -0,0 +1,63 @@
|
|||||||
|
{{/*
|
||||||
|
Expand the name of the chart.
|
||||||
|
*/}}
|
||||||
|
{{- define "extension-server.name" -}}
|
||||||
|
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Create a default fully qualified app name.
|
||||||
|
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
|
||||||
|
If release name contains chart name it will be used as a full name.
|
||||||
|
*/}}
|
||||||
|
{{- define "extension-server.fullname" -}}
|
||||||
|
{{- if .Values.fullnameOverride }}
|
||||||
|
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- else }}
|
||||||
|
{{- $name := default .Chart.Name .Values.nameOverride }}
|
||||||
|
{{- if contains $name .Release.Name }}
|
||||||
|
{{- .Release.Name | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- else }}
|
||||||
|
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Create chart name and version as used by the chart label.
|
||||||
|
*/}}
|
||||||
|
{{- define "extension-server.chart" -}}
|
||||||
|
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Common labels
|
||||||
|
*/}}
|
||||||
|
{{- define "extension-server.labels" -}}
|
||||||
|
helm.sh/chart: {{ include "extension-server.chart" . }}
|
||||||
|
{{ include "extension-server.selectorLabels" . }}
|
||||||
|
{{- if .Chart.AppVersion }}
|
||||||
|
app.kubernetes.io/version: {{ .Chart.AppVersion | replace "+" "_" | quote }}
|
||||||
|
{{- end }}
|
||||||
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Selector labels
|
||||||
|
*/}}
|
||||||
|
{{- define "extension-server.selectorLabels" -}}
|
||||||
|
app.kubernetes.io/name: {{ include "extension-server.name" . }}
|
||||||
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Pkg annotations
|
||||||
|
*/}}
|
||||||
|
{{- define "extension-server.pluginMetadata" -}}
|
||||||
|
{{- with .Values.plugin.metadata }}
|
||||||
|
{{- range $key, $value := . }}
|
||||||
|
{{ $key }}: {{ $value | quote }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
apiVersion: catalog.cattle.io/v1
|
||||||
|
kind: UIPlugin
|
||||||
|
metadata:
|
||||||
|
name: {{ include "extension-server.fullname" . }}
|
||||||
|
namespace: {{ .Release.Namespace }}
|
||||||
|
labels: {{ include "extension-server.labels" . | nindent 4 }}
|
||||||
|
spec:
|
||||||
|
plugin:
|
||||||
|
name: {{ include "extension-server.fullname" . }}
|
||||||
|
version: {{ (semver (default .Chart.AppVersion .Values.plugin.versionOverride)).Original }}
|
||||||
|
endpoint: {{ .Values.plugin.endpoint | quote }}
|
||||||
|
compressedEndpoint: {{ .Values.plugin.compressedEndpoint | quote }}
|
||||||
|
noCache: {{ .Values.plugin.noCache }}
|
||||||
|
noAuth: {{ .Values.plugin.noAuth }}
|
||||||
|
metadata: {{ include "extension-server.pluginMetadata" . | indent 6 }}
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
nameOverride: ""
|
||||||
|
fullnameOverride: ""
|
||||||
|
plugin:
|
||||||
|
enabled: true
|
||||||
|
versionOverride: ""
|
||||||
|
endpoint: >-
|
||||||
|
https://raw.githubusercontent.com/harvester/harvester-ui-extension/gh-pages/extensions/harvester/1.7.1
|
||||||
|
compressedEndpoint: >-
|
||||||
|
https://raw.githubusercontent.com/harvester/harvester-ui-extension/gh-pages/extensions/harvester/1.7.1.tgz
|
||||||
|
noCache: false
|
||||||
|
noAuth: false
|
||||||
|
metadata:
|
||||||
|
catalog.cattle.io/display-name: Harvester
|
||||||
|
catalog.cattle.io/kube-version: ">= 1.16.0-0"
|
||||||
|
catalog.cattle.io/rancher-version: ">= 2.13.0-0"
|
||||||
|
catalog.cattle.io/ui-extensions-version: ">= 3.0.0 < 4.0.0"
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
annotations:
|
||||||
|
catalog.cattle.io/certified: rancher
|
||||||
|
catalog.cattle.io/namespace: cattle-ui-plugin-system
|
||||||
|
catalog.cattle.io/os: linux
|
||||||
|
catalog.cattle.io/permits-os: linux, windows
|
||||||
|
catalog.cattle.io/scope: management
|
||||||
|
catalog.cattle.io/ui-component: plugins
|
||||||
|
catalog.cattle.io/display-name: Harvester
|
||||||
|
catalog.cattle.io/kube-version: '>= 1.16.0-0'
|
||||||
|
catalog.cattle.io/rancher-version: '>= 2.13.0-0'
|
||||||
|
catalog.cattle.io/ui-extensions-version: '>= 3.0.0 < 4.0.0'
|
||||||
|
apiVersion: v2
|
||||||
|
appVersion: 1.7.2
|
||||||
|
description: Rancher UI Extension for Harvester
|
||||||
|
name: harvester
|
||||||
|
type: application
|
||||||
|
version: 1.7.2
|
||||||
|
icon: >-
|
||||||
|
https://raw.githubusercontent.com/harvester/harvester-ui-extension/main/pkg/harvester/icon.svg
|
||||||
@@ -0,0 +1,178 @@
|
|||||||
|
# harvester-ui-extension
|
||||||
|
|
||||||
|
The Harvester UI Extension is a Rancher extension that provides the user interface for [Harvester](https://harvesterhci.io) within the [Rancher Dashboard](https://github.com/rancher/dashboard).
|
||||||
|
|
||||||
|
> **Note:**
|
||||||
|
> This extension is available starting from **Rancher 2.10.0**. Ensure your Rancher version is **2.10.0 or later** to access Harvester integration.
|
||||||
|
|
||||||
|
## Installation
|
||||||
|
|
||||||
|
For detailed installation instructions, please refer to the [official Harvester documentation](https://docs.harvesterhci.io/v1.5/rancher/harvester-ui-extension#installation-on-rancher-210).
|
||||||
|
|
||||||
|
|
||||||
|
## Development Setup
|
||||||
|
|
||||||
|
Ensure **Node.js v20 or later** is installed for development and debugging.
|
||||||
|
|
||||||
|
### Standalone Mode
|
||||||
|
|
||||||
|
Run the extension standalone with hot reload at `https://localhost:8005`.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Install dependencies
|
||||||
|
yarn install
|
||||||
|
|
||||||
|
# Start the development server
|
||||||
|
RANCHER_ENV=harvester API=https://your-harvester-ip yarn dev
|
||||||
|
|
||||||
|
# Example with specific server version
|
||||||
|
RANCHER_ENV=harvester VUE_APP_SERVER_VERSION=v1.5.0 API=https://192.168.1.123 yarn dev
|
||||||
|
```
|
||||||
|
|
||||||
|
You may also define environment variables in a `.env` file:
|
||||||
|
|
||||||
|
```env
|
||||||
|
RANCHER_ENV=harvester
|
||||||
|
VUE_APP_SERVER_VERSION=v1.5.0
|
||||||
|
API=https://192.168.1.123
|
||||||
|
```
|
||||||
|
|
||||||
|
### Rancher Integration Mode
|
||||||
|
|
||||||
|
To run as a Rancher extension, follow the [Rancher UI Extension Guide](https://extensions.rancher.io/extensions/next/extensions-getting-started#running-the-app).
|
||||||
|
|
||||||
|
```bash
|
||||||
|
API=https://your-rancher-ip yarn dev
|
||||||
|
```
|
||||||
|
|
||||||
|
## Commit Message Guidelines
|
||||||
|
|
||||||
|
This project uses [commit-lint](https://commitlint.js.org/) with [Conventional Commits](https://www.conventionalcommits.org/) to ensure consistent and meaningful commit messages.
|
||||||
|
|
||||||
|
### Commit Message Format
|
||||||
|
|
||||||
|
All commit messages must follow the conventional commit format:
|
||||||
|
|
||||||
|
```
|
||||||
|
<type>[optional scope]: <description>
|
||||||
|
|
||||||
|
[optional body]
|
||||||
|
|
||||||
|
[optional footer(s)]
|
||||||
|
```
|
||||||
|
|
||||||
|
### Supported Types
|
||||||
|
|
||||||
|
- **feat**: New features
|
||||||
|
- **fix**: Bug fixes
|
||||||
|
- **docs**: Documentation changes
|
||||||
|
- **style**: Code style changes (formatting, missing semicolons, etc.)
|
||||||
|
- **refactor**: Code refactoring
|
||||||
|
- **perf**: Performance improvements
|
||||||
|
- **test**: Adding or updating tests
|
||||||
|
- **build**: Build system or external dependencies
|
||||||
|
- **ci**: CI/CD changes
|
||||||
|
- **chore**: Other changes that don't modify src or test files
|
||||||
|
- **revert**: Reverts a previous commit
|
||||||
|
- **wip**: Work in progress
|
||||||
|
- **deps**: Dependency updates
|
||||||
|
- **security**: Security fixes
|
||||||
|
|
||||||
|
### Examples
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Feature
|
||||||
|
git commit -m "feat: add new virtual machine creation wizard"
|
||||||
|
|
||||||
|
# Bug fix
|
||||||
|
git commit -m "fix: resolve memory leak in VM console"
|
||||||
|
|
||||||
|
# Documentation
|
||||||
|
git commit -m "docs: update installation instructions"
|
||||||
|
|
||||||
|
# Breaking change
|
||||||
|
git commit -m "feat!: change API endpoint structure
|
||||||
|
|
||||||
|
BREAKING CHANGE: The /api/v1/vms endpoint has been replaced with /api/v2/vms"
|
||||||
|
```
|
||||||
|
|
||||||
|
### Git Hooks
|
||||||
|
|
||||||
|
The project uses [Husky](https://typicode.github.io/husky/) to automatically validate commit messages and run linting before commits:
|
||||||
|
|
||||||
|
- **pre-commit**: Runs ESLint to ensure code quality
|
||||||
|
- **commit-msg**: Validates commit message format using commit-lint
|
||||||
|
|
||||||
|
These hooks are automatically installed when you run `yarn install`.
|
||||||
|
|
||||||
|
### Manual Validation
|
||||||
|
|
||||||
|
You can manually validate commit messages:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Validate the last commit
|
||||||
|
yarn commitlint
|
||||||
|
|
||||||
|
# Validate a specific commit
|
||||||
|
npx commitlint --from <commit-hash>
|
||||||
|
|
||||||
|
# Validate a range of commits
|
||||||
|
npx commitlint --from <start-hash> --to <end-hash>
|
||||||
|
```
|
||||||
|
|
||||||
|
## Branch Structure
|
||||||
|
|
||||||
|
- **`main`** – Main development branch
|
||||||
|
- **`release-harvester-vX.Y`** – Stable release branches per version series
|
||||||
|
- **`vX.Y-head`** – Testing branches for ongoing changes to extension builds in each release series
|
||||||
|
|
||||||
|
> **Note:**
|
||||||
|
> The `vX.Y-head` branches are auto-generated and kept in sync with release branches. Use these for testing the latest changes in each version series.
|
||||||
|
|
||||||
|
## Testing Guidelines
|
||||||
|
|
||||||
|
### UI Extension Testing
|
||||||
|
|
||||||
|
To validate changes in a release series, switch to the appropriate `vX.Y-head` branch. For main branch testing, use `main-head`.
|
||||||
|
|
||||||
|
- Examples:
|
||||||
|
- Test `1.0.x` series → `v1.0-head`
|
||||||
|
- Test `1.5.x` series → `v1.5-head`
|
||||||
|
|
||||||
|
**Steps:**
|
||||||
|
1. Navigate to **Rancher UI** → **Local** → **App** → **Repositories**
|
||||||
|
2. Refresh the Harvester repository using the target `vX.Y-head` branch
|
||||||
|
3. Go to the **Extensions** page and install the desired version
|
||||||
|
|
||||||
|
### Standalone Mode Testing
|
||||||
|
|
||||||
|
To test the standalone UI, configure Harvester to load the UI from an external source.
|
||||||
|
|
||||||
|
- Examples of `ui-index`:
|
||||||
|
- Main branch → `https://releases.rancher.com/harvester-ui/dashboard/latest/index.html`
|
||||||
|
- Release series `1.5.x` → `https://releases.rancher.com/harvester-ui/dashboard/release-harvester-v1.5/index.html`
|
||||||
|
|
||||||
|
**Steps:**
|
||||||
|
1. Go to **Harvester UI** → **Advanced** → **Settings** → **UI**
|
||||||
|
2. Set **ui-source** to `External`
|
||||||
|
3. Set **ui-index** to the desired URL
|
||||||
|
|
||||||
|
## Contributing
|
||||||
|
|
||||||
|
If you want to contribute, start by reading this document, then visit our [Getting Started guide](https://extensions.rancher.io/extensions/next/extensions-getting-started) to learn how to develop and submit changes.
|
||||||
|
|
||||||
|
## License
|
||||||
|
|
||||||
|
Copyright (c) 2014-2025 [SUSE, LLC.](https://www.suse.com/)
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
[http://www.apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0)
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
@@ -0,0 +1,63 @@
|
|||||||
|
{{/*
|
||||||
|
Expand the name of the chart.
|
||||||
|
*/}}
|
||||||
|
{{- define "extension-server.name" -}}
|
||||||
|
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Create a default fully qualified app name.
|
||||||
|
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
|
||||||
|
If release name contains chart name it will be used as a full name.
|
||||||
|
*/}}
|
||||||
|
{{- define "extension-server.fullname" -}}
|
||||||
|
{{- if .Values.fullnameOverride }}
|
||||||
|
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- else }}
|
||||||
|
{{- $name := default .Chart.Name .Values.nameOverride }}
|
||||||
|
{{- if contains $name .Release.Name }}
|
||||||
|
{{- .Release.Name | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- else }}
|
||||||
|
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Create chart name and version as used by the chart label.
|
||||||
|
*/}}
|
||||||
|
{{- define "extension-server.chart" -}}
|
||||||
|
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Common labels
|
||||||
|
*/}}
|
||||||
|
{{- define "extension-server.labels" -}}
|
||||||
|
helm.sh/chart: {{ include "extension-server.chart" . }}
|
||||||
|
{{ include "extension-server.selectorLabels" . }}
|
||||||
|
{{- if .Chart.AppVersion }}
|
||||||
|
app.kubernetes.io/version: {{ .Chart.AppVersion | replace "+" "_" | quote }}
|
||||||
|
{{- end }}
|
||||||
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Selector labels
|
||||||
|
*/}}
|
||||||
|
{{- define "extension-server.selectorLabels" -}}
|
||||||
|
app.kubernetes.io/name: {{ include "extension-server.name" . }}
|
||||||
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Pkg annotations
|
||||||
|
*/}}
|
||||||
|
{{- define "extension-server.pluginMetadata" -}}
|
||||||
|
{{- with .Values.plugin.metadata }}
|
||||||
|
{{- range $key, $value := . }}
|
||||||
|
{{ $key }}: {{ $value | quote }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
apiVersion: catalog.cattle.io/v1
|
||||||
|
kind: UIPlugin
|
||||||
|
metadata:
|
||||||
|
name: {{ include "extension-server.fullname" . }}
|
||||||
|
namespace: {{ .Release.Namespace }}
|
||||||
|
labels: {{ include "extension-server.labels" . | nindent 4 }}
|
||||||
|
spec:
|
||||||
|
plugin:
|
||||||
|
name: {{ include "extension-server.fullname" . }}
|
||||||
|
version: {{ (semver (default .Chart.AppVersion .Values.plugin.versionOverride)).Original }}
|
||||||
|
endpoint: {{ .Values.plugin.endpoint | quote }}
|
||||||
|
compressedEndpoint: {{ .Values.plugin.compressedEndpoint | quote }}
|
||||||
|
noCache: {{ .Values.plugin.noCache }}
|
||||||
|
noAuth: {{ .Values.plugin.noAuth }}
|
||||||
|
metadata: {{ include "extension-server.pluginMetadata" . | indent 6 }}
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
nameOverride: ""
|
||||||
|
fullnameOverride: ""
|
||||||
|
plugin:
|
||||||
|
enabled: true
|
||||||
|
versionOverride: ""
|
||||||
|
endpoint: >-
|
||||||
|
https://raw.githubusercontent.com/harvester/harvester-ui-extension/gh-pages/extensions/harvester/1.7.2
|
||||||
|
compressedEndpoint: >-
|
||||||
|
https://raw.githubusercontent.com/harvester/harvester-ui-extension/gh-pages/extensions/harvester/1.7.2.tgz
|
||||||
|
noCache: false
|
||||||
|
noAuth: false
|
||||||
|
metadata:
|
||||||
|
catalog.cattle.io/display-name: Harvester
|
||||||
|
catalog.cattle.io/kube-version: ">= 1.16.0-0"
|
||||||
|
catalog.cattle.io/rancher-version: ">= 2.13.0-0"
|
||||||
|
catalog.cattle.io/ui-extensions-version: ">= 3.0.0 < 4.0.0"
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
annotations:
|
||||||
|
catalog.cattle.io/certified: rancher
|
||||||
|
catalog.cattle.io/namespace: cattle-ui-plugin-system
|
||||||
|
catalog.cattle.io/os: linux
|
||||||
|
catalog.cattle.io/permits-os: linux, windows
|
||||||
|
catalog.cattle.io/scope: management
|
||||||
|
catalog.cattle.io/ui-component: plugins
|
||||||
|
catalog.cattle.io/display-name: Harvester
|
||||||
|
catalog.cattle.io/kube-version: '>= 1.16.0-0'
|
||||||
|
catalog.cattle.io/rancher-version: '>= 2.13.0-0'
|
||||||
|
catalog.cattle.io/ui-extensions-version: '>= 3.0.0 < 4.0.0'
|
||||||
|
apiVersion: v2
|
||||||
|
appVersion: 1.7.3
|
||||||
|
description: Rancher UI Extension for Harvester
|
||||||
|
name: harvester
|
||||||
|
type: application
|
||||||
|
version: 1.7.3
|
||||||
|
icon: >-
|
||||||
|
https://raw.githubusercontent.com/harvester/harvester-ui-extension/main/pkg/harvester/icon.svg
|
||||||
@@ -0,0 +1,178 @@
|
|||||||
|
# harvester-ui-extension
|
||||||
|
|
||||||
|
The Harvester UI Extension is a Rancher extension that provides the user interface for [Harvester](https://harvesterhci.io) within the [Rancher Dashboard](https://github.com/rancher/dashboard).
|
||||||
|
|
||||||
|
> **Note:**
|
||||||
|
> This extension is available starting from **Rancher 2.10.0**. Ensure your Rancher version is **2.10.0 or later** to access Harvester integration.
|
||||||
|
|
||||||
|
## Installation
|
||||||
|
|
||||||
|
For detailed installation instructions, please refer to the [official Harvester documentation](https://docs.harvesterhci.io/v1.5/rancher/harvester-ui-extension#installation-on-rancher-210).
|
||||||
|
|
||||||
|
|
||||||
|
## Development Setup
|
||||||
|
|
||||||
|
Ensure **Node.js v20 or later** is installed for development and debugging.
|
||||||
|
|
||||||
|
### Standalone Mode
|
||||||
|
|
||||||
|
Run the extension standalone with hot reload at `https://localhost:8005`.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Install dependencies
|
||||||
|
yarn install
|
||||||
|
|
||||||
|
# Start the development server
|
||||||
|
RANCHER_ENV=harvester API=https://your-harvester-ip yarn dev
|
||||||
|
|
||||||
|
# Example with specific server version
|
||||||
|
RANCHER_ENV=harvester VUE_APP_SERVER_VERSION=v1.5.0 API=https://192.168.1.123 yarn dev
|
||||||
|
```
|
||||||
|
|
||||||
|
You may also define environment variables in a `.env` file:
|
||||||
|
|
||||||
|
```env
|
||||||
|
RANCHER_ENV=harvester
|
||||||
|
VUE_APP_SERVER_VERSION=v1.5.0
|
||||||
|
API=https://192.168.1.123
|
||||||
|
```
|
||||||
|
|
||||||
|
### Rancher Integration Mode
|
||||||
|
|
||||||
|
To run as a Rancher extension, follow the [Rancher UI Extension Guide](https://extensions.rancher.io/extensions/next/extensions-getting-started#running-the-app).
|
||||||
|
|
||||||
|
```bash
|
||||||
|
API=https://your-rancher-ip yarn dev
|
||||||
|
```
|
||||||
|
|
||||||
|
## Commit Message Guidelines
|
||||||
|
|
||||||
|
This project uses [commit-lint](https://commitlint.js.org/) with [Conventional Commits](https://www.conventionalcommits.org/) to ensure consistent and meaningful commit messages.
|
||||||
|
|
||||||
|
### Commit Message Format
|
||||||
|
|
||||||
|
All commit messages must follow the conventional commit format:
|
||||||
|
|
||||||
|
```
|
||||||
|
<type>[optional scope]: <description>
|
||||||
|
|
||||||
|
[optional body]
|
||||||
|
|
||||||
|
[optional footer(s)]
|
||||||
|
```
|
||||||
|
|
||||||
|
### Supported Types
|
||||||
|
|
||||||
|
- **feat**: New features
|
||||||
|
- **fix**: Bug fixes
|
||||||
|
- **docs**: Documentation changes
|
||||||
|
- **style**: Code style changes (formatting, missing semicolons, etc.)
|
||||||
|
- **refactor**: Code refactoring
|
||||||
|
- **perf**: Performance improvements
|
||||||
|
- **test**: Adding or updating tests
|
||||||
|
- **build**: Build system or external dependencies
|
||||||
|
- **ci**: CI/CD changes
|
||||||
|
- **chore**: Other changes that don't modify src or test files
|
||||||
|
- **revert**: Reverts a previous commit
|
||||||
|
- **wip**: Work in progress
|
||||||
|
- **deps**: Dependency updates
|
||||||
|
- **security**: Security fixes
|
||||||
|
|
||||||
|
### Examples
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Feature
|
||||||
|
git commit -m "feat: add new virtual machine creation wizard"
|
||||||
|
|
||||||
|
# Bug fix
|
||||||
|
git commit -m "fix: resolve memory leak in VM console"
|
||||||
|
|
||||||
|
# Documentation
|
||||||
|
git commit -m "docs: update installation instructions"
|
||||||
|
|
||||||
|
# Breaking change
|
||||||
|
git commit -m "feat!: change API endpoint structure
|
||||||
|
|
||||||
|
BREAKING CHANGE: The /api/v1/vms endpoint has been replaced with /api/v2/vms"
|
||||||
|
```
|
||||||
|
|
||||||
|
### Git Hooks
|
||||||
|
|
||||||
|
The project uses [Husky](https://typicode.github.io/husky/) to automatically validate commit messages and run linting before commits:
|
||||||
|
|
||||||
|
- **pre-commit**: Runs ESLint to ensure code quality
|
||||||
|
- **commit-msg**: Validates commit message format using commit-lint
|
||||||
|
|
||||||
|
These hooks are automatically installed when you run `yarn install`.
|
||||||
|
|
||||||
|
### Manual Validation
|
||||||
|
|
||||||
|
You can manually validate commit messages:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Validate the last commit
|
||||||
|
yarn commitlint
|
||||||
|
|
||||||
|
# Validate a specific commit
|
||||||
|
npx commitlint --from <commit-hash>
|
||||||
|
|
||||||
|
# Validate a range of commits
|
||||||
|
npx commitlint --from <start-hash> --to <end-hash>
|
||||||
|
```
|
||||||
|
|
||||||
|
## Branch Structure
|
||||||
|
|
||||||
|
- **`main`** – Main development branch
|
||||||
|
- **`release-harvester-vX.Y`** – Stable release branches per version series
|
||||||
|
- **`vX.Y-head`** – Testing branches for ongoing changes to extension builds in each release series
|
||||||
|
|
||||||
|
> **Note:**
|
||||||
|
> The `vX.Y-head` branches are auto-generated and kept in sync with release branches. Use these for testing the latest changes in each version series.
|
||||||
|
|
||||||
|
## Testing Guidelines
|
||||||
|
|
||||||
|
### UI Extension Testing
|
||||||
|
|
||||||
|
To validate changes in a release series, switch to the appropriate `vX.Y-head` branch. For main branch testing, use `main-head`.
|
||||||
|
|
||||||
|
- Examples:
|
||||||
|
- Test `1.0.x` series → `v1.0-head`
|
||||||
|
- Test `1.5.x` series → `v1.5-head`
|
||||||
|
|
||||||
|
**Steps:**
|
||||||
|
1. Navigate to **Rancher UI** → **Local** → **App** → **Repositories**
|
||||||
|
2. Refresh the Harvester repository using the target `vX.Y-head` branch
|
||||||
|
3. Go to the **Extensions** page and install the desired version
|
||||||
|
|
||||||
|
### Standalone Mode Testing
|
||||||
|
|
||||||
|
To test the standalone UI, configure Harvester to load the UI from an external source.
|
||||||
|
|
||||||
|
- Examples of `ui-index`:
|
||||||
|
- Main branch → `https://releases.rancher.com/harvester-ui/dashboard/latest/index.html`
|
||||||
|
- Release series `1.5.x` → `https://releases.rancher.com/harvester-ui/dashboard/release-harvester-v1.5/index.html`
|
||||||
|
|
||||||
|
**Steps:**
|
||||||
|
1. Go to **Harvester UI** → **Advanced** → **Settings** → **UI**
|
||||||
|
2. Set **ui-source** to `External`
|
||||||
|
3. Set **ui-index** to the desired URL
|
||||||
|
|
||||||
|
## Contributing
|
||||||
|
|
||||||
|
If you want to contribute, start by reading this document, then visit our [Getting Started guide](https://extensions.rancher.io/extensions/next/extensions-getting-started) to learn how to develop and submit changes.
|
||||||
|
|
||||||
|
## License
|
||||||
|
|
||||||
|
Copyright (c) 2014-2025 [SUSE, LLC.](https://www.suse.com/)
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
[http://www.apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0)
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
@@ -0,0 +1,63 @@
|
|||||||
|
{{/*
|
||||||
|
Expand the name of the chart.
|
||||||
|
*/}}
|
||||||
|
{{- define "extension-server.name" -}}
|
||||||
|
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Create a default fully qualified app name.
|
||||||
|
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
|
||||||
|
If release name contains chart name it will be used as a full name.
|
||||||
|
*/}}
|
||||||
|
{{- define "extension-server.fullname" -}}
|
||||||
|
{{- if .Values.fullnameOverride }}
|
||||||
|
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- else }}
|
||||||
|
{{- $name := default .Chart.Name .Values.nameOverride }}
|
||||||
|
{{- if contains $name .Release.Name }}
|
||||||
|
{{- .Release.Name | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- else }}
|
||||||
|
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Create chart name and version as used by the chart label.
|
||||||
|
*/}}
|
||||||
|
{{- define "extension-server.chart" -}}
|
||||||
|
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Common labels
|
||||||
|
*/}}
|
||||||
|
{{- define "extension-server.labels" -}}
|
||||||
|
helm.sh/chart: {{ include "extension-server.chart" . }}
|
||||||
|
{{ include "extension-server.selectorLabels" . }}
|
||||||
|
{{- if .Chart.AppVersion }}
|
||||||
|
app.kubernetes.io/version: {{ .Chart.AppVersion | replace "+" "_" | quote }}
|
||||||
|
{{- end }}
|
||||||
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Selector labels
|
||||||
|
*/}}
|
||||||
|
{{- define "extension-server.selectorLabels" -}}
|
||||||
|
app.kubernetes.io/name: {{ include "extension-server.name" . }}
|
||||||
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Pkg annotations
|
||||||
|
*/}}
|
||||||
|
{{- define "extension-server.pluginMetadata" -}}
|
||||||
|
{{- with .Values.plugin.metadata }}
|
||||||
|
{{- range $key, $value := . }}
|
||||||
|
{{ $key }}: {{ $value | quote }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
apiVersion: catalog.cattle.io/v1
|
||||||
|
kind: UIPlugin
|
||||||
|
metadata:
|
||||||
|
name: {{ include "extension-server.fullname" . }}
|
||||||
|
namespace: {{ .Release.Namespace }}
|
||||||
|
labels: {{ include "extension-server.labels" . | nindent 4 }}
|
||||||
|
spec:
|
||||||
|
plugin:
|
||||||
|
name: {{ include "extension-server.fullname" . }}
|
||||||
|
version: {{ (semver (default .Chart.AppVersion .Values.plugin.versionOverride)).Original }}
|
||||||
|
endpoint: {{ .Values.plugin.endpoint | quote }}
|
||||||
|
compressedEndpoint: {{ .Values.plugin.compressedEndpoint | quote }}
|
||||||
|
noCache: {{ .Values.plugin.noCache }}
|
||||||
|
noAuth: {{ .Values.plugin.noAuth }}
|
||||||
|
metadata: {{ include "extension-server.pluginMetadata" . | indent 6 }}
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
nameOverride: ""
|
||||||
|
fullnameOverride: ""
|
||||||
|
plugin:
|
||||||
|
enabled: true
|
||||||
|
versionOverride: ""
|
||||||
|
endpoint: >-
|
||||||
|
https://raw.githubusercontent.com/harvester/harvester-ui-extension/gh-pages/extensions/harvester/1.7.3
|
||||||
|
compressedEndpoint: >-
|
||||||
|
https://raw.githubusercontent.com/harvester/harvester-ui-extension/gh-pages/extensions/harvester/1.7.3.tgz
|
||||||
|
noCache: false
|
||||||
|
noAuth: false
|
||||||
|
metadata:
|
||||||
|
catalog.cattle.io/display-name: Harvester
|
||||||
|
catalog.cattle.io/kube-version: ">= 1.16.0-0"
|
||||||
|
catalog.cattle.io/rancher-version: ">= 2.13.0-0"
|
||||||
|
catalog.cattle.io/ui-extensions-version: ">= 3.0.0 < 4.0.0"
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
annotations:
|
||||||
|
catalog.cattle.io/certified: rancher
|
||||||
|
catalog.cattle.io/namespace: cattle-ui-plugin-system
|
||||||
|
catalog.cattle.io/os: linux
|
||||||
|
catalog.cattle.io/permits-os: linux, windows
|
||||||
|
catalog.cattle.io/scope: management
|
||||||
|
catalog.cattle.io/ui-component: plugins
|
||||||
|
catalog.cattle.io/display-name: Harvester
|
||||||
|
catalog.cattle.io/kube-version: '>= 1.16.0-0'
|
||||||
|
catalog.cattle.io/rancher-version: '>= 2.14.0-0'
|
||||||
|
catalog.cattle.io/ui-extensions-version: '>= 3.0.0 < 4.0.0'
|
||||||
|
apiVersion: v2
|
||||||
|
appVersion: 1.8.0
|
||||||
|
description: Rancher UI Extension for Harvester
|
||||||
|
name: harvester
|
||||||
|
type: application
|
||||||
|
version: 1.8.0
|
||||||
|
icon: >-
|
||||||
|
https://raw.githubusercontent.com/harvester/harvester-ui-extension/main/pkg/harvester/icon.svg
|
||||||
@@ -0,0 +1,177 @@
|
|||||||
|
# harvester-ui-extension
|
||||||
|
|
||||||
|
The Harvester UI Extension is a Rancher extension that provides the user interface for [Harvester](https://harvesterhci.io) within the [Rancher Dashboard](https://github.com/rancher/dashboard).
|
||||||
|
|
||||||
|
> **Note:**
|
||||||
|
> This extension is available starting from **Rancher 2.10.0**. Ensure your Rancher version is **2.10.0 or later** to access Harvester integration.
|
||||||
|
|
||||||
|
## Installation
|
||||||
|
|
||||||
|
For Harvester UI extension installation instructions, please refer to the page **Rancher Integration** -> **Harvester UI Extension** in [official Harvester documentation](https://docs.harvesterhci.io).
|
||||||
|
|
||||||
|
## Development Setup
|
||||||
|
|
||||||
|
Ensure **Node.js v20 or later** is installed for development and debugging.
|
||||||
|
|
||||||
|
### Standalone Mode
|
||||||
|
|
||||||
|
Run the extension standalone with hot reload at `https://localhost:8005`.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Install dependencies
|
||||||
|
yarn install
|
||||||
|
|
||||||
|
# Start the development server
|
||||||
|
RANCHER_ENV=harvester API=https://your-harvester-ip yarn dev
|
||||||
|
|
||||||
|
# Example with specific server version
|
||||||
|
RANCHER_ENV=harvester VUE_APP_SERVER_VERSION=v1.5.0 API=https://192.168.1.123 yarn dev
|
||||||
|
```
|
||||||
|
|
||||||
|
You may also define environment variables in a `.env` file:
|
||||||
|
|
||||||
|
```env
|
||||||
|
RANCHER_ENV=harvester
|
||||||
|
VUE_APP_SERVER_VERSION=v1.5.0
|
||||||
|
API=https://192.168.1.123
|
||||||
|
```
|
||||||
|
|
||||||
|
### Rancher Integration Mode
|
||||||
|
|
||||||
|
To run as a Rancher extension, follow the [Rancher UI Extension Guide](https://extensions.rancher.io/extensions/next/extensions-getting-started#running-the-app).
|
||||||
|
|
||||||
|
```bash
|
||||||
|
API=https://your-rancher-ip yarn dev
|
||||||
|
```
|
||||||
|
|
||||||
|
## Commit Message Guidelines
|
||||||
|
|
||||||
|
This project uses [commit-lint](https://commitlint.js.org/) with [Conventional Commits](https://www.conventionalcommits.org/) to ensure consistent and meaningful commit messages.
|
||||||
|
|
||||||
|
### Commit Message Format
|
||||||
|
|
||||||
|
All commit messages must follow the conventional commit format:
|
||||||
|
|
||||||
|
```
|
||||||
|
<type>[optional scope]: <description>
|
||||||
|
|
||||||
|
[optional body]
|
||||||
|
|
||||||
|
[optional footer(s)]
|
||||||
|
```
|
||||||
|
|
||||||
|
### Supported Types
|
||||||
|
|
||||||
|
- **feat**: New features
|
||||||
|
- **fix**: Bug fixes
|
||||||
|
- **docs**: Documentation changes
|
||||||
|
- **style**: Code style changes (formatting, missing semicolons, etc.)
|
||||||
|
- **refactor**: Code refactoring
|
||||||
|
- **perf**: Performance improvements
|
||||||
|
- **test**: Adding or updating tests
|
||||||
|
- **build**: Build system or external dependencies
|
||||||
|
- **ci**: CI/CD changes
|
||||||
|
- **chore**: Other changes that don't modify src or test files
|
||||||
|
- **revert**: Reverts a previous commit
|
||||||
|
- **wip**: Work in progress
|
||||||
|
- **deps**: Dependency updates
|
||||||
|
- **security**: Security fixes
|
||||||
|
|
||||||
|
### Examples
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Feature
|
||||||
|
git commit -m "feat: add new virtual machine creation wizard"
|
||||||
|
|
||||||
|
# Bug fix
|
||||||
|
git commit -m "fix: resolve memory leak in VM console"
|
||||||
|
|
||||||
|
# Documentation
|
||||||
|
git commit -m "docs: update installation instructions"
|
||||||
|
|
||||||
|
# Breaking change
|
||||||
|
git commit -m "feat!: change API endpoint structure
|
||||||
|
|
||||||
|
BREAKING CHANGE: The /api/v1/vms endpoint has been replaced with /api/v2/vms"
|
||||||
|
```
|
||||||
|
|
||||||
|
### Git Hooks
|
||||||
|
|
||||||
|
The project uses [Husky](https://typicode.github.io/husky/) to automatically validate commit messages and run linting before commits:
|
||||||
|
|
||||||
|
- **pre-commit**: Runs ESLint to ensure code quality
|
||||||
|
- **commit-msg**: Validates commit message format using commit-lint
|
||||||
|
|
||||||
|
These hooks are automatically installed when you run `yarn install`.
|
||||||
|
|
||||||
|
### Manual Validation
|
||||||
|
|
||||||
|
You can manually validate commit messages:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Validate the last commit
|
||||||
|
yarn commitlint
|
||||||
|
|
||||||
|
# Validate a specific commit
|
||||||
|
npx commitlint --from <commit-hash>
|
||||||
|
|
||||||
|
# Validate a range of commits
|
||||||
|
npx commitlint --from <start-hash> --to <end-hash>
|
||||||
|
```
|
||||||
|
|
||||||
|
## Branch Structure
|
||||||
|
|
||||||
|
- **`main`** – Main development branch
|
||||||
|
- **`release-harvester-vX.Y`** – Stable release branches per version series
|
||||||
|
- **`vX.Y-head`** – Testing branches for ongoing changes to extension builds in each release series
|
||||||
|
|
||||||
|
> **Note:**
|
||||||
|
> The `vX.Y-head` branches are auto-generated and kept in sync with release branches. Use these for testing the latest changes in each version series.
|
||||||
|
|
||||||
|
## Testing Guidelines
|
||||||
|
|
||||||
|
### UI Extension Testing
|
||||||
|
|
||||||
|
To validate changes in a release series, switch to the appropriate `vX.Y-head` branch. For main branch testing, use `main-head`.
|
||||||
|
|
||||||
|
- Examples:
|
||||||
|
- Test `1.0.x` series → `v1.0-head`
|
||||||
|
- Test `1.5.x` series → `v1.5-head`
|
||||||
|
|
||||||
|
**Steps:**
|
||||||
|
1. Navigate to **Rancher UI** → **Local** → **App** → **Repositories**
|
||||||
|
2. Refresh the Harvester repository using the target `vX.Y-head` branch
|
||||||
|
3. Go to the **Extensions** page and install the desired version
|
||||||
|
|
||||||
|
### Standalone Mode Testing
|
||||||
|
|
||||||
|
To test the standalone UI, configure Harvester to load the UI from an external source.
|
||||||
|
|
||||||
|
- Examples of `ui-index`:
|
||||||
|
- Main branch → `https://releases.rancher.com/harvester-ui/dashboard/latest/index.html`
|
||||||
|
- Release series `1.5.x` → `https://releases.rancher.com/harvester-ui/dashboard/release-harvester-v1.5/index.html`
|
||||||
|
|
||||||
|
**Steps:**
|
||||||
|
1. Go to **Harvester UI** → **Advanced** → **Settings** → **UI**
|
||||||
|
2. Set **ui-source** to `External`
|
||||||
|
3. Set **ui-index** to the desired URL
|
||||||
|
|
||||||
|
## Contributing
|
||||||
|
|
||||||
|
If you want to contribute, start by reading this document, then visit our [Getting Started guide](https://extensions.rancher.io/extensions/next/extensions-getting-started) to learn how to develop and submit changes.
|
||||||
|
|
||||||
|
## License
|
||||||
|
|
||||||
|
Copyright (c) 2014-2026 [SUSE, LLC.](https://www.suse.com/)
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
[http://www.apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0)
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
@@ -0,0 +1,63 @@
|
|||||||
|
{{/*
|
||||||
|
Expand the name of the chart.
|
||||||
|
*/}}
|
||||||
|
{{- define "extension-server.name" -}}
|
||||||
|
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Create a default fully qualified app name.
|
||||||
|
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
|
||||||
|
If release name contains chart name it will be used as a full name.
|
||||||
|
*/}}
|
||||||
|
{{- define "extension-server.fullname" -}}
|
||||||
|
{{- if .Values.fullnameOverride }}
|
||||||
|
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- else }}
|
||||||
|
{{- $name := default .Chart.Name .Values.nameOverride }}
|
||||||
|
{{- if contains $name .Release.Name }}
|
||||||
|
{{- .Release.Name | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- else }}
|
||||||
|
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Create chart name and version as used by the chart label.
|
||||||
|
*/}}
|
||||||
|
{{- define "extension-server.chart" -}}
|
||||||
|
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Common labels
|
||||||
|
*/}}
|
||||||
|
{{- define "extension-server.labels" -}}
|
||||||
|
helm.sh/chart: {{ include "extension-server.chart" . }}
|
||||||
|
{{ include "extension-server.selectorLabels" . }}
|
||||||
|
{{- if .Chart.AppVersion }}
|
||||||
|
app.kubernetes.io/version: {{ .Chart.AppVersion | replace "+" "_" | quote }}
|
||||||
|
{{- end }}
|
||||||
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Selector labels
|
||||||
|
*/}}
|
||||||
|
{{- define "extension-server.selectorLabels" -}}
|
||||||
|
app.kubernetes.io/name: {{ include "extension-server.name" . }}
|
||||||
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Pkg annotations
|
||||||
|
*/}}
|
||||||
|
{{- define "extension-server.pluginMetadata" -}}
|
||||||
|
{{- with .Values.plugin.metadata }}
|
||||||
|
{{- range $key, $value := . }}
|
||||||
|
{{ $key }}: {{ $value | quote }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
apiVersion: catalog.cattle.io/v1
|
||||||
|
kind: UIPlugin
|
||||||
|
metadata:
|
||||||
|
name: {{ include "extension-server.fullname" . }}
|
||||||
|
namespace: {{ .Release.Namespace }}
|
||||||
|
labels: {{ include "extension-server.labels" . | nindent 4 }}
|
||||||
|
spec:
|
||||||
|
plugin:
|
||||||
|
name: {{ include "extension-server.fullname" . }}
|
||||||
|
version: {{ (semver (default .Chart.AppVersion .Values.plugin.versionOverride)).Original }}
|
||||||
|
endpoint: {{ .Values.plugin.endpoint | quote }}
|
||||||
|
compressedEndpoint: {{ .Values.plugin.compressedEndpoint | quote }}
|
||||||
|
noCache: {{ .Values.plugin.noCache }}
|
||||||
|
noAuth: {{ .Values.plugin.noAuth }}
|
||||||
|
metadata: {{ include "extension-server.pluginMetadata" . | indent 6 }}
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
nameOverride: ""
|
||||||
|
fullnameOverride: ""
|
||||||
|
plugin:
|
||||||
|
enabled: true
|
||||||
|
versionOverride: ""
|
||||||
|
endpoint: >-
|
||||||
|
https://raw.githubusercontent.com/harvester/harvester-ui-extension/gh-pages/extensions/harvester/1.8.0
|
||||||
|
compressedEndpoint: >-
|
||||||
|
https://raw.githubusercontent.com/harvester/harvester-ui-extension/gh-pages/extensions/harvester/1.8.0.tgz
|
||||||
|
noCache: false
|
||||||
|
noAuth: false
|
||||||
|
metadata:
|
||||||
|
catalog.cattle.io/display-name: Harvester
|
||||||
|
catalog.cattle.io/kube-version: ">= 1.16.0-0"
|
||||||
|
catalog.cattle.io/rancher-version: ">= 2.14.0-0"
|
||||||
|
catalog.cattle.io/ui-extensions-version: ">= 3.0.0 < 4.0.0"
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
annotations:
|
||||||
|
catalog.cattle.io/certified: rancher
|
||||||
|
catalog.cattle.io/namespace: cattle-ui-plugin-system
|
||||||
|
catalog.cattle.io/os: linux
|
||||||
|
catalog.cattle.io/permits-os: linux, windows
|
||||||
|
catalog.cattle.io/scope: management
|
||||||
|
catalog.cattle.io/ui-component: plugins
|
||||||
|
catalog.cattle.io/display-name: Harvester
|
||||||
|
catalog.cattle.io/kube-version: '>= 1.16.0-0'
|
||||||
|
catalog.cattle.io/rancher-version: '>= 2.14.0-0'
|
||||||
|
catalog.cattle.io/ui-extensions-version: '>= 3.0.0 < 4.0.0'
|
||||||
|
apiVersion: v2
|
||||||
|
appVersion: 1.8.1
|
||||||
|
description: Rancher UI Extension for Harvester
|
||||||
|
name: harvester
|
||||||
|
type: application
|
||||||
|
version: 1.8.1
|
||||||
|
icon: >-
|
||||||
|
https://raw.githubusercontent.com/harvester/harvester-ui-extension/main/pkg/harvester/icon.svg
|
||||||
@@ -0,0 +1,177 @@
|
|||||||
|
# harvester-ui-extension
|
||||||
|
|
||||||
|
The Harvester UI Extension is a Rancher extension that provides the user interface for [Harvester](https://harvesterhci.io) within the [Rancher Dashboard](https://github.com/rancher/dashboard).
|
||||||
|
|
||||||
|
> **Note:**
|
||||||
|
> This extension is available starting from **Rancher 2.10.0**. Ensure your Rancher version is **2.10.0 or later** to access Harvester integration.
|
||||||
|
|
||||||
|
## Installation
|
||||||
|
|
||||||
|
For Harvester UI extension installation instructions, please refer to the page **Rancher Integration** -> **Harvester UI Extension** in [official Harvester documentation](https://docs.harvesterhci.io).
|
||||||
|
|
||||||
|
## Development Setup
|
||||||
|
|
||||||
|
Ensure **Node.js v20 or later** is installed for development and debugging.
|
||||||
|
|
||||||
|
### Standalone Mode
|
||||||
|
|
||||||
|
Run the extension standalone with hot reload at `https://localhost:8005`.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Install dependencies
|
||||||
|
yarn install
|
||||||
|
|
||||||
|
# Start the development server
|
||||||
|
RANCHER_ENV=harvester API=https://your-harvester-ip yarn dev
|
||||||
|
|
||||||
|
# Example with specific server version
|
||||||
|
RANCHER_ENV=harvester VUE_APP_SERVER_VERSION=v1.5.0 API=https://192.168.1.123 yarn dev
|
||||||
|
```
|
||||||
|
|
||||||
|
You may also define environment variables in a `.env` file:
|
||||||
|
|
||||||
|
```env
|
||||||
|
RANCHER_ENV=harvester
|
||||||
|
VUE_APP_SERVER_VERSION=v1.5.0
|
||||||
|
API=https://192.168.1.123
|
||||||
|
```
|
||||||
|
|
||||||
|
### Rancher Integration Mode
|
||||||
|
|
||||||
|
To run as a Rancher extension, follow the [Rancher UI Extension Guide](https://extensions.rancher.io/extensions/next/extensions-getting-started#running-the-app).
|
||||||
|
|
||||||
|
```bash
|
||||||
|
API=https://your-rancher-ip yarn dev
|
||||||
|
```
|
||||||
|
|
||||||
|
## Commit Message Guidelines
|
||||||
|
|
||||||
|
This project uses [commit-lint](https://commitlint.js.org/) with [Conventional Commits](https://www.conventionalcommits.org/) to ensure consistent and meaningful commit messages.
|
||||||
|
|
||||||
|
### Commit Message Format
|
||||||
|
|
||||||
|
All commit messages must follow the conventional commit format:
|
||||||
|
|
||||||
|
```
|
||||||
|
<type>[optional scope]: <description>
|
||||||
|
|
||||||
|
[optional body]
|
||||||
|
|
||||||
|
[optional footer(s)]
|
||||||
|
```
|
||||||
|
|
||||||
|
### Supported Types
|
||||||
|
|
||||||
|
- **feat**: New features
|
||||||
|
- **fix**: Bug fixes
|
||||||
|
- **docs**: Documentation changes
|
||||||
|
- **style**: Code style changes (formatting, missing semicolons, etc.)
|
||||||
|
- **refactor**: Code refactoring
|
||||||
|
- **perf**: Performance improvements
|
||||||
|
- **test**: Adding or updating tests
|
||||||
|
- **build**: Build system or external dependencies
|
||||||
|
- **ci**: CI/CD changes
|
||||||
|
- **chore**: Other changes that don't modify src or test files
|
||||||
|
- **revert**: Reverts a previous commit
|
||||||
|
- **wip**: Work in progress
|
||||||
|
- **deps**: Dependency updates
|
||||||
|
- **security**: Security fixes
|
||||||
|
|
||||||
|
### Examples
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Feature
|
||||||
|
git commit -m "feat: add new virtual machine creation wizard"
|
||||||
|
|
||||||
|
# Bug fix
|
||||||
|
git commit -m "fix: resolve memory leak in VM console"
|
||||||
|
|
||||||
|
# Documentation
|
||||||
|
git commit -m "docs: update installation instructions"
|
||||||
|
|
||||||
|
# Breaking change
|
||||||
|
git commit -m "feat!: change API endpoint structure
|
||||||
|
|
||||||
|
BREAKING CHANGE: The /api/v1/vms endpoint has been replaced with /api/v2/vms"
|
||||||
|
```
|
||||||
|
|
||||||
|
### Git Hooks
|
||||||
|
|
||||||
|
The project uses [Husky](https://typicode.github.io/husky/) to automatically validate commit messages and run linting before commits:
|
||||||
|
|
||||||
|
- **pre-commit**: Runs ESLint to ensure code quality
|
||||||
|
- **commit-msg**: Validates commit message format using commit-lint
|
||||||
|
|
||||||
|
These hooks are automatically installed when you run `yarn install`.
|
||||||
|
|
||||||
|
### Manual Validation
|
||||||
|
|
||||||
|
You can manually validate commit messages:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Validate the last commit
|
||||||
|
yarn commitlint
|
||||||
|
|
||||||
|
# Validate a specific commit
|
||||||
|
npx commitlint --from <commit-hash>
|
||||||
|
|
||||||
|
# Validate a range of commits
|
||||||
|
npx commitlint --from <start-hash> --to <end-hash>
|
||||||
|
```
|
||||||
|
|
||||||
|
## Branch Structure
|
||||||
|
|
||||||
|
- **`main`** – Main development branch
|
||||||
|
- **`release-harvester-vX.Y`** – Stable release branches per version series
|
||||||
|
- **`vX.Y-head`** – Testing branches for ongoing changes to extension builds in each release series
|
||||||
|
|
||||||
|
> **Note:**
|
||||||
|
> The `vX.Y-head` branches are auto-generated and kept in sync with release branches. Use these for testing the latest changes in each version series.
|
||||||
|
|
||||||
|
## Testing Guidelines
|
||||||
|
|
||||||
|
### UI Extension Testing
|
||||||
|
|
||||||
|
To validate changes in a release series, switch to the appropriate `vX.Y-head` branch. For main branch testing, use `main-head`.
|
||||||
|
|
||||||
|
- Examples:
|
||||||
|
- Test `1.0.x` series → `v1.0-head`
|
||||||
|
- Test `1.5.x` series → `v1.5-head`
|
||||||
|
|
||||||
|
**Steps:**
|
||||||
|
1. Navigate to **Rancher UI** → **Local** → **App** → **Repositories**
|
||||||
|
2. Refresh the Harvester repository using the target `vX.Y-head` branch
|
||||||
|
3. Go to the **Extensions** page and install the desired version
|
||||||
|
|
||||||
|
### Standalone Mode Testing
|
||||||
|
|
||||||
|
To test the standalone UI, configure Harvester to load the UI from an external source.
|
||||||
|
|
||||||
|
- Examples of `ui-index`:
|
||||||
|
- Main branch → `https://releases.rancher.com/harvester-ui/dashboard/latest/index.html`
|
||||||
|
- Release series `1.5.x` → `https://releases.rancher.com/harvester-ui/dashboard/release-harvester-v1.5/index.html`
|
||||||
|
|
||||||
|
**Steps:**
|
||||||
|
1. Go to **Harvester UI** → **Advanced** → **Settings** → **UI**
|
||||||
|
2. Set **ui-source** to `External`
|
||||||
|
3. Set **ui-index** to the desired URL
|
||||||
|
|
||||||
|
## Contributing
|
||||||
|
|
||||||
|
If you want to contribute, start by reading this document, then visit our [Getting Started guide](https://extensions.rancher.io/extensions/next/extensions-getting-started) to learn how to develop and submit changes.
|
||||||
|
|
||||||
|
## License
|
||||||
|
|
||||||
|
Copyright (c) 2014-2026 [SUSE, LLC.](https://www.suse.com/)
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
[http://www.apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0)
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
@@ -0,0 +1,63 @@
|
|||||||
|
{{/*
|
||||||
|
Expand the name of the chart.
|
||||||
|
*/}}
|
||||||
|
{{- define "extension-server.name" -}}
|
||||||
|
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Create a default fully qualified app name.
|
||||||
|
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
|
||||||
|
If release name contains chart name it will be used as a full name.
|
||||||
|
*/}}
|
||||||
|
{{- define "extension-server.fullname" -}}
|
||||||
|
{{- if .Values.fullnameOverride }}
|
||||||
|
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- else }}
|
||||||
|
{{- $name := default .Chart.Name .Values.nameOverride }}
|
||||||
|
{{- if contains $name .Release.Name }}
|
||||||
|
{{- .Release.Name | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- else }}
|
||||||
|
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Create chart name and version as used by the chart label.
|
||||||
|
*/}}
|
||||||
|
{{- define "extension-server.chart" -}}
|
||||||
|
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Common labels
|
||||||
|
*/}}
|
||||||
|
{{- define "extension-server.labels" -}}
|
||||||
|
helm.sh/chart: {{ include "extension-server.chart" . }}
|
||||||
|
{{ include "extension-server.selectorLabels" . }}
|
||||||
|
{{- if .Chart.AppVersion }}
|
||||||
|
app.kubernetes.io/version: {{ .Chart.AppVersion | replace "+" "_" | quote }}
|
||||||
|
{{- end }}
|
||||||
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Selector labels
|
||||||
|
*/}}
|
||||||
|
{{- define "extension-server.selectorLabels" -}}
|
||||||
|
app.kubernetes.io/name: {{ include "extension-server.name" . }}
|
||||||
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Pkg annotations
|
||||||
|
*/}}
|
||||||
|
{{- define "extension-server.pluginMetadata" -}}
|
||||||
|
{{- with .Values.plugin.metadata }}
|
||||||
|
{{- range $key, $value := . }}
|
||||||
|
{{ $key }}: {{ $value | quote }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
apiVersion: catalog.cattle.io/v1
|
||||||
|
kind: UIPlugin
|
||||||
|
metadata:
|
||||||
|
name: {{ include "extension-server.fullname" . }}
|
||||||
|
namespace: {{ .Release.Namespace }}
|
||||||
|
labels: {{ include "extension-server.labels" . | nindent 4 }}
|
||||||
|
spec:
|
||||||
|
plugin:
|
||||||
|
name: {{ include "extension-server.fullname" . }}
|
||||||
|
version: {{ (semver (default .Chart.AppVersion .Values.plugin.versionOverride)).Original }}
|
||||||
|
endpoint: {{ .Values.plugin.endpoint | quote }}
|
||||||
|
compressedEndpoint: {{ .Values.plugin.compressedEndpoint | quote }}
|
||||||
|
noCache: {{ .Values.plugin.noCache }}
|
||||||
|
noAuth: {{ .Values.plugin.noAuth }}
|
||||||
|
metadata: {{ include "extension-server.pluginMetadata" . | indent 6 }}
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
nameOverride: ""
|
||||||
|
fullnameOverride: ""
|
||||||
|
plugin:
|
||||||
|
enabled: true
|
||||||
|
versionOverride: ""
|
||||||
|
endpoint: >-
|
||||||
|
https://raw.githubusercontent.com/harvester/harvester-ui-extension/gh-pages/extensions/harvester/1.8.1
|
||||||
|
compressedEndpoint: >-
|
||||||
|
https://raw.githubusercontent.com/harvester/harvester-ui-extension/gh-pages/extensions/harvester/1.8.1.tgz
|
||||||
|
noCache: false
|
||||||
|
noAuth: false
|
||||||
|
metadata:
|
||||||
|
catalog.cattle.io/display-name: Harvester
|
||||||
|
catalog.cattle.io/kube-version: ">= 1.16.0-0"
|
||||||
|
catalog.cattle.io/rancher-version: ">= 2.14.0-0"
|
||||||
|
catalog.cattle.io/ui-extensions-version: ">= 3.0.0 < 4.0.0"
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
annotations:
|
||||||
|
catalog.cattle.io/certified: rancher
|
||||||
|
catalog.cattle.io/namespace: cattle-ui-plugin-system
|
||||||
|
catalog.cattle.io/os: linux
|
||||||
|
catalog.cattle.io/permits-os: linux, windows
|
||||||
|
catalog.cattle.io/scope: management
|
||||||
|
catalog.cattle.io/ui-component: plugins
|
||||||
|
catalog.cattle.io/display-name: Harvester
|
||||||
|
catalog.cattle.io/kube-version: '>= 1.16.0-0'
|
||||||
|
catalog.cattle.io/rancher-version: '>= 2.14.0-0'
|
||||||
|
catalog.cattle.io/ui-extensions-version: '>= 3.0.0 < 4.0.0'
|
||||||
|
apiVersion: v2
|
||||||
|
appVersion: 1.8.2
|
||||||
|
description: Rancher UI Extension for Harvester
|
||||||
|
name: harvester
|
||||||
|
type: application
|
||||||
|
version: 1.8.2
|
||||||
|
icon: >-
|
||||||
|
https://raw.githubusercontent.com/harvester/harvester-ui-extension/main/pkg/harvester/icon.svg
|
||||||
@@ -0,0 +1,177 @@
|
|||||||
|
# harvester-ui-extension
|
||||||
|
|
||||||
|
The Harvester UI Extension is a Rancher extension that provides the user interface for [Harvester](https://harvesterhci.io) within the [Rancher Dashboard](https://github.com/rancher/dashboard).
|
||||||
|
|
||||||
|
> **Note:**
|
||||||
|
> This extension is available starting from **Rancher 2.10.0**. Ensure your Rancher version is **2.10.0 or later** to access Harvester integration.
|
||||||
|
|
||||||
|
## Installation
|
||||||
|
|
||||||
|
For Harvester UI extension installation instructions, please refer to the page **Rancher Integration** -> **Harvester UI Extension** in [official Harvester documentation](https://docs.harvesterhci.io).
|
||||||
|
|
||||||
|
## Development Setup
|
||||||
|
|
||||||
|
Ensure **Node.js v20 or later** is installed for development and debugging.
|
||||||
|
|
||||||
|
### Standalone Mode
|
||||||
|
|
||||||
|
Run the extension standalone with hot reload at `https://localhost:8005`.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Install dependencies
|
||||||
|
yarn install
|
||||||
|
|
||||||
|
# Start the development server
|
||||||
|
RANCHER_ENV=harvester API=https://your-harvester-ip yarn dev
|
||||||
|
|
||||||
|
# Example with specific server version
|
||||||
|
RANCHER_ENV=harvester VUE_APP_SERVER_VERSION=v1.5.0 API=https://192.168.1.123 yarn dev
|
||||||
|
```
|
||||||
|
|
||||||
|
You may also define environment variables in a `.env` file:
|
||||||
|
|
||||||
|
```env
|
||||||
|
RANCHER_ENV=harvester
|
||||||
|
VUE_APP_SERVER_VERSION=v1.5.0
|
||||||
|
API=https://192.168.1.123
|
||||||
|
```
|
||||||
|
|
||||||
|
### Rancher Integration Mode
|
||||||
|
|
||||||
|
To run as a Rancher extension, follow the [Rancher UI Extension Guide](https://extensions.rancher.io/extensions/next/extensions-getting-started#running-the-app).
|
||||||
|
|
||||||
|
```bash
|
||||||
|
API=https://your-rancher-ip yarn dev
|
||||||
|
```
|
||||||
|
|
||||||
|
## Commit Message Guidelines
|
||||||
|
|
||||||
|
This project uses [commit-lint](https://commitlint.js.org/) with [Conventional Commits](https://www.conventionalcommits.org/) to ensure consistent and meaningful commit messages.
|
||||||
|
|
||||||
|
### Commit Message Format
|
||||||
|
|
||||||
|
All commit messages must follow the conventional commit format:
|
||||||
|
|
||||||
|
```
|
||||||
|
<type>[optional scope]: <description>
|
||||||
|
|
||||||
|
[optional body]
|
||||||
|
|
||||||
|
[optional footer(s)]
|
||||||
|
```
|
||||||
|
|
||||||
|
### Supported Types
|
||||||
|
|
||||||
|
- **feat**: New features
|
||||||
|
- **fix**: Bug fixes
|
||||||
|
- **docs**: Documentation changes
|
||||||
|
- **style**: Code style changes (formatting, missing semicolons, etc.)
|
||||||
|
- **refactor**: Code refactoring
|
||||||
|
- **perf**: Performance improvements
|
||||||
|
- **test**: Adding or updating tests
|
||||||
|
- **build**: Build system or external dependencies
|
||||||
|
- **ci**: CI/CD changes
|
||||||
|
- **chore**: Other changes that don't modify src or test files
|
||||||
|
- **revert**: Reverts a previous commit
|
||||||
|
- **wip**: Work in progress
|
||||||
|
- **deps**: Dependency updates
|
||||||
|
- **security**: Security fixes
|
||||||
|
|
||||||
|
### Examples
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Feature
|
||||||
|
git commit -m "feat: add new virtual machine creation wizard"
|
||||||
|
|
||||||
|
# Bug fix
|
||||||
|
git commit -m "fix: resolve memory leak in VM console"
|
||||||
|
|
||||||
|
# Documentation
|
||||||
|
git commit -m "docs: update installation instructions"
|
||||||
|
|
||||||
|
# Breaking change
|
||||||
|
git commit -m "feat!: change API endpoint structure
|
||||||
|
|
||||||
|
BREAKING CHANGE: The /api/v1/vms endpoint has been replaced with /api/v2/vms"
|
||||||
|
```
|
||||||
|
|
||||||
|
### Git Hooks
|
||||||
|
|
||||||
|
The project uses [Husky](https://typicode.github.io/husky/) to automatically validate commit messages and run linting before commits:
|
||||||
|
|
||||||
|
- **pre-commit**: Runs ESLint to ensure code quality
|
||||||
|
- **commit-msg**: Validates commit message format using commit-lint
|
||||||
|
|
||||||
|
These hooks are automatically installed when you run `yarn install`.
|
||||||
|
|
||||||
|
### Manual Validation
|
||||||
|
|
||||||
|
You can manually validate commit messages:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Validate the last commit
|
||||||
|
yarn commitlint
|
||||||
|
|
||||||
|
# Validate a specific commit
|
||||||
|
npx commitlint --from <commit-hash>
|
||||||
|
|
||||||
|
# Validate a range of commits
|
||||||
|
npx commitlint --from <start-hash> --to <end-hash>
|
||||||
|
```
|
||||||
|
|
||||||
|
## Branch Structure
|
||||||
|
|
||||||
|
- **`main`** – Main development branch
|
||||||
|
- **`release-harvester-vX.Y`** – Stable release branches per version series
|
||||||
|
- **`vX.Y-head`** – Testing branches for ongoing changes to extension builds in each release series
|
||||||
|
|
||||||
|
> **Note:**
|
||||||
|
> The `vX.Y-head` branches are auto-generated and kept in sync with release branches. Use these for testing the latest changes in each version series.
|
||||||
|
|
||||||
|
## Testing Guidelines
|
||||||
|
|
||||||
|
### UI Extension Testing
|
||||||
|
|
||||||
|
To validate changes in a release series, switch to the appropriate `vX.Y-head` branch. For main branch testing, use `main-head`.
|
||||||
|
|
||||||
|
- Examples:
|
||||||
|
- Test `1.0.x` series → `v1.0-head`
|
||||||
|
- Test `1.5.x` series → `v1.5-head`
|
||||||
|
|
||||||
|
**Steps:**
|
||||||
|
1. Navigate to **Rancher UI** → **Local** → **App** → **Repositories**
|
||||||
|
2. Refresh the Harvester repository using the target `vX.Y-head` branch
|
||||||
|
3. Go to the **Extensions** page and install the desired version
|
||||||
|
|
||||||
|
### Standalone Mode Testing
|
||||||
|
|
||||||
|
To test the standalone UI, configure Harvester to load the UI from an external source.
|
||||||
|
|
||||||
|
- Examples of `ui-index`:
|
||||||
|
- Main branch → `https://releases.rancher.com/harvester-ui/dashboard/latest/index.html`
|
||||||
|
- Release series `1.5.x` → `https://releases.rancher.com/harvester-ui/dashboard/release-harvester-v1.5/index.html`
|
||||||
|
|
||||||
|
**Steps:**
|
||||||
|
1. Go to **Harvester UI** → **Advanced** → **Settings** → **UI**
|
||||||
|
2. Set **ui-source** to `External`
|
||||||
|
3. Set **ui-index** to the desired URL
|
||||||
|
|
||||||
|
## Contributing
|
||||||
|
|
||||||
|
If you want to contribute, start by reading this document, then visit our [Getting Started guide](https://extensions.rancher.io/extensions/next/extensions-getting-started) to learn how to develop and submit changes.
|
||||||
|
|
||||||
|
## License
|
||||||
|
|
||||||
|
Copyright (c) 2014-2026 [SUSE, LLC.](https://www.suse.com/)
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
[http://www.apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0)
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
@@ -0,0 +1,63 @@
|
|||||||
|
{{/*
|
||||||
|
Expand the name of the chart.
|
||||||
|
*/}}
|
||||||
|
{{- define "extension-server.name" -}}
|
||||||
|
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Create a default fully qualified app name.
|
||||||
|
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
|
||||||
|
If release name contains chart name it will be used as a full name.
|
||||||
|
*/}}
|
||||||
|
{{- define "extension-server.fullname" -}}
|
||||||
|
{{- if .Values.fullnameOverride }}
|
||||||
|
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- else }}
|
||||||
|
{{- $name := default .Chart.Name .Values.nameOverride }}
|
||||||
|
{{- if contains $name .Release.Name }}
|
||||||
|
{{- .Release.Name | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- else }}
|
||||||
|
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Create chart name and version as used by the chart label.
|
||||||
|
*/}}
|
||||||
|
{{- define "extension-server.chart" -}}
|
||||||
|
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Common labels
|
||||||
|
*/}}
|
||||||
|
{{- define "extension-server.labels" -}}
|
||||||
|
helm.sh/chart: {{ include "extension-server.chart" . }}
|
||||||
|
{{ include "extension-server.selectorLabels" . }}
|
||||||
|
{{- if .Chart.AppVersion }}
|
||||||
|
app.kubernetes.io/version: {{ .Chart.AppVersion | replace "+" "_" | quote }}
|
||||||
|
{{- end }}
|
||||||
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Selector labels
|
||||||
|
*/}}
|
||||||
|
{{- define "extension-server.selectorLabels" -}}
|
||||||
|
app.kubernetes.io/name: {{ include "extension-server.name" . }}
|
||||||
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Pkg annotations
|
||||||
|
*/}}
|
||||||
|
{{- define "extension-server.pluginMetadata" -}}
|
||||||
|
{{- with .Values.plugin.metadata }}
|
||||||
|
{{- range $key, $value := . }}
|
||||||
|
{{ $key }}: {{ $value | quote }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
apiVersion: catalog.cattle.io/v1
|
||||||
|
kind: UIPlugin
|
||||||
|
metadata:
|
||||||
|
name: {{ include "extension-server.fullname" . }}
|
||||||
|
namespace: {{ .Release.Namespace }}
|
||||||
|
labels: {{ include "extension-server.labels" . | nindent 4 }}
|
||||||
|
spec:
|
||||||
|
plugin:
|
||||||
|
name: {{ include "extension-server.fullname" . }}
|
||||||
|
version: {{ (semver (default .Chart.AppVersion .Values.plugin.versionOverride)).Original }}
|
||||||
|
endpoint: {{ .Values.plugin.endpoint | quote }}
|
||||||
|
compressedEndpoint: {{ .Values.plugin.compressedEndpoint | quote }}
|
||||||
|
noCache: {{ .Values.plugin.noCache }}
|
||||||
|
noAuth: {{ .Values.plugin.noAuth }}
|
||||||
|
metadata: {{ include "extension-server.pluginMetadata" . | indent 6 }}
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
nameOverride: ""
|
||||||
|
fullnameOverride: ""
|
||||||
|
plugin:
|
||||||
|
enabled: true
|
||||||
|
versionOverride: ""
|
||||||
|
endpoint: >-
|
||||||
|
https://raw.githubusercontent.com/harvester/harvester-ui-extension/gh-pages/extensions/harvester/1.8.2
|
||||||
|
compressedEndpoint: >-
|
||||||
|
https://raw.githubusercontent.com/harvester/harvester-ui-extension/gh-pages/extensions/harvester/1.8.2.tgz
|
||||||
|
noCache: false
|
||||||
|
noAuth: false
|
||||||
|
metadata:
|
||||||
|
catalog.cattle.io/display-name: Harvester
|
||||||
|
catalog.cattle.io/kube-version: ">= 1.16.0-0"
|
||||||
|
catalog.cattle.io/rancher-version: ">= 2.14.0-0"
|
||||||
|
catalog.cattle.io/ui-extensions-version: ">= 3.0.0 < 4.0.0"
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
annotations:
|
||||||
|
catalog.cattle.io/certified: rancher
|
||||||
|
catalog.cattle.io/namespace: cattle-ui-plugin-system
|
||||||
|
catalog.cattle.io/os: linux
|
||||||
|
catalog.cattle.io/permits-os: linux, windows
|
||||||
|
catalog.cattle.io/scope: management
|
||||||
|
catalog.cattle.io/ui-component: plugins
|
||||||
|
catalog.cattle.io/display-name: Harvester
|
||||||
|
catalog.cattle.io/kube-version: '>= 1.16.0-0'
|
||||||
|
catalog.cattle.io/rancher-version: '>= 2.15.0-0'
|
||||||
|
catalog.cattle.io/ui-extensions-version: '>= 3.0.0 < 4.0.0'
|
||||||
|
apiVersion: v2
|
||||||
|
appVersion: 1.9.0
|
||||||
|
description: Rancher UI Extension for Harvester
|
||||||
|
name: harvester
|
||||||
|
type: application
|
||||||
|
version: 1.9.0
|
||||||
|
icon: >-
|
||||||
|
https://raw.githubusercontent.com/harvester/harvester-ui-extension/main/pkg/harvester/icon.svg
|
||||||
@@ -0,0 +1,177 @@
|
|||||||
|
# harvester-ui-extension
|
||||||
|
|
||||||
|
The Harvester UI Extension is a Rancher extension that provides the user interface for [Harvester](https://harvesterhci.io) within the [Rancher Dashboard](https://github.com/rancher/dashboard).
|
||||||
|
|
||||||
|
> **Note:**
|
||||||
|
> This extension is available starting from **Rancher 2.10.0**. Ensure your Rancher version is **2.10.0 or later** to access Harvester integration.
|
||||||
|
|
||||||
|
## Installation
|
||||||
|
|
||||||
|
For Harvester UI extension installation instructions, please refer to the page **Rancher Integration** -> **Harvester UI Extension** in [official Harvester documentation](https://docs.harvesterhci.io).
|
||||||
|
|
||||||
|
## Development Setup
|
||||||
|
|
||||||
|
Ensure **Node.js v20 or later** is installed for development and debugging.
|
||||||
|
|
||||||
|
### Standalone Mode
|
||||||
|
|
||||||
|
Run the extension standalone with hot reload at `https://localhost:8005`.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Install dependencies
|
||||||
|
yarn install
|
||||||
|
|
||||||
|
# Start the development server
|
||||||
|
RANCHER_ENV=harvester API=https://your-harvester-ip yarn dev
|
||||||
|
|
||||||
|
# Example with specific server version
|
||||||
|
RANCHER_ENV=harvester VUE_APP_SERVER_VERSION=v1.5.0 API=https://192.168.1.123 yarn dev
|
||||||
|
```
|
||||||
|
|
||||||
|
You may also define environment variables in a `.env` file:
|
||||||
|
|
||||||
|
```env
|
||||||
|
RANCHER_ENV=harvester
|
||||||
|
VUE_APP_SERVER_VERSION=v1.5.0
|
||||||
|
API=https://192.168.1.123
|
||||||
|
```
|
||||||
|
|
||||||
|
### Rancher Integration Mode
|
||||||
|
|
||||||
|
To run as a Rancher extension, follow the [Rancher UI Extension Guide](https://extensions.rancher.io/extensions/next/extensions-getting-started#running-the-app).
|
||||||
|
|
||||||
|
```bash
|
||||||
|
API=https://your-rancher-ip yarn dev
|
||||||
|
```
|
||||||
|
|
||||||
|
## Commit Message Guidelines
|
||||||
|
|
||||||
|
This project uses [commit-lint](https://commitlint.js.org/) with [Conventional Commits](https://www.conventionalcommits.org/) to ensure consistent and meaningful commit messages.
|
||||||
|
|
||||||
|
### Commit Message Format
|
||||||
|
|
||||||
|
All commit messages must follow the conventional commit format:
|
||||||
|
|
||||||
|
```
|
||||||
|
<type>[optional scope]: <description>
|
||||||
|
|
||||||
|
[optional body]
|
||||||
|
|
||||||
|
[optional footer(s)]
|
||||||
|
```
|
||||||
|
|
||||||
|
### Supported Types
|
||||||
|
|
||||||
|
- **feat**: New features
|
||||||
|
- **fix**: Bug fixes
|
||||||
|
- **docs**: Documentation changes
|
||||||
|
- **style**: Code style changes (formatting, missing semicolons, etc.)
|
||||||
|
- **refactor**: Code refactoring
|
||||||
|
- **perf**: Performance improvements
|
||||||
|
- **test**: Adding or updating tests
|
||||||
|
- **build**: Build system or external dependencies
|
||||||
|
- **ci**: CI/CD changes
|
||||||
|
- **chore**: Other changes that don't modify src or test files
|
||||||
|
- **revert**: Reverts a previous commit
|
||||||
|
- **wip**: Work in progress
|
||||||
|
- **deps**: Dependency updates
|
||||||
|
- **security**: Security fixes
|
||||||
|
|
||||||
|
### Examples
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Feature
|
||||||
|
git commit -m "feat: add new virtual machine creation wizard"
|
||||||
|
|
||||||
|
# Bug fix
|
||||||
|
git commit -m "fix: resolve memory leak in VM console"
|
||||||
|
|
||||||
|
# Documentation
|
||||||
|
git commit -m "docs: update installation instructions"
|
||||||
|
|
||||||
|
# Breaking change
|
||||||
|
git commit -m "feat!: change API endpoint structure
|
||||||
|
|
||||||
|
BREAKING CHANGE: The /api/v1/vms endpoint has been replaced with /api/v2/vms"
|
||||||
|
```
|
||||||
|
|
||||||
|
### Git Hooks
|
||||||
|
|
||||||
|
The project uses [Husky](https://typicode.github.io/husky/) to automatically validate commit messages and run linting before commits:
|
||||||
|
|
||||||
|
- **pre-commit**: Runs ESLint to ensure code quality
|
||||||
|
- **commit-msg**: Validates commit message format using commit-lint
|
||||||
|
|
||||||
|
These hooks are automatically installed when you run `yarn install`.
|
||||||
|
|
||||||
|
### Manual Validation
|
||||||
|
|
||||||
|
You can manually validate commit messages:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Validate the last commit
|
||||||
|
yarn commitlint
|
||||||
|
|
||||||
|
# Validate a specific commit
|
||||||
|
npx commitlint --from <commit-hash>
|
||||||
|
|
||||||
|
# Validate a range of commits
|
||||||
|
npx commitlint --from <start-hash> --to <end-hash>
|
||||||
|
```
|
||||||
|
|
||||||
|
## Branch Structure
|
||||||
|
|
||||||
|
- **`main`** – Main development branch
|
||||||
|
- **`release-harvester-vX.Y`** – Stable release branches per version series
|
||||||
|
- **`vX.Y-head`** – Testing branches for ongoing changes to extension builds in each release series
|
||||||
|
|
||||||
|
> **Note:**
|
||||||
|
> The `vX.Y-head` branches are auto-generated and kept in sync with release branches. Use these for testing the latest changes in each version series.
|
||||||
|
|
||||||
|
## Testing Guidelines
|
||||||
|
|
||||||
|
### UI Extension Testing
|
||||||
|
|
||||||
|
To validate changes in a release series, switch to the appropriate `vX.Y-head` branch. For main branch testing, use `main-head`.
|
||||||
|
|
||||||
|
- Examples:
|
||||||
|
- Test `1.0.x` series → `v1.0-head`
|
||||||
|
- Test `1.5.x` series → `v1.5-head`
|
||||||
|
|
||||||
|
**Steps:**
|
||||||
|
1. Navigate to **Rancher UI** → **Local** → **App** → **Repositories**
|
||||||
|
2. Refresh the Harvester repository using the target `vX.Y-head` branch
|
||||||
|
3. Go to the **Extensions** page and install the desired version
|
||||||
|
|
||||||
|
### Standalone Mode Testing
|
||||||
|
|
||||||
|
To test the standalone UI, configure Harvester to load the UI from an external source.
|
||||||
|
|
||||||
|
- Examples of `ui-index`:
|
||||||
|
- Main branch → `https://releases.rancher.com/harvester-ui/dashboard/latest/index.html`
|
||||||
|
- Release series `1.5.x` → `https://releases.rancher.com/harvester-ui/dashboard/release-harvester-v1.5/index.html`
|
||||||
|
|
||||||
|
**Steps:**
|
||||||
|
1. Go to **Harvester UI** → **Advanced** → **Settings** → **UI**
|
||||||
|
2. Set **ui-source** to `External`
|
||||||
|
3. Set **ui-index** to the desired URL
|
||||||
|
|
||||||
|
## Contributing
|
||||||
|
|
||||||
|
If you want to contribute, start by reading this document, then visit our [Getting Started guide](https://extensions.rancher.io/extensions/next/extensions-getting-started) to learn how to develop and submit changes.
|
||||||
|
|
||||||
|
## License
|
||||||
|
|
||||||
|
Copyright (c) 2014-2026 [SUSE, LLC.](https://www.suse.com/)
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
[http://www.apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0)
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
@@ -0,0 +1,63 @@
|
|||||||
|
{{/*
|
||||||
|
Expand the name of the chart.
|
||||||
|
*/}}
|
||||||
|
{{- define "extension-server.name" -}}
|
||||||
|
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Create a default fully qualified app name.
|
||||||
|
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
|
||||||
|
If release name contains chart name it will be used as a full name.
|
||||||
|
*/}}
|
||||||
|
{{- define "extension-server.fullname" -}}
|
||||||
|
{{- if .Values.fullnameOverride }}
|
||||||
|
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- else }}
|
||||||
|
{{- $name := default .Chart.Name .Values.nameOverride }}
|
||||||
|
{{- if contains $name .Release.Name }}
|
||||||
|
{{- .Release.Name | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- else }}
|
||||||
|
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Create chart name and version as used by the chart label.
|
||||||
|
*/}}
|
||||||
|
{{- define "extension-server.chart" -}}
|
||||||
|
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Common labels
|
||||||
|
*/}}
|
||||||
|
{{- define "extension-server.labels" -}}
|
||||||
|
helm.sh/chart: {{ include "extension-server.chart" . }}
|
||||||
|
{{ include "extension-server.selectorLabels" . }}
|
||||||
|
{{- if .Chart.AppVersion }}
|
||||||
|
app.kubernetes.io/version: {{ .Chart.AppVersion | replace "+" "_" | quote }}
|
||||||
|
{{- end }}
|
||||||
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Selector labels
|
||||||
|
*/}}
|
||||||
|
{{- define "extension-server.selectorLabels" -}}
|
||||||
|
app.kubernetes.io/name: {{ include "extension-server.name" . }}
|
||||||
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Pkg annotations
|
||||||
|
*/}}
|
||||||
|
{{- define "extension-server.pluginMetadata" -}}
|
||||||
|
{{- with .Values.plugin.metadata }}
|
||||||
|
{{- range $key, $value := . }}
|
||||||
|
{{ $key }}: {{ $value | quote }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
apiVersion: catalog.cattle.io/v1
|
||||||
|
kind: UIPlugin
|
||||||
|
metadata:
|
||||||
|
name: {{ include "extension-server.fullname" . }}
|
||||||
|
namespace: {{ .Release.Namespace }}
|
||||||
|
labels: {{ include "extension-server.labels" . | nindent 4 }}
|
||||||
|
spec:
|
||||||
|
plugin:
|
||||||
|
name: {{ include "extension-server.fullname" . }}
|
||||||
|
version: {{ (semver (default .Chart.AppVersion .Values.plugin.versionOverride)).Original }}
|
||||||
|
endpoint: {{ .Values.plugin.endpoint | quote }}
|
||||||
|
compressedEndpoint: {{ .Values.plugin.compressedEndpoint | quote }}
|
||||||
|
noCache: {{ .Values.plugin.noCache }}
|
||||||
|
noAuth: {{ .Values.plugin.noAuth }}
|
||||||
|
metadata: {{ include "extension-server.pluginMetadata" . | indent 6 }}
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
nameOverride: ""
|
||||||
|
fullnameOverride: ""
|
||||||
|
plugin:
|
||||||
|
enabled: true
|
||||||
|
versionOverride: ""
|
||||||
|
endpoint: >-
|
||||||
|
https://raw.githubusercontent.com/harvester/harvester-ui-extension/gh-pages/extensions/harvester/1.9.0
|
||||||
|
compressedEndpoint: >-
|
||||||
|
https://raw.githubusercontent.com/harvester/harvester-ui-extension/gh-pages/extensions/harvester/1.9.0.tgz
|
||||||
|
noCache: false
|
||||||
|
noAuth: false
|
||||||
|
metadata:
|
||||||
|
catalog.cattle.io/display-name: Harvester
|
||||||
|
catalog.cattle.io/kube-version: ">= 1.16.0-0"
|
||||||
|
catalog.cattle.io/rancher-version: ">= 2.15.0-0"
|
||||||
|
catalog.cattle.io/ui-extensions-version: ">= 3.0.0 < 4.0.0"
|
||||||
Binary file not shown.
@@ -0,0 +1,82 @@
|
|||||||
|
plugin/harvester-1.10.0-dev.umd.min.129.js
|
||||||
|
plugin/harvester-1.10.0-dev.umd.min.129.js.map
|
||||||
|
plugin/harvester-1.10.0-dev.umd.min.134.js
|
||||||
|
plugin/harvester-1.10.0-dev.umd.min.134.js.map
|
||||||
|
plugin/harvester-1.10.0-dev.umd.min.158.js
|
||||||
|
plugin/harvester-1.10.0-dev.umd.min.158.js.map
|
||||||
|
plugin/harvester-1.10.0-dev.umd.min.238.js
|
||||||
|
plugin/harvester-1.10.0-dev.umd.min.238.js.map
|
||||||
|
plugin/harvester-1.10.0-dev.umd.min.277.js
|
||||||
|
plugin/harvester-1.10.0-dev.umd.min.277.js.map
|
||||||
|
plugin/harvester-1.10.0-dev.umd.min.303.js
|
||||||
|
plugin/harvester-1.10.0-dev.umd.min.303.js.map
|
||||||
|
plugin/harvester-1.10.0-dev.umd.min.341.js
|
||||||
|
plugin/harvester-1.10.0-dev.umd.min.341.js.map
|
||||||
|
plugin/harvester-1.10.0-dev.umd.min.374.js
|
||||||
|
plugin/harvester-1.10.0-dev.umd.min.374.js.map
|
||||||
|
plugin/harvester-1.10.0-dev.umd.min.411.js
|
||||||
|
plugin/harvester-1.10.0-dev.umd.min.411.js.map
|
||||||
|
plugin/harvester-1.10.0-dev.umd.min.431.js
|
||||||
|
plugin/harvester-1.10.0-dev.umd.min.431.js.map
|
||||||
|
plugin/harvester-1.10.0-dev.umd.min.446.js
|
||||||
|
plugin/harvester-1.10.0-dev.umd.min.446.js.map
|
||||||
|
plugin/harvester-1.10.0-dev.umd.min.460.js
|
||||||
|
plugin/harvester-1.10.0-dev.umd.min.460.js.map
|
||||||
|
plugin/harvester-1.10.0-dev.umd.min.483.js
|
||||||
|
plugin/harvester-1.10.0-dev.umd.min.483.js.map
|
||||||
|
plugin/harvester-1.10.0-dev.umd.min.489.js
|
||||||
|
plugin/harvester-1.10.0-dev.umd.min.489.js.map
|
||||||
|
plugin/harvester-1.10.0-dev.umd.min.6.js
|
||||||
|
plugin/harvester-1.10.0-dev.umd.min.6.js.map
|
||||||
|
plugin/harvester-1.10.0-dev.umd.min.60.js
|
||||||
|
plugin/harvester-1.10.0-dev.umd.min.60.js.map
|
||||||
|
plugin/harvester-1.10.0-dev.umd.min.654.js
|
||||||
|
plugin/harvester-1.10.0-dev.umd.min.654.js.map
|
||||||
|
plugin/harvester-1.10.0-dev.umd.min.67.js
|
||||||
|
plugin/harvester-1.10.0-dev.umd.min.67.js.map
|
||||||
|
plugin/harvester-1.10.0-dev.umd.min.714.js
|
||||||
|
plugin/harvester-1.10.0-dev.umd.min.714.js.map
|
||||||
|
plugin/harvester-1.10.0-dev.umd.min.833.js
|
||||||
|
plugin/harvester-1.10.0-dev.umd.min.833.js.map
|
||||||
|
plugin/harvester-1.10.0-dev.umd.min.856.js
|
||||||
|
plugin/harvester-1.10.0-dev.umd.min.856.js.map
|
||||||
|
plugin/harvester-1.10.0-dev.umd.min.895.js
|
||||||
|
plugin/harvester-1.10.0-dev.umd.min.895.js.map
|
||||||
|
plugin/harvester-1.10.0-dev.umd.min.906.js
|
||||||
|
plugin/harvester-1.10.0-dev.umd.min.906.js.map
|
||||||
|
plugin/harvester-1.10.0-dev.umd.min.989.js
|
||||||
|
plugin/harvester-1.10.0-dev.umd.min.989.js.map
|
||||||
|
plugin/harvester-1.10.0-dev.umd.min.csv.js
|
||||||
|
plugin/harvester-1.10.0-dev.umd.min.csv.js.map
|
||||||
|
plugin/harvester-1.10.0-dev.umd.min.detail.js
|
||||||
|
plugin/harvester-1.10.0-dev.umd.min.detail.js.map
|
||||||
|
plugin/harvester-1.10.0-dev.umd.min.dialog.js
|
||||||
|
plugin/harvester-1.10.0-dev.umd.min.dialog.js.map
|
||||||
|
plugin/harvester-1.10.0-dev.umd.min.edit.js
|
||||||
|
plugin/harvester-1.10.0-dev.umd.min.edit.js.map
|
||||||
|
plugin/harvester-1.10.0-dev.umd.min.formatters.js
|
||||||
|
plugin/harvester-1.10.0-dev.umd.min.formatters.js.map
|
||||||
|
plugin/harvester-1.10.0-dev.umd.min.js
|
||||||
|
plugin/harvester-1.10.0-dev.umd.min.js.map
|
||||||
|
plugin/harvester-1.10.0-dev.umd.min.list.js
|
||||||
|
plugin/harvester-1.10.0-dev.umd.min.list.js.map
|
||||||
|
plugin/harvester-1.10.0-dev.umd.min.promptRemove.js
|
||||||
|
plugin/harvester-1.10.0-dev.umd.min.promptRemove.js.map
|
||||||
|
plugin/harvester-1.10.0-dev.umd.min.xccdf.js
|
||||||
|
plugin/harvester-1.10.0-dev.umd.min.xccdf.js.map
|
||||||
|
plugin/harvester-1.10.0-dev.umd.min.xterm.js
|
||||||
|
plugin/harvester-1.10.0-dev.umd.min.xterm.js.map
|
||||||
|
plugin/img/custom.6f45244d.svg
|
||||||
|
plugin/img/email.b67ceff2.svg
|
||||||
|
plugin/img/generic-catalog.1842a50e.svg
|
||||||
|
plugin/img/generic-plugin.f1ebdd74.svg
|
||||||
|
plugin/img/grafana.2db31bb8.svg
|
||||||
|
plugin/img/harvester.0168283e.svg
|
||||||
|
plugin/img/icon.42954c0f.svg
|
||||||
|
plugin/img/pagerduty.9871fbd3.svg
|
||||||
|
plugin/img/prometheus.be8ac54d.svg
|
||||||
|
plugin/img/slack.34dfd73f.svg
|
||||||
|
plugin/img/suse-virtualization.997bbcc3.svg
|
||||||
|
plugin/img/suse-virtualization.a5ab2c15.svg
|
||||||
|
plugin/img/webhook.f86c012b.svg
|
||||||
|
plugin/package.json
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
(("undefined"!==typeof self?self:this)["webpackChunkharvester_1_10_0_dev"]=("undefined"!==typeof self?self:this)["webpackChunkharvester_1_10_0_dev"]||[]).push([[129],{459:function(e,t,r){"use strict";r.d(t,{A:function(){return U}});var o=r(9274);const a={class:"chart"},n={key:0,class:"hw-gauge"},s={class:"values text-muted"},l={key:0},i={key:1},u={key:2},c={key:3},d={key:1,class:"hw-gauge"},p={class:"values text-muted"},f={key:0},m={key:1},h={key:2},g={key:3};function v(e,t,r,v,y,k){const x=(0,o.resolveComponent)("ConsumptionGauge"),S=(0,o.resolveComponent)("SimpleBox");return(0,o.openBlock)(),(0,o.createBlock)(S,{class:"hardware-resource-gauge"},{default:(0,o.withCtx)(()=>[(0,o.createElementVNode)("div",a,[(0,o.createElementVNode)("h3",null,(0,o.toDisplayString)(r.name),1),!r.reserved||void 0===r.reserved.total&&void 0===r.reserved.useful?(0,o.createCommentVNode)("",!0):((0,o.openBlock)(),(0,o.createElementBlock)("div",n,[(0,o.createVNode)(x,{capacity:r.reserved.total,used:r.reserved.useful,"color-stops":k.colorStops},{title:(0,o.withCtx)(()=>[(0,o.createElementVNode)("span",null,[(0,o.createTextVNode)((0,o.toDisplayString)(r.reservedTitle??e.t("clusterIndexPage.hardwareResourceGauge.reserved"))+" ",1),(0,o.createElementVNode)("span",s,[r.reserved.formattedUseful?((0,o.openBlock)(),(0,o.createElementBlock)("span",l,(0,o.toDisplayString)(r.reserved.formattedUseful),1)):((0,o.openBlock)(),(0,o.createElementBlock)("span",i,(0,o.toDisplayString)(k.maxDecimalPlaces(r.reserved.useful)),1)),t[0]||(t[0]=(0,o.createTextVNode)(" / ",-1)),r.reserved.formattedTotal?((0,o.openBlock)(),(0,o.createElementBlock)("span",u,(0,o.toDisplayString)(r.reserved.formattedTotal),1)):((0,o.openBlock)(),(0,o.createElementBlock)("span",c,(0,o.toDisplayString)(k.maxDecimalPlaces(r.reserved.total))+" "+(0,o.toDisplayString)(r.reserved.units),1))])]),(0,o.createElementVNode)("span",null,(0,o.toDisplayString)(k.percentage(r.reserved)),1)]),_:1},8,["capacity","used","color-stops"])])),r.used&&void 0!==r.used.useful?((0,o.openBlock)(),(0,o.createElementBlock)("div",d,[(0,o.createVNode)(x,{capacity:r.used.total,used:r.used.useful,"color-stops":k.colorStops},{title:(0,o.withCtx)(()=>[(0,o.createElementVNode)("span",null,[(0,o.createTextVNode)((0,o.toDisplayString)(r.usedTitle??e.t("clusterIndexPage.hardwareResourceGauge.used"))+" ",1),(0,o.createElementVNode)("span",p,[r.used.formattedUseful?((0,o.openBlock)(),(0,o.createElementBlock)("span",f,(0,o.toDisplayString)(r.used.formattedUseful),1)):((0,o.openBlock)(),(0,o.createElementBlock)("span",m,(0,o.toDisplayString)(k.maxDecimalPlaces(r.used.useful)),1)),t[1]||(t[1]=(0,o.createTextVNode)(" / ",-1)),r.used.formattedTotal?((0,o.openBlock)(),(0,o.createElementBlock)("span",h,(0,o.toDisplayString)(r.used.formattedTotal),1)):((0,o.openBlock)(),(0,o.createElementBlock)("span",g,(0,o.toDisplayString)(k.maxDecimalPlaces(r.used.total))+" "+(0,o.toDisplayString)(r.used.units),1))])]),(0,o.createElementVNode)("span",null,(0,o.toDisplayString)(k.percentage(r.used)),1)]),_:1},8,["capacity","used","color-stops"])])):(0,o.createCommentVNode)("",!0)])]),_:1})}const y={class:"consumption-gauge"},k={key:0},x={class:"numbers"},S={key:0},b={key:1},B={class:"numbers-stats"},C={class:"percentage"},$={class:"mt-10"};function w(e,t,r,a,n,s){const l=(0,o.resolveComponent)("PercentageBar");return(0,o.openBlock)(),(0,o.createElementBlock)("div",y,[r.resourceName&&!r.usedAsResourceName?((0,o.openBlock)(),(0,o.createElementBlock)("h3",k,(0,o.toDisplayString)(r.resourceName),1)):(0,o.createCommentVNode)("",!0),(0,o.createElementVNode)("div",x,[(0,o.renderSlot)(e.$slots,"title",{amountTemplateValues:s.amountTemplateValues,formattedPercentage:s.formattedPercentage},()=>[r.usedAsResourceName?((0,o.openBlock)(),(0,o.createElementBlock)("h4",S,(0,o.toDisplayString)(r.resourceName),1)):((0,o.openBlock)(),(0,o.createElementBlock)("span",b,(0,o.toDisplayString)(r.usedLabel||e.t("node.detail.glance.consumptionGauge.used")),1)),(0,o.createElementVNode)("span",B,[(0,o.createTextVNode)((0,o.toDisplayString)(e.t("node.detail.glance.consumptionGauge.amount",s.amountTemplateValues))+" ",1),(0,o.createElementVNode)("span",C,[t[0]||(t[0]=(0,o.createElementVNode)("i",null,"/ ",-1)),(0,o.createTextVNode)((0,o.toDisplayString)(s.formattedPercentage),1)])])])]),(0,o.createElementVNode)("div",$,[(0,o.createVNode)(l,{modelValue:s.percentageBarValue,"color-stops":r.colorStops},null,8,["modelValue","color-stops"])])])}var D=r(12243),V=r(92043),N={components:{PercentageBar:D.A},props:{resourceName:{type:String,default:""},capacity:{type:Number,required:!0},used:{type:Number,required:!0},units:{type:String,default:""},numberFormatter:{type:Function,default:e=>Number.isInteger(e)?e:e.toFixed(2)},colorStops:{type:Object,default:null},usedAsResourceName:{type:Boolean,default:!1},usedLabel:{type:String,default:null}},computed:{displayUnits(){return this.units?` ${this.units}`:""},percentageBarValue(){return this.used&&this.capacity?100*this.used/thisLine truncated
|
||||||
|
//# sourceMappingURL=harvester-1.10.0-dev.umd.min.129.js.map
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
{"version":3,"file":"harvester-1.10.0-dev.umd.min.129.js","mappings":"+PA2ESA,MAAM,S,SAMPA,MAAM,Y,GAUMA,MAAM,qB,iDAwBlBA,MAAM,Y,GAUMA,MAAM,qB,kLAnDxBC,EAAAA,EAAAA,aA0EYC,EAAA,CA1EDF,MAAM,2BAAyB,C,sBACxC,IAwEM,EAxENG,EAAAA,EAAAA,oBAwEM,MAxENC,EAwEM,EAvEJD,EAAAA,EAAAA,oBAEK,WAAAE,EAAAA,EAAAA,iBADAC,EAAAC,MAAI,IAGDD,EAAAE,eAAgCC,IAAnBH,EAAAE,SAASE,YAA2CD,IAApBH,EAAAE,SAASG,Q,mDAD9DC,EAAAA,EAAAA,oBAiCM,MAjCNC,EAiCM,EA7BJC,EAAAA,EAAAA,aA4BmBC,EAAA,CA3BhBC,SAAUV,EAAAE,SAASE,MACnBO,KAAMX,EAAAE,SAASG,OACf,cAAaO,EAAAC,Y,CAEHC,OAAKC,EAAAA,EAAAA,SACd,IAiBO,E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F,Q,uBAET,IAOO,EAPPtD,EAAAA,EAAAA,YAOOrB,EAAAsB,OAAA,YAPP,IAOO,CALGvC,EAAA6F,c,kBADRlG,EAAAA,EAAAA,aAIE2F,EAAA,C,MAFCC,EAAGvF,EAAA6F,YACHL,KAAK,G,qEACN,KACFzF,EAAAA,EAAAA,iBAAGC,EAAA8F,QAAM,O,yBAGbxD,EAAAA,EAAAA,YAOOrB,EAAAsB,OAAA,YAPP,IAOO,CALGvC,EAAALine truncated
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
(("undefined"!==typeof self?self:this)["webpackChunkharvester_1_10_0_dev"]=("undefined"!==typeof self?self:this)["webpackChunkharvester_1_10_0_dev"]||[]).push([[134],{67740:function(e,t,r){"use strict";r.d(t,{A:function(){return v}});var s=r(9274);const a={class:"filter"},o={key:0,class:"banner-item bg-warning"},n={ref:"actionDropDown",class:"btn bg-primary mr-10"},i={class:"filter-popup"};function l(e,t,r,l,c,p){const d=(0,s.resolveComponent)("LabeledSelect"),u=(0,s.resolveComponent)("v-dropdown");return(0,s.openBlock)(),(0,s.createElementBlock)("div",a,[c.parentSriov?((0,s.openBlock)(),(0,s.createElementBlock)("span",o,[(0,s.createTextVNode)((0,s.toDisplayString)(c.parentSriov)+" ",1),(0,s.createElementVNode)("i",{class:"icon icon-close",onClick:t[0]||(t[0]=e=>p.remove())})])):(0,s.createCommentVNode)("",!0),(0,s.createVNode)(u,{"popper-class":"filter-parent-sriov",trigger:"click",placement:"bottom-end",distance:20},{popper:(0,s.withCtx)(()=>[(0,s.createElementVNode)("div",i,[(0,s.createElementVNode)("div",null,[(0,s.createVNode)(d,{value:c.parentSriov,"onUpdate:value":t[1]||(t[1]=e=>c.parentSriov=e),options:r.parentSriovOptions,searchable:!0,label:r.label},null,8,["value","options","label"])])])]),default:(0,s.withCtx)(()=>[(0,s.renderSlot)(e.$slots,"header",{},()=>[(0,s.createElementVNode)("button",n,[(0,s.renderSlot)(e.$slots,"title",{},()=>[(0,s.createTextVNode)((0,s.toDisplayString)(r.label),1)],!0)],512)],!0)]),_:3})])}var c=r(49452),p={name:"HarvesterFilterLabel",emits:["change-rows"],components:{LabeledSelect:c.A},props:{rows:{type:Array,required:!0},parentSriovOptions:{type:Array,required:!0},parentSriovLabel:{type:String,required:!0},label:{type:String,required:!0}},data(){return{parentSriov:this.$route.query?.parentSriov||null}},methods:{remove(){this.parentSriov=null,this.filterRows()},filterRows(){const e=this.rows.filter(e=>{if(!this.parentSriov)return!0;const t=e.labels[this.parentSriovLabel];return t===this.parentSriov});this.$emit("change-rows",e,this.parentSriov)}},watch:{parentSriov:{deep:!0,immediate:!0,handler(){this.filterRows()}}}},d=(r(73876),r(66446),r(47433));const u=(0,d.A)(p,[["render",l],["__scopeId","data-v-f3c890e8"]]);var v=u},55760:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return y}});var s=r(9274);const a={key:0,class:"group-actions"},o=["onClick"],n=["onClick"],i={key:0},l={key:1,class:"text-muted"};function c(e,t,r,c,p,d){const u=(0,s.resolveComponent)("FilterBySriov"),v=(0,s.resolveComponent)("ResourceTable"),h=(0,s.resolveDirective)("clean-html"),m=(0,s.resolveDirective)("trim-whitespace");return(0,s.openBlock)(),(0,s.createBlock)(v,{headers:p.headers,schema:r.schema,rows:p.filterRows,"use-query-params-for-simple-filtering":!0,"sort-generation-fn":d.sortGenerationFn,"rows-per-page":10},{"group-by":(0,s.withCtx)(({group:t})=>[(0,s.withDirectives)(((0,s.openBlock)(),(0,s.createElementBlock)("div",{ref:t.key,class:"group-tab"},[d.canManageGroup(t.rows)?((0,s.openBlock)(),(0,s.createElementBlock)("div",a,[d.groupIsAllEnabled(t.rows)?((0,s.openBlock)(),(0,s.createElementBlock)("button",{key:0,type:"button",class:"btn btn-sm role-secondary mr-5",onClick:e=>{d.disableGroup(t.rows),e.target.blur()}},(0,s.toDisplayString)(e.t("harvester.pci.disableGroup")),9,o)):((0,s.openBlock)(),(0,s.createElementBlock)("button",{key:1,type:"button",class:"btn btn-sm role-secondary mr-5",onClick:e=>{d.enableGroup(t.rows),e.target.blur()}},(0,s.toDisplayString)(e.t("harvester.pci.enableGroup")),9,n))])):(0,s.createCommentVNode)("",!0),(0,s.withDirectives)((0,s.createElementVNode)("span",null,null,512),[[h,t.key]])])),[[m]])]),"cell:claimed":(0,s.withCtx)(({row:e})=>[e.isEnabled?((0,s.openBlock)(),(0,s.createElementBlock)("span",i,(0,s.toDisplayString)(e.claimedBy),1)):((0,s.openBlock)(),(0,s.createElementBlock)("span",l,"—"))]),"more-header-middle":(0,s.withCtx)(()=>[(0,s.createVNode)(u,{ref:"filterByParentSRIOV","parent-sriov-options":d.parentSriovOptions,"parent-sriov-label":d.parentSriovLabel,label:e.t("harvester.sriov.parentSriov"),rows:p.rows,onChangeRows:d.changeRows},null,8,["parent-sriov-options","parent-sriov-label","label","rows","onChangeRows"]),d.vGPUAsPCIDeviceEnabled?((0,s.openBlock)(),(0,s.createBlock)(u,{key:0,ref:"filterByParentSRIOVGPU","parent-sriov-options":d.parentSriovGPUOptions,"parent-sriov-label":d.parentSriovGPULabel,label:e.t("harvester.sriov.parentSriovGPU"),rows:p.rows,onChangeRows:d.changeRows},null,8,["parent-sriov-options","parent-sriov-label","label","rows","onChangeRows"])):(0,s.createCommentVNode)("",!0)]),_:1},8,["headers","schema","rows","sort-generation-fn"])}var p=r(31085),d=r(68774),u=r(88339),v=r(2602),h=r(32766),m=r(67740),b={name:"ListPciDevices",components:{ResourceTable:p.A,FilterBySriov:m.A},inheritAttrs:!1,props:{schema:{type:Object,required:!0},devices:{type:Array,required:!0}},async fetch(){const e=this.$store.getters["currentProduct"].inStore,t={pciclaims:this.$store.dispatch(`${e}/findAll`,{type:h.rk.PCI_CLAIM}),sriovs:Line truncated
|
||||||
|
//# sourceMappingURL=harvester-1.10.0-dev.umd.min.134.js.map
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
{"version":3,"file":"harvester-1.10.0-dev.umd.min.134.js","mappings":"iQAuEOA,MAAM,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AAAA,GACE,OAAOtC,KAAKoE,aAAaC,IAAKG,GAAaA,EAASD,GACtD,EACA1E,gBAAAA,GACE,OAAO4E,EAAAA,EAAgBC,YACzB,EACAnC,mBAAAA,GACE,OAAOkC,EAAAA,EAAgBE,gBACzB,EACAtC,sBAAAA,GACE,OAAOrC,KAAK+C,OAAOC,QAAQ,sCAAsC,kBACnE,GAEF7C,QAAS,CACP0B,WAAAA,CAAYpC,EAAO,IACjB,MAAMa,EAAMb,EAAK,GAEba,GACFA,EAAIsE,sBAAsBnF,EAE9B,EACAgC,YAAAA,CAAahC,EAAO,IAClBA,EAAKoF,QAASvE,IACRA,EAAIwE,kBACNxE,EAAIyE,sBAGV,EACAxD,iBAAAA,CAAkB9B,EAAO,IACvB,OAAQA,EAAKuF,KAAMC,IAAYA,EAAOH,iBACxC,EAEAxD,cAAAA,CAAe7B,EAAO,IACpB,OAAOA,EAAKyF,OAAS,GAAKzF,EAAK0F,MAAO7E,IAA0B,IAAlBA,EAAI8E,UACpD,EAEAhD,UAAAA,CAAWhC,EAAY3C,GACrBuC,KAAK,cAAgBI,EACrBJ,KAAK,eAAiBvC,CACxB,EAEA0D,gBAAAA,GACE,IAAIkE,GAAOC,EAAAA,EAAAA,GAA6BtF,KAAKkB,OAAQlB,KAAK+C,QAM1D,OAJI/C,Line truncated
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
(("undefined"!==typeof self?self:this)["webpackChunkharvester_1_10_0_dev"]=("undefined"!==typeof self?self:this)["webpackChunkharvester_1_10_0_dev"]||[]).push([[158],{24151:function(e,t,s){"use strict";s.d(t,{A:function(){return f}});var i=s(9274);const n={class:"text-default-text"},r={class:"footer"};function a(e,t,s,a,o,h){const l=(0,i.resolveComponent)("Banner"),_=(0,i.resolveComponent)("AsyncButton"),c=(0,i.resolveComponent)("Card"),u=(0,i.resolveComponent)("app-modal");return(0,i.openBlock)(),(0,i.createBlock)(u,(0,i.mergeProps)({name:s.name,width:s.width,"click-to-close":!1,height:s.height},e.$attrs,{class:"modal","data-testid":"mvc__card","trigger-focus-trap":!0,onClose:t[2]||(t[2]=t=>e.$emit("finish",t))}),{default:(0,i.withCtx)(()=>[(0,i.createVNode)(c,{class:"modal","show-highlight-border":!1},{title:(0,i.withCtx)(()=>[(0,i.createElementVNode)("h4",n,[(0,i.renderSlot)(e.$slots,"title",{},void 0,!0)])]),body:(0,i.withCtx)(()=>[(0,i.renderSlot)(e.$slots,"content",{},void 0,!0),((0,i.openBlock)(!0),(0,i.createElementBlock)(i.Fragment,null,(0,i.renderList)(s.errors,(e,t)=>((0,i.openBlock)(),(0,i.createElementBlock)("div",{key:t},[(0,i.createVNode)(l,{class:"banner",color:"error",label:e},null,8,["label"])]))),128))]),actions:(0,i.withCtx)(()=>[(0,i.renderSlot)(e.$slots,"footer",{},()=>[(0,i.createElementVNode)("div",r,[(0,i.createElementVNode)("button",{class:"btn role-secondary mr-20",onClick:t[0]||(t[0]=(0,i.withModifiers)((...e)=>h.hide&&h.hide(...e),["prevent"]))},(0,i.toDisplayString)(s.closeText),1),(0,i.createVNode)(_,{mode:s.saveText,onClick:t[1]||(t[1]=t=>e.$emit("finish",t))},null,8,["mode"])])],!0)]),_:3})]),_:3},16,["name","width","height"])}var o=s(31019),h=s(9980),l=s(30699),_=s(79535),c={name:"ModalWithCard",emits:["close","finish"],components:{Card:o.Z,Banner:h.l,AsyncButton:l.A,AppModal:_.h},props:{name:{type:String,required:!0},closeText:{type:String,default:"Close"},saveText:{type:String,default:"create"},width:{type:[String,Number],default:"50%"},height:{type:[String,Number],default:"auto"},errors:{type:Array,default:()=>[]}},methods:{hide(){this.$emit("close")}}},u=(s(60580),s(1962),s(47433));const d=(0,u.A)(c,[["render",a],["__scopeId","data-v-00744f30"]]);var f=d},7844:function(e,t,s){"use strict";s.r(t);var i=s(36758),n=s.n(i),r=s(40935),a=s.n(r),o=a()(n());o.push([e.id,".footer[data-v-00744f30]{width:100%;display:flex;justify-content:center}.banner[data-v-00744f30]{margin-bottom:0}",""]),t["default"]=o},98570:function(e,t,s){"use strict";s.r(t);var i=s(36758),n=s.n(i),r=s(40935),a=s.n(r),o=a()(n());o.push([e.id,".modal{border-radius:var(--border-radius);max-height:100vh}.modal.card-container{box-shadow:none}",""]),t["default"]=o},60580:function(e,t,s){var i=s(7844);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var n=s(74825).A;n("4b65b293",i,!0,{sourceMap:!1,shadowMode:!1})},1962:function(e,t,s){var i=s(98570);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var n=s(74825).A;n("2853bda7",i,!0,{sourceMap:!1,shadowMode:!1})},54727:function(e,t,s){"use strict";var i=s(83782);t.A={toBase64Table:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".split(""),base64Pad:"=",encode(e){let t="";const s=e.length,i=s%3;for(let r=0;r<s-2;r+=3)t+=this.toBase64Table[e[r]>>2],t+=this.toBase64Table[((3&e[r])<<4)+(e[r+1]>>4)],t+=this.toBase64Table[((15&e[r+1])<<2)+(e[r+2]>>6)],t+=this.toBase64Table[63&e[r+2]];const n=s-i;return 2===i?(t+=this.toBase64Table[e[n]>>2],t+=this.toBase64Table[((3&e[n])<<4)+(e[n+1]>>4)],t+=this.toBase64Table[(15&e[n+1])<<2],t+=this.toBase64Table[64]):1===i&&(t+=this.toBase64Table[e[n]>>2],t+=this.toBase64Table[(3&e[n])<<4],t+=this.toBase64Table[64],t+=this.toBase64Table[64]),t},toBinaryTable:[-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,0,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,-1,-1,-1,-1,-1],decode(e,t=0){let s=e.indexOf("=")-t;s<0&&(s=e.length-t);const n=3*(s>>2)+Math.floor(s%4/1.5),r=new Array(n);let a=0,o=0;for(let h=0,l=t;l<e.length;l++){const t=this.toBinaryTable[127&e.charCodeAt(l)],s=e.charAt(l)===this.base64Pad;-1!==t?(o=o<<6|t,a+=6,a>=8&&(a-=8,s||(r[h++]=o>>a&255),o&=(1<<a)-1)):i.$D("Illegal character code "+e.charCodeAt(l)+" at position "+l)}if(a){const e=new Error("Corrupted base64 string");throw e.name="Base64-Error",e}return r}}},8099:function(e,t,s){"use strict";s.d(t,{A:function(){return O}});class i{constructor(){this._key=null}get algorithm(){return{name:"AES-ECB"}}static async importKey(e,t,s,n){const r=new i;return await r._importKey(e,s,n),r}async _importKey(e,t,s){this._key=await window.crypto.subtle.importKey("raw",e,{name:"AES-CBC"},t,s)}async encrypt(e,t){const
Line truncated
|
||||||
|
//# sourceMappingURL=harvester-1.10.0-dev.umd.min.158.js.map
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
{"version":3,"file":"harvester-1.10.0-dev.umd.min.158.js","mappings":"iQA2EYA,MAAM,qB,GAsBHA,MAAM,U,yMAtCnBC,EAAAA,EAAAA,aAsDYC,GAtDZC,EAAAA,EAAAA,YAsDY,CArDTC,KAAMC,EAAAD,KACNE,MAAOD,EAAAC,MACP,kBAAgB,EAChBC,OAAQF,EAAAE,QACDC,EAAAC,OAAM,CACdT,MAAM,QACN,cAAY,YACX,sBAAoB,EACpBU,QAAKC,EAAA,KAAAA,EAAA,GAAAC,GAAEJ,EAAAK,MAAM,SAAUD,M,uBAExB,IA0CO,EA1CPE,EAAAA,EAAAA,aA0COC,EAAA,CAzCLf,MAAM,QACL,yBAAuB,G,CAEbgB,OAAKC,EAAA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WAAYkG,EAAaC,EACpD,CAEA,aAAMM,CAAQR,EAAYS,GACtB,MAAMC,EAAI,IAAIC,WAAWF,GACzB,GAAIC,EAAElC,OAAS,KAAO,GAAmB,OAAdlB,KAAKuC,KAC5B,OAAO,KAEX,MAAMe,EAAIF,EAAElC,OAAS,GACrB,IAAK,IAAIE,EAAI,EAAGA,EAAIkC,EAAGlC,IAAK,CACxB,MAAMmC,EAAI,IAAIF,iBAAiBN,OAAOC,OAAOC,OAAOC,QAAQ,CACxDzG,KAAM,UACN+G,GAAI,IAAIH,WAAW,KACpBrD,KAAKuC,KAAMa,EAAEK,MAAU,GAAJrC,EAAY,GAAJA,EAAS,MAAMqC,MAAM,EAAG,IACtDL,EAAEM,IAAIH,EAAO,GAAJnC,EALine truncated
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
"use strict";(("undefined"!==typeof self?self:this)["webpackChunkharvester_1_10_0_dev"]=("undefined"!==typeof self?self:this)["webpackChunkharvester_1_10_0_dev"]||[]).push([[238],{74562:function(e,t,n){n.d(t,{A:function(){return f}});var s=n(9274);const i={key:0};function o(e,t,n,o,r,a){const c=(0,s.resolveComponent)("BadgeState");return(0,s.openBlock)(),(0,s.createElementBlock)("div",null,[n.arbitrary?((0,s.openBlock)(),(0,s.createElementBlock)("div",i,[n.value?((0,s.openBlock)(),(0,s.createBlock)(c,{key:0,color:r.stateBackground,label:r.stateDisplay},null,8,["color","label"])):(0,s.createCommentVNode)("",!0)])):((0,s.openBlock)(),(0,s.createBlock)(c,{key:1,value:n.row},null,8,["value"]))])}var r=n(41418),a=n(73883),c={components:{BadgeState:r.j},props:{value:{type:String,default:""},row:{type:Object,required:!0},col:{type:Object,default:()=>{}},arbitrary:{type:Boolean,default:!1}},data(){return{stateDisplay:"",stateBackground:""}},watch:{value:{handler(){if(this.arbitrary){const e=(0,a.uU)(this.value);this.stateDisplay=(0,a.ch)(this.value),this.stateBackground=e.replace("text-","bg-")}},immediate:!0}}},l=n(47433);const u=(0,l.A)(c,[["render",o]]);var f=u},5159:function(e,t,n){n.d(t,{Ay:function(){return ws}});var s={};n.r(s),n.d(s,{BOM:function(){return Vn},DOCUMENT:function(){return Jn},FLOW_END:function(){return Yn},SCALAR:function(){return Wn},createScalarToken:function(){return $n},isCollection:function(){return Gn},isScalar:function(){return Qn},prettyToken:function(){return Hn},resolveAsScalar:function(){return xn},setScalarValue:function(){return Cn},stringify:function(){return jn},tokenType:function(){return Xn},visit:function(){return Rn}});var i={};n.r(i),n.d(i,{Alias:function(){return U},CST:function(){return s},Composer:function(){return Ln},Document:function(){return Ut},Lexer:function(){return is},LineCounter:function(){return os},Pair:function(){return $e},Parser:function(){return ds},Scalar:function(){return V},Schema:function(){return qt},YAMLError:function(){return Ft},YAMLMap:function(){return Me},YAMLParseError:function(){return Vt},YAMLSeq:function(){return qe},YAMLWarning:function(){return Jt},isAlias:function(){return h},isCollection:function(){return b},isDocument:function(){return d},isMap:function(){return p},isNode:function(){return w},isPair:function(){return m},isScalar:function(){return y},isSeq:function(){return g},parse:function(){return gs},parseAllDocuments:function(){return ms},parseDocument:function(){return ys},stringify:function(){return bs},visit:function(){return N},visitAsync:function(){return A}});const o=Symbol.for("yaml.alias"),r=Symbol.for("yaml.document"),a=Symbol.for("yaml.map"),c=Symbol.for("yaml.pair"),l=Symbol.for("yaml.scalar"),u=Symbol.for("yaml.seq"),f=Symbol.for("yaml.node.type"),h=e=>!!e&&"object"===typeof e&&e[f]===o,d=e=>!!e&&"object"===typeof e&&e[f]===r,p=e=>!!e&&"object"===typeof e&&e[f]===a,m=e=>!!e&&"object"===typeof e&&e[f]===c,y=e=>!!e&&"object"===typeof e&&e[f]===l,g=e=>!!e&&"object"===typeof e&&e[f]===u;function b(e){if(e&&"object"===typeof e)switch(e[f]){case a:case u:return!0}return!1}function w(e){if(e&&"object"===typeof e)switch(e[f]){case o:case a:case l:case u:return!0}return!1}const k=e=>(y(e)||b(e))&&!!e.anchor,v=Symbol("break visit"),S=Symbol("skip children"),E=Symbol("remove node");function N(e,t){const n=I(t);if(d(e)){const t=O(null,e.contents,n,Object.freeze([e]));t===E&&(e.contents=null)}else O(null,e,n,Object.freeze([]))}function O(e,t,n,s){const i=L(e,t,n,s);if(w(i)||m(i))return x(e,s,i),O(e,i,n,s);if("symbol"!==typeof i)if(b(t)){s=Object.freeze(s.concat(t));for(let e=0;e<t.items.length;++e){const i=O(e,t.items[e],n,s);if("number"===typeof i)e=i-1;else{if(i===v)return v;i===E&&(t.items.splice(e,1),e-=1)}}}else if(m(t)){s=Object.freeze(s.concat(t));const e=O("key",t.key,n,s);if(e===v)return v;e===E&&(t.key=null);const i=O("value",t.value,n,s);if(i===v)return v;i===E&&(t.value=null)}return i}async function A(e,t){const n=I(t);if(d(e)){const t=await T(null,e.contents,n,Object.freeze([e]));t===E&&(e.contents=null)}else await T(null,e,n,Object.freeze([]))}async function T(e,t,n,s){const i=await L(e,t,n,s);if(w(i)||m(i))return x(e,s,i),T(e,i,n,s);if("symbol"!==typeof i)if(b(t)){s=Object.freeze(s.concat(t));for(let e=0;e<t.items.length;++e){const i=await T(e,t.items[e],n,s);if("number"===typeof i)e=i-1;else{if(i===v)return v;i===E&&(t.items.splice(e,1),e-=1)}}}else if(m(t)){s=Object.freeze(s.concat(t));const e=await T("key",t.key,n,s);if(e===v)return v;e===E&&(t.key=null);const i=await T("value",t.value,n,s);if(i===v)return v;i===E&&(t.value=null)}return i}function I(e){return"object"===typeof e&&(e.Collection||e.Node||e.Value)?Object.assign({Alias:e.Node,Map:e.Node,Scalar:e.Node,Seq:e.Node},e.Value&&{Map:e.Value,Scalar:e.Value,Seq:e.Value},e.Collection&&{Map:e.Collection,Seq:e.Collection},e):e}function L(e,t,n,s){return"function"===typeof n?n(e,t,s):p(t)?n.Map?.(e,t,s):g(t)?n.Seq?.(e,t,s):m(t)?n.Pair?.(e,t,s):y(t)?n.Scalar?.(e,t,sLine truncated
|
||||||
|
//# sourceMappingURL=harvester-1.10.0-dev.umd.min.238.js.map
|
||||||
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OH,GACAc,EAAQ+B,OAAOxB,EAAKrB,EAAMsB,GACjClB,EAASJ,GACFc,EAAQ6B,SAAStB,EAAKrB,EAAMsB,GACnCvB,EAAQC,GACDc,EAAQ2B,QAAQpB,EAAKrB,EAAMsB,QADtC,CAGJ,CACA,SAASG,EAAYJ,EAAKC,EAAMtB,GAC5B,MAAM8C,EAASxB,EAAKA,EAAKO,OAAS,GAClC,GAAIvB,EAAawC,GACbA,EAAOlB,MAAMP,GAAOrB,OAEnB,GAAIG,EAAO2C,GACA,QAARzB,EACAyB,EAAOzB,IAAMrB,EAEb8C,EAAOpF,MAAQsC,MAElB,KAAIC,EAAW6C,GAGf,CACD,MAAMC,EAAKhD,EAAQ+C,GAAU,QAAU,SACvC,MAAM,IAAIE,MAAM,4BAA4BD,WAChD,CALID,EAAO3B,SAAWnB,CAKtB,CACJ,CArLAa,EAAMH,MAAQA,EAEdG,EAAMF,KAAOA,EAEbE,EAAMD,OAASA,EAmFfuB,EAAWzB,MAAQA,EAEnByB,EAAWxB,KAAOA,EAElBwB,EAAWvB,OAASA,ECzIpB,MAAMqC,EAAc,CAChB,IAAK,MACL,IAAK,MACL,IAAK,MACL,IAAK,MACL,IAAK,MACL,IAAK,OAEHC,EAAiBC,GAAOA,EAAGjE,QAAQ,aAAckE,GAAMH,EAAYG,IACzE,MAAMC,EACF,WAAAC,CAAYC,EAAMC,GAKdxE,KAAKyE,SALine truncated
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
"use strict";(("undefined"!==typeof self?self:this)["webpackChunkharvester_1_10_0_dev"]=("undefined"!==typeof self?self:this)["webpackChunkharvester_1_10_0_dev"]||[]).push([[277],{28277:function(e,n,t){t.r(n),t.d(n,{default:function(){return f}});var r=t(9274);function s(e,n,t,s,o,c){const u=(0,r.resolveComponent)("ResourceDetail");return(0,r.openBlock)(),(0,r.createBlock)(u)}var o=t(3049),c={name:"ClusterResourceNamespaceId",components:{ResourceDetail:o.A}},u=t(47433);const a=(0,u.A)(c,[["render",s]]);var f=a}}]);
|
||||||
|
//# sourceMappingURL=harvester-1.10.0-dev.umd.min.277.js.map
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
{"version":3,"file":"harvester-1.10.0-dev.umd.min.277.js","mappings":"uWAUEA,EAAAA,EAAAA,aAAkBC,E,eAPpB,GACEC,KAAY,6BACZC,WAAY,CAAEC,eAAcA,EAAAA,I,WCA9B,MAAMC,GAA2B,OAAgB,EAAQ,CAAC,CAAC,SAASC,KAEpE,O","sources":["webpack://harvester-1.10.0-dev/../../node_modules/@rancher/shell/pages/c/_cluster/_product/_resource/_namespace/_id.vue","webpack://harvester-1.10.0-dev/../../node_modules/@rancher/shell/pages/c/_cluster/_product/_resource/_namespace/_id.vue?9724"],"sourcesContent":["<script>\nimport ResourceDetail from '@shell/components/ResourceDetail';\n\nexport default {\n name: 'ClusterResourceNamespaceId',\n components: { ResourceDetail },\n};\n</script>\n\n<template>\n <ResourceDetail />\n</template>\n","import { render } from \"./_id.vue?vue&type=template&id=36f5b1f9\"\nimport script from \"./_id.vue?vue&type=script&lang=js\"\nexport * from \"./_id.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"../../../../../../../../vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__"],"names":["_createBlock","_component_ResourceDetail","name","components","ResourceDetail","__exports__","render"],"sourceRoot":""}
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
"use strict";(("undefined"!==typeof self?self:this)["webpackChunkharvester_1_10_0_dev"]=("undefined"!==typeof self?self:this)["webpackChunkharvester_1_10_0_dev"]||[]).push([[303],{66303:function(e,n,t){t.r(n),t.d(n,{default:function(){return f}});var r=t(9274);function s(e,n,t,s,o,u){const c=(0,r.resolveComponent)("ResourceDetail");return(0,r.openBlock)(),(0,r.createBlock)(c)}var o=t(3049),u={name:"ClusterResourcedId",components:{ResourceDetail:o.A}},c=t(47433);const a=(0,c.A)(u,[["render",s]]);var f=a}}]);
|
||||||
|
//# sourceMappingURL=harvester-1.10.0-dev.umd.min.303.js.map
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
{"version":3,"file":"harvester-1.10.0-dev.umd.min.303.js","mappings":"uWAUEA,EAAAA,EAAAA,aAAkBC,E,eAPpB,GACEC,KAAY,qBACZC,WAAY,CAAEC,eAAcA,EAAAA,I,WCA9B,MAAMC,GAA2B,OAAgB,EAAQ,CAAC,CAAC,SAASC,KAEpE,O","sources":["webpack://harvester-1.10.0-dev/../../node_modules/@rancher/shell/pages/c/_cluster/_product/_resource/_id.vue","webpack://harvester-1.10.0-dev/../../node_modules/@rancher/shell/pages/c/_cluster/_product/_resource/_id.vue?96bb"],"sourcesContent":["<script>\nimport ResourceDetail from '@shell/components/ResourceDetail';\n\nexport default {\n name: 'ClusterResourcedId',\n components: { ResourceDetail },\n};\n</script>\n\n<template>\n <ResourceDetail />\n</template>\n","import { render } from \"./_id.vue?vue&type=template&id=7d01dbfe\"\nimport script from \"./_id.vue?vue&type=script&lang=js\"\nexport * from \"./_id.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"../../../../../../../vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__"],"names":["_createBlock","_component_ResourceDetail","name","components","ResourceDetail","__exports__","render"],"sourceRoot":""}
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
(("undefined"!==typeof self?self:this)["webpackChunkharvester_1_10_0_dev"]=("undefined"!==typeof self?self:this)["webpackChunkharvester_1_10_0_dev"]||[]).push([[341],{9590:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return w}});var s=r(9274);const a={class:"consumption-gauge"},o={class:"numbers"},n={class:"mr-5"},i={class:"precent-data"},l={class:"mt-10"},u={key:0,class:"consumption-gauge mt-10"},c={class:"numbers"},d={class:"precent-data"},m={class:"mt-10"};function p(e,t,r,p,h,g){const v=(0,s.resolveComponent)("PercentageBar");return(0,s.openBlock)(),(0,s.createElementBlock)("div",null,[(0,s.createElementVNode)("div",a,[(0,s.createElementVNode)("div",o,[(0,s.createElementVNode)("span",n,(0,s.toDisplayString)(e.t("harvester.formatters.hardwareResourceGauge.reserved")),1),(0,s.createElementVNode)("span",i,(0,s.toDisplayString)(e.t("node.detail.glance.consumptionGauge.amount",g.reservedAmountTemplateValues)),1)]),(0,s.createElementVNode)("div",l,[(0,s.createVNode)(v,{"model-value":g.reservedPercentage,"show-percentage":""},null,8,["model-value"])])]),r.showUsed?((0,s.openBlock)(),(0,s.createElementBlock)("div",u,[(0,s.createElementVNode)("div",c,[(0,s.createElementVNode)("span",null,(0,s.toDisplayString)(e.t("harvester.formatters.hardwareResourceGauge.used")),1),(0,s.createElementVNode)("span",d,(0,s.toDisplayString)(e.t("node.detail.glance.consumptionGauge.amount",g.usedAmountTemplateValues)),1)]),(0,s.createElementVNode)("div",m,[(0,s.createVNode)(v,{"model-value":g.usedPercentage,"show-percentage":""},null,8,["model-value"])])])):(0,s.createCommentVNode)("",!0)])}var h=r(12243),g=r(35664),v=r(95799),f={name:"HarvesterCpuUsed",components:{PercentageBar:h.A},props:{value:{type:String,default:""},row:{type:Object,required:!0},resourceName:{type:String,default:""},showUsed:{type:Boolean,default:!1}},data(){return{}},computed:{metrics(){return this.$store.getters["harvester/byId"](g.$v.NODE,this.row.id)},cpuTotal(){let e=0;return this.metrics&&(e=this.metrics.cpuCapacity),e},cpuUnits(){return"C"},node(){const e=this.$store.getters["currentProduct"].inStore,t=this.$store.getters[`${e}/byId`](g.NW,this.row.id);return t},reserved(){return this.metrics?this.node.cpuReserved:0},used(){return this.metrics?(0,v.ao)(this.metrics?.usage?.cpu||"0m"):0},reservedPercentage(){return this.cpuTotal?100*this.reserved/this.cpuTotal:0},usedPercentage(){return this.cpuTotal?100*this.used/this.cpuTotal:0},reservedAmountTemplateValues(){return{used:this.numberFormatter(this.reserved||0),total:this.numberFormatter(this.cpuTotal||0),unit:` ${this.cpuUnits}`}},usedAmountTemplateValues(){return{used:this.numberFormatter(this.used||0),total:this.numberFormatter(this.cpuTotal||0),unit:` ${this.cpuUnits}`}}},methods:{numberFormatter(e){return Number.isInteger(e)?e:e.toFixed(2)}}},y=(r(68739),r(47433));const S=(0,y.A)(f,[["render",p],["__scopeId","data-v-b35e8ae2"]]);var w=S},97602:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return v}});var s=r(9274);const a={key:0,class:"ip-list"};function o(e,t,r,o,n,i){const l=(0,s.resolveComponent)("CopyToClipboardText"),u=(0,s.resolveDirective)("clean-tooltip");return i.showIP?((0,s.openBlock)(),(0,s.createElementBlock)("div",a,[((0,s.openBlock)(!0),(0,s.createElementBlock)(s.Fragment,null,(0,s.renderList)(i.ips,({ip:t,name:r,isCustom:a})=>((0,s.openBlock)(),(0,s.createElementBlock)("div",{key:`${t}-${r}`,class:"ip-item"},[(0,s.withDirectives)((0,s.createVNode)(l,{text:t,plain:a},null,8,["text","plain"]),[[u,a?e.t("harvester.formatters.harvesterIpAddress.customIpTooltip"):r]])]))),128))])):(0,s.createCommentVNode)("",!0)}var n=r(76978),i=r(92043),l=r(2602),u=r(93312),c=r(32766),d=r(48249),m=r(50784),p={components:{CopyToClipboardText:u.A},props:{value:{type:String,default:""},row:{type:Object,required:!0},col:{type:Object,default:()=>{}}},data(){return{inStore:"harvester"}},created(){const e=this.$store.getters["currentProduct"].inStore;this.inStore=e},computed:{ips(){return this.staticAnnotationIP.length?this.staticAnnotationIP:this.vmiIp.length?[...this.vmiIp,...this.networkAnnotationIP].filter(Boolean).sort((e,t)=>e.ip<t.ip?-1:1):this.customAnnotationIP},staticAnnotationIP(){const e=this.row?.metadata?.annotations||{},t=`${l.r.STATIC_IP}/`;return Object.entries(e).filter(([e,r])=>e.startsWith(t)&&!!r).map(([e,r])=>{const s=e.slice(t.length),a=String(r).replace(/\/[\d\D]*/,"");return{ip:a,name:s}}).filter(({ip:e})=>(0,i.eH)(e))},customAnnotationIP(){const e=(0,n.Jt)(this.row,`metadata.annotations."${l.r.CUSTOM_IP}"`);return e&&(0,i.eH)(e)?[{name:"custom-ip",ip:e,isCustom:!0}]:[]},networkAnnotationIP(){if("Running"!==this.row.actualState)return[];const e=(0,n.Jt)(this.row,`metadata.annotations."${l.r.NETWORK_IPS}"`)||"[]";try{const t=JSON.parse(e);return t.map(e=>({ip:e.replace(/\/[\d\D]*/,""),name:""}))}catch(t){return[]}},vmiIp(){const e=this.$store.getters[`${this.inStore}/byId`](c.rk.VMI,this.value),t=this.row.networksName||[],r=e?.spec?.networks||[];return(eLine truncated
|
||||||
|
//# sourceMappingURL=harvester-1.10.0-dev.umd.min.341.js.map
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
{"version":3,"file":"harvester-1.10.0-dev.umd.min.341.js","mappings":"6QAgHSA,MAAM,qB,GACJA,MAAM,W,GACHA,MAAM,Q,GAGNA,MAAM,gB,GAITA,MAAM,S,SASXA,MAAM,2B,GAEDA,MAAM,W,GAIHA,MAAM,gB,GAITA,MAAM,S,iGA7BfC,EAAAA,EAAAA,oBAoCM,aAnCJC,EAAAA,EAAAA,oBAeM,MAfNC,EAeM,EAdJD,EAAAA,EAAAA,oBAOM,MAPNE,EAOM,EANJF,EAAAA,EAAAA,oBAEO,OAFPG,GAEOC,EAAAA,EAAAA,iBADFC,EAAAC,EAAE,wDAAD,IAENN,EAAAA,EAAAA,oBAEO,OAFPO,GAEOH,EAAAA,EAAAA,iBADFC,EAAAC,EAAE,6CAA8CE,EAAAC,+BAA4B,MAGnFT,EAAAA,EAAAA,oBAKM,MALNU,EAKM,EAJJC,EAAAA,EAAAA,aAGEC,EAAA,CAFC,cAAaJ,EAAAK,mBACd,sB,4BAKEC,EAAAC,W,kBADRhB,EAAAA,EAAAA,oBAkBM,MAlBNiB,EAkBM,EAdJhB,EAAAA,EAAAA,oBAOM,MAPNiB,EAOM,EANJjB,EAAAA,EAAAA,oBAEO,aAAAI,EAAAA,EAAAA,iBADFC,EAAAC,EAAE,oDAAD,IAENN,EAAA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B,EAAAA,EAAAA,oBAkBM,MAlBNiB,EAkBM,EAdJhB,EAAAA,EAAAA,oBAOM,MAPNiB,EAOM,EANJjB,EAAAA,EAAAA,oBALine truncated
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
(("undefined"!==typeof self?self:this)["webpackChunkharvester_1_10_0_dev"]=("undefined"!==typeof self?self:this)["webpackChunkharvester_1_10_0_dev"]||[]).push([[374],{24959:function(e,t,a){"use strict";a.d(t,{H:function(){return d},X:function(){return i}});var l=a(9274),o=a(53197),s=a(71274);const r=()=>{};function n(e,t,a){return l=>{const o=t.find(e=>e.path===l);if(!o)return[];const n=o.translationKey?e(o.translationKey):"Value",i={...(0,s.A)(e,{key:n}),...a};return o.rules.map(e=>{const t=i[e];return t||r})}}function i(e,t,a={}){const{errors:s,validate:r}=(0,o.mN)(),i=(0,l.ref)(!1);(0,l.provide)("vee-show-all-errors",i);const d=n(e,t,a),c=(0,l.computed)(()=>0===Object.keys(s.value).length),u=async(...e)=>{const t=await r(...e);return i.value=!0,t};return{getRules:d,isFormValid:c,validateForm:u,veeErrors:s,showAllErrors:i}}function d(e,t,a={}){return{getRules:n(e,t,a)}}},53338:function(e,t,a){"use strict";a.r(t);var l=a(81073),o=a(42629);describe("component: Loki",()=>{it("should display URL placeholder",()=>{const e=(0,l.Ky)(o["default"],{props:{mode:"edit",namespace:"whatever"}}),t="https://127.0.0.1:8000",a=e.find('[data-testid="loki-url"]').attributes("placeholder");expect(a).toBe(t)})})},72688:function(e,t,a){"use strict";var l=a(81073),o=a(99726),s=a(4364);const r=e=>e.$options&&"function"===typeof e.$options.fetch&&!e.$options.fetch.length,n=(e,t,a)=>{e.$options[t]?Array.isArray(e.$options[t])||"function"!==typeof e.$options[t]||(e.$options[t]=[e.$options[t]]):e.$options[t]=[],Array.isArray(e.$options[t])&&!e.$options[t].includes(a)&&e.$options[t].push(a)};var i={beforeCreate(){r(this)&&(this._fetchDelay="number"===typeof this.$options.fetchDelay?this.$options.fetchDelay:200,this.$fetch=c.bind(this),n(this,"beforeMount",d))},data(){return{state:{pending:!1,error:null,timestamp:Date.now()}}},computed:{$fetchState(){return this.state}}};function d(){if(!this._hydrated)return this.$fetch()}function c(e=!0){return e?(this._fetchPromise||(this._fetchPromise=u.call(this).then(()=>{delete this._fetchPromise})),this._fetchPromise):u.call(this)}async function u(){this.state.pending=!0,this.state.error=null,this._hydrated=!1;let e=null;const t=Date.now();try{await this.$options.fetch.call(this)}catch(l){s.error("Error in fetch():",l),e=(0,o.cQ)(l)}const a=this._fetchDelay-(Date.now()-t);a>0&&await new Promise(e=>setTimeout(e,a)),this.state.error=e,this.state.pending=!1,this.state.timestamp=Date.now()}var p=a(884);const m=["us-east-1","eu-west-1"],v=e=>(0,l.Ky)(p["default"],{props:{mode:"edit",namespace:"whatever",value:e},global:{mixins:[i],mocks:{$store:{dispatch:e=>{if("aws/defaultRegions"!==e)throw new Error(`unexpected dispatch: ${e}`);return Promise.resolve([...m])}}}}});describe("component: S3",()=>{it("should display a region select showing the configured s3_region",()=>{const e={s3_region:"us-east-1"},t=v(e),a=t.find('[data-testid="s3-region"]');expect(a.exists()).toBe(!0),expect(a.attributes("value")).toBe(e.s3_region)}),it("should write the region select back to s3_region",async()=>{const e={},t=v(e),a=t.findComponent('[data-testid="s3-region"]');await a.vm.$emit("update:value","eu-west-1"),expect(e).toStrictEqual({s3_region:"eu-west-1"})}),it("should populate the region select with the known AWS regions",async()=>{const e=v({});await e.vm.$nextTick();const t=e.findComponent('[data-testid="s3-region"]');expect(t.props("options")).toStrictEqual(m)}),it("should keep an existing region that is not a known AWS region as an option",async()=>{const e=v({s3_region:"minio-local"});await e.vm.$nextTick();const t=e.findComponent('[data-testid="s3-region"]');expect(t.props("options")).toStrictEqual(["minio-local",...m])})})},93498:function(e,t,a){"use strict";a.r(t);var l=a(81073),o=a(65359),s=a(14220),r=a(64814);const n={query:{}},i=()=>{const e=(0,o.y$)({getters:{"i18n/t":()=>jest.fn()}});return{global:{plugins:[e],mocks:{$route:n,$fetchState:{}}}}},d={known_hosts:"S05PV05fSE9TVFM=","ssh-privatekey":"dGVzdDE=","ssh-publickey":"dGVzdDE="};describe.each([s.YQ,s.G5,s.nW])("component: Ssh.vue",e=>{it(`mode: ${e}, should show input fields`,()=>{const t=(0,l.Or)(r["default"],{...i(),props:{value:{name:"foo",decodedData:d,supportsSshKnownHosts:!0},mode:e}}),a=t.find('[data-testid="ssh-public-key"]').element,o=t.find('[data-testid="ssh-private-key"]').element,s=t.find('[data-testid="ssh-known-hosts"]').element;expect(a.value).toBe("dGVzdDE="),expect(o.value).toBe("dGVzdDE="),expect(s.value).toBe("S05PV05fSE9TVFM=")}),it.each([["show",!0],["hide",!1]])(`mode: ${e}, should %p known_hosts`,(e,t)=>{const a=(0,l.Or)(r["default"],{...i(),props:{value:{name:"foo",decodedData:d,supportsSshKnownHosts:t},mode:s.G5}}),o=a.find('[data-testid="ssh-known-hosts"]');expect(o.exists()).toBe(t)})})},85992:function(e,t,a){"use strict";a.d(t,{A:function(){return S}});var l=a(9274);const o={class:"row"},s={key:0,class:"col span-12"},r={class:"helper-text mb-10"},n={class:"row mb-20"},i={class:"col span-6"},d={class:"col span-6"},c={clLine truncated
|
||||||
|
//# sourceMappingURL=harvester-1.10.0-dev.umd.min.374.js.map
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
{"version":3,"file":"harvester-1.10.0-dev.umd.min.374.js","mappings":"qSAYA,MAAMA,EAA2BA,OAEjC,SAASC,EACPC,EACAC,EACAC,GAEA,OAAQC,IACN,MAAMC,EAAMH,EAASI,KAAMC,GAAMA,EAAEH,OAASA,GAE5C,IAAKC,EAAK,MAAO,GAEjB,MAAMG,EAAMH,EAAII,eAAiBR,EAAEI,EAAII,gBAAkB,QACnDC,EAAW,KACZC,EAAAA,EAAAA,GAAmBV,EAAG,CAAEO,WACxBL,GAGL,OAAOE,EAAIO,MAAMC,IAAKC,IACpB,MAAMC,EAAOL,EAASI,GAEtB,OAAIC,GAQGhB,IAGb,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,MADAC,EAAE,2C,kCAMVV,EAAAA,EAAAA,oBA2BM,MA3BNW,EA2BM,EA1BJX,EAAAA,EAAAA,oBAYO,OAZPY,EAYO,EAXLC,EAAAA,EAAAA,aAUEC,EAAA,CATQzH,MAAOiH,EAAAS,Y,iCAAAT,EAAAS,YAAWC,GAQXpG,EAAAqG,cAPd3G,YAAa4G,EAAAxJ,EAAE,yCACfyJ,MAAOD,EAAAxJ,EAAE,sCACTyC,KAAM+F,EAAA/F,KACN,kBAAiB,EACjB,mBAAiB,EACjB,YAAW+G,EAAAxJ,EAAE,eACd,cAAY,mB,+EAIhBsI,EAAAA,EAAAA,oBAYO,OAZPoB,EAYO,EAXLP,EAAAA,EAAAA,aAUEC,EAAA,CATQzH,MAAOiH,EAAAe,e,iCAAAf,ELine truncated
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
(("undefined"!==typeof self?self:this)["webpackChunkharvester_1_10_0_dev"]=("undefined"!==typeof self?self:this)["webpackChunkharvester_1_10_0_dev"]||[]).push([[411],{55828:function(e,a,o){"use strict";o.d(a,{s:function(){return n}});var r=o(9274),t=o(4364);const n=(e,{immediate:a=!0}={})=>{const o=(0,r.ref)(a),n=(0,r.ref)(!1),p=(0,r.ref)(),d=(0,r.ref)(),c=async()=>{try{o.value=!0,p.value=(0,r.toValue)(await e())}catch(a){d.value=a,t.error("Error fetching data",a)}finally{o.value=!1}},l=async()=>{o.value||(n.value=!0,await c(),n.value=!1)};return a&&c(),(0,r.computed)(()=>({loading:o.value,data:p.value,error:d.value,load:c,refresh:l,refreshing:n.value}))}},57284:function(e,a,o){"use strict";o.d(a,{A:function(){return s}});var r=o(9274),t=o(28438),n=o(82149),p=o(71126);const d={class:"focus-button-anchor"};var c=(0,r.defineComponent)({__name:"PopoverCard",props:{cardTitle:{},fallbackFocus:{default:"body"},showPopoverAriaLabel:{default:"Show more"}},setup(e){const a=e,o=(0,r.ref)(null),c=(0,r.ref)(null),l=(0,r.ref)(null),i=(0,r.ref)(!1),s=(0,r.ref)(!1);return(0,r.watch)(()=>o.value,e=>{if(e&&s.value){const e={...n.mG,fallbackFocus:a.fallbackFocus,setReturnFocus:()=>{var e;return(null===(e=c.value)||void 0===e?void 0:e.$el)||!1}};(0,n.ve)(()=>i.value,"#popover-card",e)}}),(e,n)=>{const u=(0,r.resolveComponent)("v-dropdown");return(0,r.openBlock)(),(0,r.createElementBlock)("div",{class:(0,r.normalizeClass)(["popover-card-base",{open:i.value}]),onMouseleave:n[2]||(n[2]=e=>{i.value=!1,s.value=!1}),onKeydown:n[3]||(n[3]=(0,r.withKeys)(e=>{i.value=!1,s.value=!1},["escape"]))},[(0,r.createVNode)(u,{triggers:[],container:l.value,shown:i.value,placement:"bottom-start"},{popper:(0,r.withCtx)(()=>[(0,r.renderSlot)(e.$slots,"card",{},()=>[(0,r.createVNode)(t.A,{id:"popover-card",ref_key:"card",ref:o,class:"popover-card",title:a.cardTitle},{"heading-action":(0,r.withCtx)(()=>[(0,r.renderSlot)(e.$slots,"heading-action",{close:()=>{i.value=!1,s.value=!1}})]),default:(0,r.withCtx)(()=>[(0,r.renderSlot)(e.$slots,"card-body")]),_:3},8,["title"])])]),default:(0,r.withCtx)(()=>[(0,r.createElementVNode)("div",{class:"popover-card-target",onMouseenter:n[1]||(n[1]=e=>i.value=!0)},[(0,r.renderSlot)(e.$slots,"default"),(0,r.createElementVNode)("span",d,[(0,r.createVNode)(p.A,{ref_key:"focusButton",ref:c,variant:"ghost",class:"focus-button","aria-label":a.showPopoverAriaLabel,"aria-haspopup":"true","aria-expanded":i.value,onClick:n[0]||(n[0]=e=>{i.value=!0,s.value=!0})},{default:(0,r.withCtx)(()=>[...n[4]||(n[4]=[(0,r.createElementVNode)("i",{class:"icon icon-chevron-down icon-sm"},null,-1)])]),_:1},8,["aria-label","aria-expanded"])]),(0,r.createElementVNode)("div",{ref_key:"popoverContainer",ref:l,class:"popover-card-container"},null,512)],32)]),_:3},8,["container","shown"])],34)}}}),l=(o(26451),o(47433));const i=(0,l.A)(c,[["__scopeId","data-v-580d8cb3"]]);var s=i},80411:function(e,a,o){"use strict";o.r(a),o.d(a,{default:function(){return L}});var r=o(9274),t=o(55828),n=o(65359),p=o(12243),d=o(95457),c=o(92043);const l=["title"],i=["for"],s=["id"],u=["id"],v={key:0,class:"usage","data-testid":"resource-popover-usage"},b=["data-testid","aria-busy"],f={class:"text-deemphasized"},h=["data-testid"],g={class:"sr-only"},m={key:1,class:"usage-value"};var w=(0,r.defineComponent)({__name:"ResourcePopoverCard",props:{resource:{},usageLoading:{type:Boolean,default:!1}},setup(e){const a=e,o=(0,n.Pj)(),t=(0,d.s)(o),w=e=>"number"===typeof e.percentage&&Number.isFinite(e.percentage),k=e=>w(e)?Math.min(Math.max(e.percentage,0),100):0,y=e=>w(e)?(0,c.l9)(e.percentage):t.t("generic.na"),_=e=>a.usageLoading&&!w(e),x=e=>`value-${e.label}:${e.content}`.toLowerCase().replaceAll(" ","");return(o,n)=>{var d;return(0,r.openBlock)(),(0,r.createElementBlock)("div",{class:"resource-popover-card",title:e.resource.nameDisplay},[(0,r.createElementVNode)("div",null,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(a.resource.glance,(e,a)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:e.label,class:"row"},[(0,r.createElementVNode)("label",{class:"label text-deemphasized",for:x(e)},(0,r.toDisplayString)(e.label),9,i),(0,r.createElementVNode)("div",{id:x(e),class:"value"},[e.formatter?((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(e.formatter),(0,r.mergeProps)({key:0,ref_for:!0},e.formatterOpts,{id:0===a?"first-glance-item":void 0,value:e.content}),null,16,["id","value"])):((0,r.openBlock)(),(0,r.createElementBlock)("span",{key:1,id:0===a?"first-glance-item":void 0},(0,r.toDisplayString)(e.content),9,u))],8,s)]))),128))]),(null===(d=a.resource.glanceUsage)||void 0===d?void 0:d.length)?((0,r.openBlock)(),(0,r.createElementBlock)("div",v,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(a.resource.glanceUsage,e=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:e.name,class:"usage-item","data-testid":`resource-popover-usage-${e.name}`,"aria-busy":_(e)},[(0,r.createElementVNodeLine truncated
|
||||||
|
//# sourceMappingURL=harvester-1.10.0-dev.umd.min.411.js.map
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
{"version":3,"file":"harvester-1.10.0-dev.umd.min.411.js","mappings":"kQASO,MAAMA,EAAWA,CAAIC,GAA2BC,aAAY,GAA0B,CAAC,KAC5F,MAAMC,GAAUC,EAAAA,EAAAA,KAAaF,GACvBG,GAAaD,EAAAA,EAAAA,MAAa,GAC1BE,GAAOF,EAAAA,EAAAA,OACPG,GAAQH,EAAAA,EAAAA,OAERI,EAAOC,UACX,IACEN,EAAQO,OAAQ,EAEhBJ,EAAKI,OAAQC,EAAAA,EAAAA,eAAcV,IAC7B,CAAE,MAAOW,GACPL,EAAMG,MAAQE,EACdC,EAAQN,MAAM,sBAAuBK,EACvC,CAAE,QACAT,EAAQO,OAAQ,CAClB,GAGII,EAAUL,UACVN,EAAQO,QAIZL,EAAWK,OAAQ,QACbF,IACNH,EAAWK,OAAQ,IASrB,OAJIR,GACFM,KAGKO,EAAAA,EAAAA,UAAS,KAAM,CACpBZ,QAAYA,EAAQO,MACpBJ,KAAYA,EAAKI,MACjBH,MAAYA,EAAMG,MAClBF,OACAM,UACAT,WAAYA,EAAWK,S,oHC/C3B,MAAMM,EAAa,CAAEC,MAAO,uBAiB5B,OAA4BC,EAAAA,EAAAA,iBAAiB,CAC3CC,OAAQ,cACRC,MAAO,CACLC,UAAW,CAAC,EACZC,cAAe,CAAEC,QAAS,QAC1BC,qBAAsB,CAAED,QAAS,cAEnCE,KAAAA,CAAMC,GCVR,MAAMN,EAAQM,EACRC,GAAOvB,EAAAA,EAAAA,KAAS,MAChBwB,GAAcxB,EAAAA,EAAAA,KAAS,MACvByB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||||||
|
"use strict";(("undefined"!==typeof self?self:this)["webpackChunkharvester_1_10_0_dev"]=("undefined"!==typeof self?self:this)["webpackChunkharvester_1_10_0_dev"]||[]).push([[431],{73975:function(e,t,s){s.d(t,{v6:function(){return u},wM:function(){return f}});var a=s(5159),i=s(20246),r=s.n(i),n=s(46343),o=s.n(n),c=s(76978),l=s(35664),m=s(2602),d=s(32766),h=s(66490),p=s(48249);const u={package_update:!0,packages:["qemu-guest-agent"],runcmd:[["systemctl","enable","--now","qemu-guest-agent.service"]]},g={default:"qemu-guest-agent.service"},f=[{bus:"usb",name:"tablet",type:"tablet"}],y={EXISTING_ALL:"EXISTING_ALL",EXISTING_ONLY_ANNOTATION:"EXISTING_ANNOTATION",EXISTING_ONLY_CLOUD:"EXISTING_CLOUD"};t.Ay={methods:{hasCloudConfigComment(e){if("string"===typeof e&&/^\s*#cloud-config(\s|$)/.test(e))return!0;const t=e?a.Ay.parseDocument(e):a.Ay.parseDocument({}),s=t?.contents?.items||[];let i=!1;return("cloud-config"===t?.comment||t?.comment?.includes("cloud-config\n"))&&(i=!0),("cloud-config"===t?.commentBefore||t?.commentBefore?.includes("cloud-config\n"))&&(i=!0),("cloud-config"===t?.contents?.commentBefore||t?.contents?.commentBefore?.includes("cloud-config\n"))&&(i=!0),("cloud-config"===t?.contents?.comment||t?.contents?.comment?.includes("cloud-config\n"))&&(i=!0),s.map(e=>{const t=e.key;("cloud-config"===t?.commentBefore||t?.commentBefore?.includes("cloud-config\n"))&&(i=!0)}),i},getSSHValue(e){const t=this.$store.getters["currentProduct"].inStore,s=this.$store.getters[`${t}/all`](d.rk.SSH)||[];return s.find(t=>t.id===e)?.spec?.publicKey||void 0},getOsType(e){return e.metadata?.labels?.[m.r.OS]},getMatchQGA(e){const t=(0,c.o8)(u);let s=!1;return p.OS.forEach(t=>{t.match&&(s=t.match.find(t=>t===e))}),t.runcmd[0][3]=s?g[e]:g["default"],t},getSimilarRuncmd(e){const t=(0,c.o8)(u);return t.runcmd[0][3]="openSUSE"===e?g["default"]:g["suse"],t.runcmd[0]},hasInstallAgent(e,t,s){let a={};const i=this.getMatchQGA(t);try{a=r().load(e)||{}}catch(n){return new Error("Function(hasInstallAgent) error"),s}return a?.packages?.includes("qemu-guest-agent")&&!!a?.runcmd?.find(e=>Array.isArray(e)&&e.join("-")===i.runcmd[0].join("-"))},isInstallUSBTablet(e){const t=e?.template?.spec?.domain?.devices?.inputs;return!!Array.isArray(t)&&!!t.find(e=>o()(e,f[0]))},isEfiEnabled(e){return!!e?.template?.spec?.domain?.firmware?.bootloader?.efi},isTpmEnabled(e){return!!e?.template?.spec?.domain?.devices?.tpm},isTPMPersistentStateEnabled(e){return!!e?.template?.spec?.domain?.devices?.tpm?.persistent},isEFIPersistentStateEnabled(e){return!!e?.template?.spec?.domain?.firmware?.bootloader?.efi?.persistent},isSecureBoot(e){return!!e?.template?.spec?.domain?.firmware?.bootloader?.efi?.secureBoot},isCpuPinning(e){return!!e?.template?.spec?.domain?.cpu?.dedicatedCpuPlacement},getCloudInitNoCloud(e){const t=this.getSecret(e);let s=t?.decodedData?.userdata,a=t?.decodedData?.networkdata;const i=e?.template?.spec?.volumes?.find(e=>"cloudinitdisk"===e.name)?.cloudInitNoCloud||{};return i?.userData&&(s=i.userData,this.saveUserDataAsClearText=!0),i?.networkData&&(a=i.networkData,this.saveNetworkDataAsClearText=!0),{userData:s,networkData:a}},getSecret(e){const t=e?.template?.spec?.volumes?.find(e=>"cloudinitdisk"===e.name)?.cloudInitNoCloud||{},s=this.$store.getters["currentProduct"].inStore,a=this.$store.getters[`${s}/all`](l.bB)||[],i=t?.secretRef?.name||t?.networkDataSecretRef?.name,r=a.find(e=>e.metadata.name===i);return r},getAccessCredentials(e){const t=this.$store.getters["currentProduct"].inStore,s=this.$store.getters[`${t}/all`](l.bB)||[],a=e?.template?.spec?.accessCredentials||[],i=JSON.parse(e.template.metadata?.annotations?.[m.r.DYNAMIC_SSHKEYS_NAMES]||"[]");return a.map(e=>{const t=e.userPassword?"userPassword":"sshPublicKey",a=e[t]?.source?.secret?.secretName,r=s.find(e=>e.metadata.name===a),n={source:t,username:"",newPassword:"",users:[],sshkeys:[],secretName:a,secretRef:r};if(r)if("userPassword"===t){const e=Object.keys(r?.data)[0],t=r.decodedData[e];n.username=e,n.newPassword=t}else{const s=e[t].propagationMethod.qemuGuestAgent.users,r=i?.[a];n.users=s,n.sshkeys=r}else n.secretRef=void 0;return n})},getRootImageId(e){const t=(0,h.vN)(e);return t?.[0]?.metadata?.annotations?.[m.r.IMAGE_ID]||""},getSSHFromAnnotation(e){const t=e?.template?.metadata?.annotations?.[m.r.SSH_NAMES]||"[]";return JSON.parse(t)},convertToJson(e=""){let t={};try{t=r().load(e)}catch(s){new Error("Function(convertToJson) error")}return t},getSSHFromUserData(e){return this.convertToJson(e)?.ssh_authorized_keys||[]},getSysprepConfig(e){const t=e?.template?.spec?.volumes?.find(e=>"sysprep"===e.name&&e.sysprep?.secret);if(!t)return{secretName:"",xmlContent:""};const s=this.$store.getters["currentProduct"].inStore,a=this.value.metadata.namespace,i=t.sysprep.secret.name,r=this.$store.getters[`${s}/byId`](l.bB,`${a}/${i}`);return{secretName:`${a}/${i}`,xmlContent:r?.decodedData?.["autounattend.xml"]||""}},compareSSHValue(e="",t=""){const s=/(\r\n\t|\n|\r\t)|(\s*)/gm;return e.Line truncated
|
||||||
|
//# sourceMappingURL=harvester-1.10.0-dev.umd.min.431.js.map
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
{"version":3,"file":"harvester-1.10.0-dev.umd.min.431.js","mappings":"0XAUO,MAAMA,EAAW,CACtBC,gBAAgB,EAChBC,SAAgB,CAAC,oBACjBC,OAAgB,CACd,CACE,YACA,SACA,QACA,8BAKOC,EAAU,CAAEC,QAAS,4BAErBC,EAAa,CAAC,CACzBC,IAAM,MACNC,KAAM,SACNC,KAAM,WAGKC,EAAoB,CAC/BC,aAA0B,eAC1BC,yBAA0B,sBAC1BC,oBAA0B,kBAG5B,MACEC,QA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AKC,OAAOC,QAAQ,kBAAkBH,QAChD8G,EAAY7G,KAAK8G,MAAMjG,SAASgG,UAChCvC,EAAamC,EAAcE,QAAQnD,OAAOhF,KAC1CgF,EAASxD,KAAKC,OAAOC,QAAQ,GAAIH,UACrCsE,EAAAA,GACA,GAAIwC,KAAevC,KAGrB,MAAO,CACLA,WAAY,GAAIuC,KAAevC,IAC/BsC,WAAYpD,GAAQG,cAAc,qBAAuB,GAE7D,EAEAoD,eAAAA,CAAgBC,EAAI,GAAIC,EAAI,IAC1B,MAAMC,EAAI,2BAEV,OAAOF,EAAEG,QAAQD,EAAG,MAAQD,EAAEE,QAAQD,EAAG,GAC3C,EAEAE,YAAAA,CAAa5G,GACX,MAAMkF,EAAO1F,KAAKiG,qBAAqBzF,IAC/BxB,WAAY0E,GAAa1D,KAAKuD,oBAAoB/C,GAE1D,IAAKkF,GAAM2B,OAAS,IAAM3D,EACxB,MAAO,GAGT,IAAI0B,EAAM,GAEV,MAAMrF,EAAULine truncated
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
"use strict";(("undefined"!==typeof self?self:this)["webpackChunkharvester_1_10_0_dev"]=("undefined"!==typeof self?self:this)["webpackChunkharvester_1_10_0_dev"]||[]).push([[446],{36446:function(e,n,t){t.r(n),t.d(n,{default:function(){return i}});var s=t(9274);function r(e,n,t,r,o,u){const c=(0,s.resolveComponent)("ResourceList");return(0,s.openBlock)(),(0,s.createBlock)(c)}var o=t(83927),u={name:"ClusterResourcedList",components:{ResourceList:o.A}},c=t(47433);const f=(0,c.A)(u,[["render",r]]);var i=f}}]);
|
||||||
|
//# sourceMappingURL=harvester-1.10.0-dev.umd.min.446.js.map
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
{"version":3,"file":"harvester-1.10.0-dev.umd.min.446.js","mappings":"qWAUEA,EAAAA,EAAAA,aAAgBC,E,gBAPlB,GACEC,KAAY,uBACZC,WAAY,CAAEC,aAAYA,EAAAA,I,WCA5B,MAAMC,GAA2B,OAAgB,EAAQ,CAAC,CAAC,SAASC,KAEpE,O","sources":["webpack://harvester-1.10.0-dev/../../node_modules/@rancher/shell/pages/c/_cluster/_product/_resource/index.vue","webpack://harvester-1.10.0-dev/../../node_modules/@rancher/shell/pages/c/_cluster/_product/_resource/index.vue?1ef3"],"sourcesContent":["<script>\nimport ResourceList from '@shell/components/ResourceList';\n\nexport default {\n name: 'ClusterResourcedList',\n components: { ResourceList },\n};\n</script>\n\n<template>\n <ResourceList />\n</template>\n","import { render } from \"./index.vue?vue&type=template&id=00d07840\"\nimport script from \"./index.vue?vue&type=script&lang=js\"\nexport * from \"./index.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"../../../../../../../vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__"],"names":["_createBlock","_component_ResourceList","name","components","ResourceList","__exports__","render"],"sourceRoot":""}
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
(("undefined"!==typeof self?self:this)["webpackChunkharvester_1_10_0_dev"]=("undefined"!==typeof self?self:this)["webpackChunkharvester_1_10_0_dev"]||[]).push([[460],{55828:function(e,a,o){"use strict";o.d(a,{s:function(){return p}});var t=o(9274),r=o(4364);const p=(e,{immediate:a=!0}={})=>{const o=(0,t.ref)(a),p=(0,t.ref)(!1),c=(0,t.ref)(),n=(0,t.ref)(),l=async()=>{try{o.value=!0,c.value=(0,t.toValue)(await e())}catch(a){n.value=a,r.error("Error fetching data",a)}finally{o.value=!1}},d=async()=>{o.value||(p.value=!0,await l(),p.value=!1)};return a&&l(),(0,t.computed)(()=>({loading:o.value,data:c.value,error:n.value,load:l,refresh:d,refreshing:p.value}))}},57284:function(e,a,o){"use strict";o.d(a,{A:function(){return i}});var t=o(9274),r=o(28438),p=o(82149),c=o(71126);const n={class:"focus-button-anchor"};var l=(0,t.defineComponent)({__name:"PopoverCard",props:{cardTitle:{},fallbackFocus:{default:"body"},showPopoverAriaLabel:{default:"Show more"}},setup(e){const a=e,o=(0,t.ref)(null),l=(0,t.ref)(null),d=(0,t.ref)(null),s=(0,t.ref)(!1),i=(0,t.ref)(!1);return(0,t.watch)(()=>o.value,e=>{if(e&&i.value){const e={...p.mG,fallbackFocus:a.fallbackFocus,setReturnFocus:()=>{var e;return(null===(e=l.value)||void 0===e?void 0:e.$el)||!1}};(0,p.ve)(()=>s.value,"#popover-card",e)}}),(e,p)=>{const v=(0,t.resolveComponent)("v-dropdown");return(0,t.openBlock)(),(0,t.createElementBlock)("div",{class:(0,t.normalizeClass)(["popover-card-base",{open:s.value}]),onMouseleave:p[2]||(p[2]=e=>{s.value=!1,i.value=!1}),onKeydown:p[3]||(p[3]=(0,t.withKeys)(e=>{s.value=!1,i.value=!1},["escape"]))},[(0,t.createVNode)(v,{triggers:[],container:d.value,shown:s.value,placement:"bottom-start"},{popper:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,"card",{},()=>[(0,t.createVNode)(r.A,{id:"popover-card",ref_key:"card",ref:o,class:"popover-card",title:a.cardTitle},{"heading-action":(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,"heading-action",{close:()=>{s.value=!1,i.value=!1}})]),default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,"card-body")]),_:3},8,["title"])])]),default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("div",{class:"popover-card-target",onMouseenter:p[1]||(p[1]=e=>s.value=!0)},[(0,t.renderSlot)(e.$slots,"default"),(0,t.createElementVNode)("span",n,[(0,t.createVNode)(c.A,{ref_key:"focusButton",ref:l,variant:"ghost",class:"focus-button","aria-label":a.showPopoverAriaLabel,"aria-haspopup":"true","aria-expanded":s.value,onClick:p[0]||(p[0]=e=>{s.value=!0,i.value=!0})},{default:(0,t.withCtx)(()=>[...p[4]||(p[4]=[(0,t.createElementVNode)("i",{class:"icon icon-chevron-down icon-sm"},null,-1)])]),_:1},8,["aria-label","aria-expanded"])]),(0,t.createElementVNode)("div",{ref_key:"popoverContainer",ref:d,class:"popover-card-container"},null,512)],32)]),_:3},8,["container","shown"])],34)}}}),d=(o(26451),o(47433));const s=(0,d.A)(l,[["__scopeId","data-v-580d8cb3"]]);var i=s},31460:function(e,a,o){"use strict";o.r(a),o.d(a,{default:function(){return E}});var t=o(9274),r=o(57284),p=o(71126),c=o(95457),n=o(65359),l=o(55828);const d=(e,a)=>{const o=(0,t.ref)(null);(0,t.onMounted)(()=>{o.value=setInterval(e,a)}),(0,t.onBeforeUnmount)(()=>{o.value&&clearInterval(o.value)})},s={class:"autoscaler-card"},i={key:0,class:"loading"},v=["alt"],u={key:1,class:"details"},b={key:0,class:"label text-deemphasized"},f={key:1},h={key:2,class:"value"},m={key:1},_={key:2,class:"text-warning"};var g=(0,t.defineComponent)({__name:"AutoscalerCard",props:{value:{}},setup(e){const a=e,o=(0,n.Pj)(),r=(0,c.s)(o),p=(0,l.s)(async()=>await a.value.loadAutoscalerDetails());d(()=>p.value.refresh(),1e4);const g=(0,t.computed)(()=>p.value.data);return(e,a)=>((0,t.openBlock)(),(0,t.createElementBlock)("div",s,[(0,t.unref)(p).loading&&!(0,t.unref)(p).refreshing?((0,t.openBlock)(),(0,t.createElementBlock)("div",i,[(0,t.createElementVNode)("i",{class:"icon icon-lg icon-spinner icon-spin",alt:(0,t.unref)(r).t("autoscaler.card.loadingAlt")},null,8,v)])):(0,t.unref)(p).data?((0,t.openBlock)(),(0,t.createElementBlock)("div",u,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(g.value,e=>((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:e.label,class:"detail"},[e.value?((0,t.openBlock)(),(0,t.createElementBlock)("label",b,(0,t.toDisplayString)(e.label),1)):e.label?((0,t.openBlock)(),(0,t.createElementBlock)("h5",f,(0,t.toDisplayString)(e.label),1)):(0,t.createCommentVNode)("",!0),e.value?((0,t.openBlock)(),(0,t.createElementBlock)("div",h,["object"===typeof e.value?((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.value.component),(0,t.mergeProps)({key:0,ref_for:!0},e.value.props),null,16)):((0,t.openBlock)(),(0,t.createElementBlock)("span",m,(0,t.toDisplayString)(e.value),1))])):(0,t.createCommentVNode)("",!0)]))),128))])):((0,t.openBlock)(),(0,t.createElementBlock)("div",_,(0,t.toDisplayString)((0,t.unref)(r).t("autoscaler.card.loadingError")),1))]))}}),k=(o(67858),o(47433));const w=(0,k.A)(g,[["__scopeId","data-v-3d700c69"]]);var
Line truncated
|
||||||
|
//# sourceMappingURL=harvester-1.10.0-dev.umd.min.460.js.map
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
{"version":3,"file":"harvester-1.10.0-dev.umd.min.460.js","mappings":"kQASO,MAAMA,EAAWA,CAAIC,GAA2BC,aAAY,GAA0B,CAAC,KAC5F,MAAMC,GAAUC,EAAAA,EAAAA,KAAaF,GACvBG,GAAaD,EAAAA,EAAAA,MAAa,GAC1BE,GAAOF,EAAAA,EAAAA,OACPG,GAAQH,EAAAA,EAAAA,OAERI,EAAOC,UACX,IACEN,EAAQO,OAAQ,EAEhBJ,EAAKI,OAAQC,EAAAA,EAAAA,eAAcV,IAC7B,CAAE,MAAOW,GACPL,EAAMG,MAAQE,EACdC,EAAQN,MAAM,sBAAuBK,EACvC,CAAE,QACAT,EAAQO,OAAQ,CAClB,GAGII,EAAUL,UACVN,EAAQO,QAIZL,EAAWK,OAAQ,QACbF,IACNH,EAAWK,OAAQ,IASrB,OAJIR,GACFM,KAGKO,EAAAA,EAAAA,UAAS,KAAM,CACpBZ,QAAYA,EAAQO,MACpBJ,KAAYA,EAAKI,MACjBH,MAAYA,EAAMG,MAClBF,OACAM,UACAT,WAAYA,EAAWK,S,oHC/C3B,MAAMM,EAAa,CAAEC,MAAO,uBAiB5B,OAA4BC,EAAAA,EAAAA,iBAAiB,CAC3CC,OAAQ,cACRC,MAAO,CACLC,UAAW,CAAC,EACZC,cAAe,CAAEC,QAAS,QAC1BC,qBAAsB,CAAED,QAAS,cA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B,GAA2B,OAAgB,EAAQ,CAAC,CAAC,YAAY,qBAEvE,QCLA,MAAMxD,EAAa,CACjBkE,IAALine truncated
|
||||||
Loaded 100 of 1865 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user