Skip to content

Commit 2b61fb0

Browse files
committed
Merge branch 'main' of github.com-deep:volcano-sh/dashboard into new-ui
Signed-off-by: Deep <de6p97@gmail.com>
1 parent f27ed64 commit 2b61fb0

File tree

14 files changed

+890
-19
lines changed

14 files changed

+890
-19
lines changed

.github/workflows/release.yaml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: Image Release
2+
on:
3+
workflow_dispatch:
4+
push:
5+
branches:
6+
- main
7+
tags:
8+
- "v*.*.*"
9+
10+
permissions:
11+
contents: read
12+
13+
jobs:
14+
docker-release:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout code
18+
uses: actions/checkout@v4
19+
20+
- name: Set up Docker Buildx
21+
uses: docker/setup-buildx-action@v3
22+
23+
- name: Determine image tag
24+
run: |
25+
if [ "${{ github.event_name }}" == "workflow_dispatch" ] || [ "${{ github.ref }}" == "refs/heads/main" ]; then
26+
echo "TAG=latest" >> $GITHUB_ENV
27+
else
28+
echo "TAG=${{ github.ref_name }}" >> $GITHUB_ENV
29+
fi
30+
31+
- name: Login to DockerHub
32+
uses: docker/login-action@v3
33+
with:
34+
username: ${{ secrets.DOCKERHUB_USERNAME }}
35+
password: ${{ secrets.DOCKERHUB_TOKEN }}
36+
37+
- name: Build and push frontend image
38+
uses: docker/build-push-action@v5
39+
with:
40+
context: .
41+
file: ./deployment/build/frontend/Dockerfile
42+
push: true
43+
tags: volcanosh/vc-dashboard-frontend:${{ env.TAG }}
44+
platforms: linux/amd64,linux/arm64
45+
46+
- name: Build and push backend image
47+
uses: docker/build-push-action@v5
48+
with:
49+
context: .
50+
file: ./deployment/build/backend/Dockerfile
51+
push: true
52+
tags: volcanosh/vc-dashboard-backend:${{ env.TAG }}
53+
platforms: linux/amd64,linux/arm64
54+
55+
- name: Logout from Docker Hub
56+
if: always()
57+
run: docker logout

