Skip to content

Commit

Permalink
Merge pull request #35 from torchiaf/fix/shell-version
Browse files Browse the repository at this point in the history
Bump @rancher/shell v3.0.1-rc.1
  • Loading branch information
torchiaf authored Nov 14, 2024
2 parents 0e354ee + 0777513 commit eac4fbe
Show file tree
Hide file tree
Showing 4 changed files with 1,136 additions and 1,007 deletions.
62 changes: 60 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,60 @@
# harvester
harvester UI extension
# harvester-ui-extension

Rancher Extension used in [rancher/dashboard](https://github.com/rancher/dashboard) for [Harvester](https://harvesterhci.io) Dashboard UI.

## Running for Development

This is what you probably want to get started.

### Standalone Mode

For development, serve with hot reload at https://localhost:8005

```bash
# Install dependencies
yarn install

# Use RANCHER_ENV to specify the endpoint for your Harvester API
RANCHER_ENV=harvester API=https://your-harvester-ip yarn dev

# Use VUE_APP_SERVER_VERSION to specify the Harvester server version
# in case your are running a dev build of Harvester
RANCHER_ENV=harvester VUE_APP_SERVER_VERSION=your-harvester-server-version API=https://your-harvester-ip yarn dev

# or put your env variables into a .env file

# Example
RANCHER_ENV=harvester VUE_APP_SERVER_VERSION=v1.4.0 API=https://192.168.1.123 yarn dev
```

### Integration Mode

In this mode, you need to have Rancher and import Harvester, more detail in [Harvester Integration | Rancher](https://ranchermanager.docs.rancher.com/v2.6/integrations-in-rancher/harvester).

```bash
# build harvester plugin
yarn build-pkg harvester && yarn serve-pkgs

# Open another terminal window
HARVESTER_PKG_URL=http://127.0.0.1:4500/harvester-${version}/harvester-${version}.umd.min.js API=https://your-rancher-ip RANCHER_ENV=harvester yarn mem-dev
```

## Contributing

For developers, after reading through the introduction on this page, head over to our [Getting Started](https://extensions.rancher.io/extensions/next/extensions-getting-started) guide to learn more.

License
=======
Copyright (c) 2014-2023 [Rancher Labs, Inc.](http://rancher.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.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"node": ">=20.0.0"
},
"dependencies": {
"@rancher/shell": "^3.0.0-rc.1",
"@rancher/shell": "3.0.1-rc.1",
"cache-loader": "^4.1.0",
"color": "4.2.3",
"ip": "2.0.1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export default class HciStorageClass extends StorageClass {
key = `harvester.storage.storageClass.lvm.label`;
}

return key ? this.$rootGetters['i18n/t'](key) : null;
return key ? this.$rootGetters['i18n/t'](key) : this.provisioner;
}

get isLonghornV2() {
Expand Down
Loading

0 comments on commit eac4fbe

Please sign in to comment.