Skip to content

Commit e028491

Browse files
doc/ci: update README.md and basic ci (#7)
1 parent b196fcc commit e028491

File tree

14 files changed

+967
-430
lines changed

14 files changed

+967
-430
lines changed

.eslintignore

Lines changed: 0 additions & 16 deletions
This file was deleted.

.eslintrc.js

Lines changed: 0 additions & 243 deletions
This file was deleted.

.github/workflows/automerge.yaml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: automerge
2+
3+
on:
4+
pull_request:
5+
types:
6+
- labeled
7+
- unlabeled
8+
- synchronize
9+
- opened
10+
- ready_for_review
11+
- reopened
12+
- unlocked
13+
pull_request_review:
14+
types:
15+
- submitted
16+
check_suite:
17+
types:
18+
- completed
19+
status: {}
20+
21+
jobs:
22+
automerge:
23+
runs-on: ubuntu-latest
24+
if: >
25+
contains(github.event.pull_request.labels.*.name, 'gate')
26+
environment: github
27+
steps:
28+
- name: Create GitHub App Token
29+
id: app-token
30+
uses: actions/create-github-app-token@v1
31+
with:
32+
app-id: ${{ secrets.APP_ID }}
33+
private-key: ${{ secrets.APP_KEY }}
34+
35+
- id: automerge
36+
name: automerge
37+
uses: pascalgn/[email protected]
38+
env:
39+
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
40+
MERGE_LABELS: "gate"
41+
MERGE_METHOD: "squash"

.github/workflows/ci.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- gh-*
8+
pull_request: {}
9+
workflow_dispatch: {}
10+
11+
jobs:
12+
13+
lint:
14+
name: lint
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v4
18+
19+
- name: Use Node.js 20
20+
uses: actions/setup-node@v4
21+
with:
22+
node-version: 20
23+
24+
- name: Install dependencies
25+
run: |
26+
yarn install --frozen-lockfile
27+
28+
- name: Run ESLint
29+
run: |
30+
yarn lint
31+
32+
33+
check:
34+
name: check
35+
if: always()
36+
needs: [lint]
37+
runs-on: ubuntu-latest
38+
steps:
39+
- name: Decide whether the needed jobs succeeded or failed
40+
uses: re-actors/alls-green@05ac9388f0aebcb5727afa17fcccfecd6f8ec5fe # v1.2.2
41+
with:
42+
jobs: ${{ toJSON(needs) }}

README.md

Lines changed: 48 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,48 @@
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

Comments
 (0)