CODE_OF_CONDUCT.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Volcano Community Code of Conduct
2+
3+
Volcano follows the [CNCF Code of Conduct](https://github.com/cncf/foundation/blob/main/code-of-conduct.md).
4+
5+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project maintainers at <cncf-volcano-maintainers@lists.cncf.io>.

CONTRIBUTING.md

Lines changed: 25 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,33 +6,35 @@ There are various ways in which you can contribute to this project such as `upda
66

77
When making any critical change to this repository, please first discuss the change you wish to make via issue, email, or any other method with the [owners](https://github.com/volcano-sh/dashboard/blob/main/OWNERS) of this repository before making a change.
88

9-
## Getting Started
10-
11-
Make sure [`node.js`](https://nodejs.org/en/download) is installed on your system and we prefer [`visual-studio-code`](https://code.visualstudio.com/download) as IDE.
9+
## Before You Get Started
1210

1311
### Prerequisites
1412

15-
Please follow the [guide](https://github.com/volcano-sh/volcano#quick-start-guide) to install volcano first.
13+
To contribute to the volcano dashboard project, you need:
1614

17-
### Install volcano dashboard
15+
- [`node.js`](https://nodejs.org/en/download) installed on your system
16+
- A running Kubernetes cluster with [Volcano](https://github.com/volcano-sh/volcano#quick-start-guide) installed
17+
- Volcano dashboard deployed (see [Installation Guide](README.md#installation) in the main README)
1818

19-
Login one node of your kubernetes cluster and execute the following command to install volcano dashboard.
19+
## Your First Contribution
2020

21-
```bash
22-
kubectl create ns volcano-system
21+
We are always in need of help, be it fixing documentation, reporting bugs, or writing code. Look at places where you feel best coding practices aren't followed, code refactoring is needed, or tests are missing.
2322

24-
kubectl apply -f https://raw.githubusercontent.com/volcano-sh/dashboard/main/deployment/volcano-dashboard.yaml
25-
```
23+
### Find Something to Work On
2624

27-
Then use the following command to map the traffic to node.
25+
Check out the [issues](https://github.com/volcano-sh/dashboard/issues) in this repository. Issues labeled [good first issue](https://github.com/volcano-sh/dashboard/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22) are great starting points for new contributors.
2826

29-
```bash
30-
kubectl port-forward svc/volcano-dashboard 8080:80 -n volcano-system --address 0.0.0.0
31-
```
27+
### Work on an Issue
3228

33-
Access the dashboard by navigate to `http://$YOUR_NODE_IP:8080` in your browser.
29+
When you are willing to take on an issue, you can assign it to yourself. Just reply with `/assign` or `/assign @yourself` on an issue, and the robot will assign the issue to you.
3430

35-
If running locally navigate to `http://localhost:8080`
31+
### File an Issue
32+
33+
While we encourage everyone to contribute code, it is also appreciated when someone reports an issue.
34+
35+
Please follow the prompted submission guidelines while opening an issue.
36+
37+
## Contributor Workflow
3638

3739
### Development
3840

@@ -139,3 +141,10 @@ git commit --amend -s
139141
```bash
140142
git push origin <your-branch>
141143
```
144+
145+
4. Create a pull request
146+
147+
Submit a pull request to the [volcano-sh/dashboard](https://github.com/volcano-sh/dashboard) repository. The PR should:
148+
- Have a clear and descriptive title
149+
- Include a detailed description of the changes
150+
- Reference any related issues

OWNERS

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@ approvers:
22
- william-wang
33
- kevin-wangzefeng
44
- Monokaix
5+
- JesseStutler
56
reviewers:
67
- william-wang
78
- kevin-wangzefeng
89
- wangyang0616
9-
- Monokaix
10+
- Monokaix
11+
- JesseStutler

README.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,39 @@ The volcano dashboard provides a basic dashboard that can be easily deployed in
1010

1111
You can follow the [design doc](docs/design.md) to learn more about the design details.
1212

13+
## Installation
14+
15+
### Prerequisites
16+
17+
Before installing the volcano dashboard, please ensure you have:
18+
- A running Kubernetes cluster
19+
- `kubectl` configured to access your cluster
20+
- Volcano installed on your cluster (follow the [Volcano Quick Start Guide](https://github.com/volcano-sh/volcano#quick-start-guide))
21+
22+
### Install Volcano Dashboard
23+
24+
1. Create the volcano-system namespace (if it doesn't exist):
25+
26+
```bash
27+
kubectl create ns volcano-system
28+
```
29+
30+
2. Deploy the volcano dashboard:
31+
32+
```bash
33+
kubectl apply -f https://raw.githubusercontent.com/volcano-sh/dashboard/main/deployment/volcano-dashboard.yaml
34+
```
35+
36+
3. Access the dashboard by port-forwarding the service:
37+
38+
```bash
39+
kubectl port-forward svc/volcano-dashboard 8080:80 -n volcano-system --address 0.0.0.0
40+
```
41+
42+
4. Open your browser and navigate to:
43+
- For local access: `http://localhost:8080`
44+
- For remote access: `http://<NODE_IP>:8080` (replace `<NODE_IP>` with your Kubernetes node's IP address)
45+
1346
## Contributing
1447

1548
You can follow our [CONTRIBUTING.md](CONTRIBUTING.md).

apps/web/constants/index.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,10 @@ export const navItems: NavItem[] = [
3333
href: `/pods`,
3434
disable: false
3535
},
36+
{
37+
title: "PodGroups",
38+
icon: "container",
39+
href: `/podgroups`,
40+
disable: false
41+
},
3642
]
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import PodGroupManagement from "@/components/(dashboard)/podgroups/podgroup-management";
2+
3+
4+
export default function PodGroupsPage() {
5+
return (
6+
<>
7+
<PodGroupManagement />
8+
</>
9+
)
10+
}
11+

0 commit comments

Comments
 (0)