|
1 | | -# opentelekomcloud-node-driver-extension |
2 | | -RKE2 Driver Extension for Rancher |
| 1 | +# OpenTelekomCloud Node Driver Extension for Rancher |
| 2 | + |
| 3 | +This repository contains a **Rancher UI Extension** that integrates the **OpenTelekomCloud machine driver** into Rancher (RKE2). |
| 4 | +It provides a complete UI for configuring OTC machines, managing cloud credentials, and provisioning RKE2 clusters using OTC instances. |
| 5 | + |
| 6 | +This extension replaces the legacy node-driver UI and implements Rancher's new **UI Extensions Framework** (v3+). |
| 7 | + |
| 8 | +--- |
| 9 | + |
| 10 | +## Building and running locally |
| 11 | + |
| 12 | +You can build and run the extensions locally, to do so: |
| 13 | + |
| 14 | +- Run `yarn install` |
| 15 | +- Set the `API` environment variable to point to a Rancher backend |
| 16 | +- Run Rancher in development mode with `yarn dev` |
| 17 | +- Open a web browser to `https://127.0.0.1:8005` |
| 18 | + |
| 19 | +Once you log in, you should see Rancher load with the extensions automatically loaded. You can edit the code for the extensions |
| 20 | +and then should hot-reload within the browser. |
| 21 | + |
| 22 | +## Releasing an extension |
| 23 | + |
| 24 | +Currently, releasing works through GitHub pages (need to create more secure way of releasing https://extensions.rancher.io/extensions/next/publishing) [[issue](https://github.com/opentelekomcloud/opentelekomcloud-node-driver-extension/issues/1)] |
| 25 | +```bash |
| 26 | +yarn publish-pkgs -s "opentelekomcloud/opentelekomcloud-node-driver-extension" -b "gh-pages" |
| 27 | +``` |
| 28 | + |
| 29 | +Then Open `//rancher.instance/dashboard/c/_/uiplugins` -> `Manage Repositories` -> Create |
| 30 | + |
| 31 | +### Bugs & Issues |
| 32 | +Please submit bugs and issues to [opentelekomcloud/opentelekomcloud-node-driver-extension](https://github.com/opentelekomcloud/opentelekomcloud-node-driver-extension/issues). |
| 33 | + |
| 34 | +Or just [click here](https://github.com/opentelekomcloud/opentelekomcloud-node-driver-extension/issues/new) to create a new issue. |
| 35 | + |
| 36 | +License |
| 37 | +======= |
| 38 | +Licensed under the Apache License, Version 2.0 (the "License"); |
| 39 | +you may not use this file except in compliance with the License. |
| 40 | +You may obtain a copy of the License at |
| 41 | + |
| 42 | +[http://www.apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0) |
| 43 | + |
| 44 | +Unless required by applicable law or agreed to in writing, software |
| 45 | +distributed under the License is distributed on an "AS IS" BASIS, |
| 46 | +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 47 | +See the License for the specific language governing permissions and |
| 48 | +limitations under the License. |
0 commit comments