Skip to content

Commit 40f21a6

Browse files
trickMinxianyanglin
authored andcommitted
Init portal
0 parents  commit 40f21a6

File tree

619 files changed

+61041
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

619 files changed

+61041
-0
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Describe the bug**
11+
A clear and concise description of what the bug is.
12+
13+
**To Reproduce**
14+
Steps to reproduce the behavior:
15+
1. kube apply '...'
16+
2. curl '....'
17+
3. See error
18+
19+
**Expected behavior**
20+
A clear and concise description of what you expected to happen.
21+
22+
**Additional context**
23+
Add any other context about the problem here, e.g.
24+
- Kubernetes version
25+
- OS
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
16+
**Describe alternatives you've considered**
17+
A clear and concise description of any alternative solutions or features you've considered.
18+
19+
**Additional context**
20+
Add any other context or screenshots about the feature request here.

.github/workflows/codeql-analysis.yml

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
# For most projects, this workflow file will not need changing; you simply need
2+
# to commit it to your repository.
3+
#
4+
# You may wish to alter this file to override the set of languages analyzed,
5+
# or to provide custom queries or build logic.
6+
#
7+
# ******** NOTE ********
8+
# We have attempted to detect the languages in your repository. Please check
9+
# the `language` matrix defined below to confirm you have the correct set of
10+
# supported CodeQL languages.
11+
#
12+
name: "CodeQL"
13+
14+
on:
15+
push:
16+
branches: [ main , master , release-*]
17+
pull_request:
18+
# The branches below must be a subset of the branches above
19+
branches: [ main , master , release-*]
20+
schedule:
21+
- cron: '37 23 * * 1'
22+
23+
jobs:
24+
analyze:
25+
name: Analyze
26+
runs-on: ubuntu-latest
27+
permissions:
28+
actions: read
29+
contents: read
30+
security-events: write
31+
32+
strategy:
33+
fail-fast: false
34+
matrix:
35+
language: [ 'java' ]
36+
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
37+
# Learn more:
38+
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed
39+
40+
steps:
41+
- name: Checkout repository
42+
uses: actions/checkout@v2
43+
44+
# Initializes the CodeQL tools for scanning.
45+
- name: Initialize CodeQL
46+
uses: github/codeql-action/init@v2
47+
with:
48+
languages: ${{ matrix.language }}
49+
# If you wish to specify custom queries, you can do so here or in a config file.
50+
# By default, queries listed here will override any specified in a config file.
51+
# Prefix the list here with "+" to use these queries and those in the config file.
52+
# queries: ./path/to/local/query, your-org/your-repo/queries@main
53+
54+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
55+
# If this step fails, then you should remove it and run the build manually (see below)
56+
57+
# ℹ️ Command-line programs to run using the OS shell.
58+
# 📚 https://git.io/JvXDl
59+
60+
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
61+
# and modify them (or add more) to build your code if your project
62+
# uses a compiled language
63+
64+
- run: |
65+
mvn clean package -f "pom.xml" -B -V -e -DskipTests
66+
67+
- name: Perform CodeQL Analysis
68+
uses: github/codeql-action/analyze@v2

.github/workflows/docker-build.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# This workflow will build a Java project with Maven
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
3+
name: Docker Build
4+
on:
5+
push:
6+
branches:
7+
- "main"
8+
- "master"
9+
- "release-*"
10+
tags:
11+
- "v*"
12+
13+
jobs:
14+
buildx:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v3
19+
- name: Set up JDK 8
20+
uses: actions/setup-java@v2
21+
with:
22+
java-version: '8'
23+
distribution: 'adopt'
24+
- name: Build with Maven
25+
run: mvn -B package --file pom.xml -Dmaven.test.skip
26+
- name: Docker meta
27+
id: meta
28+
uses: docker/metadata-action@v4
29+
with:
30+
images: ${{ secrets.DOCKER_HUB_USERNAME }}/hango-portal
31+
flavor: latest=true
32+
tags: |
33+
type=ref,event=branch
34+
type=ref,event=pr
35+
type=semver,pattern={{version}}
36+
- name: Login to Docker Hub
37+
uses: docker/login-action@v2
38+
with:
39+
username: ${{ secrets.DOCKER_HUB_USERNAME }}
40+
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
41+
- name: Set up Docker Buildx
42+
uses: docker/setup-buildx-action@v1
43+
- name: Build and Push
44+
uses: docker/build-push-action@v2
45+
with:
46+
context: .
47+
file: ./envoy-infra/Dockerfile
48+
# 所需要的体系结构,可以在 Available platforms 步骤中获取所有的可用架构
49+
platforms: linux/amd64,linux/arm64/v8
50+
push: ${{ github.ref_type == 'tag' }}
51+
tags: ${{ steps.meta.outputs.tags }}

.github/workflows/license-checker.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: License checker
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- master
8+
- release-*
9+
tags:
10+
- v*
11+
pull_request:
12+
branches:
13+
- main
14+
- release-*
15+
16+
jobs:
17+
check-license-lines:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/checkout@master
21+
- name: Check License Lines
22+
uses: kt3k/[email protected]

.github/workflows/maven.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# This workflow will build a Java project with Maven
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
3+
name: Java CI with Maven
4+
on:
5+
push:
6+
branches: [ main , master , release-*]
7+
pull_request:
8+
branches: [ main , master , release-*]
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v2
15+
- name: Set up JDK 8
16+
uses: actions/setup-java@v2
17+
with:
18+
java-version: '8'
19+
distribution: 'adopt'
20+
- name: Build with Maven
21+
run: mvn -B package --file pom.xml
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# This workflow integrates Scan with GitHub's code scanning feature
2+
# Scan is a free open-source security tool for modern DevOps teams
3+
# Visit https://slscan.io/en/latest/integrations/github-actions/ for help
4+
name: Scan
5+
6+
# This section configures the trigger for the workflow. Feel free to customize depending on your convention
7+
on:
8+
push:
9+
branches: [ main , master , release-* ]
10+
pull_request:
11+
branches: [ main , master , release-*]
12+
13+
jobs:
14+
Scan-Build:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v1
18+
- name: Cache multiple paths
19+
uses: actions/cache@v2
20+
with:
21+
path: |
22+
${{ github.workspace }}/db
23+
key: ${{ runner.os }}-${{ hashFiles('requirements*.txt') }}
24+
- name: Perform Scan
25+
uses: ShiftLeftSecurity/scan-action@master
26+
env:
27+
VDB_HOME: ${{ github.workspace }}/db
28+
WORKSPACE: ""
29+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
30+
with:
31+
output: reports
32+
- name: Upload report
33+
uses: github/codeql-action/upload-sarif@v1
34+
with:
35+
sarif_file: reports

.gitignore

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
.DS_Store
2+
.iml
3+
.gitignore
4+
.idea/
5+
.editorconfig
6+
disconf/
7+
/target/
8+
common-infra/target/**
9+
common-advanced/target/**
10+
envoy-infra/target/**
11+
envoy-advanced/target/**
12+
nce-gdashboard-backend/target/**
13+
nce-gdashboard-frontend/dist/node_modules/**
14+
nce-gdashboard-frontend/dist/src/assets/**
15+
nce-gdashboard-frontend/tools/bower_components/**
16+
nce-gdashboard-frontend/tools/node_modules/**
17+
nce-gdashboard-backend/src/main/resources/public/
18+
/nce-gateway-api/nce-gateway-api.iml
19+
/nce-gdashboard-backend/nce-gdashboard-backend.iml
20+
/nce-gdashboard-parent.iml
21+
.project
22+
.settings/
23+
nce-gateway-api/.classpath
24+
nce-gateway-api/.project
25+
nce-gateway-api/.settings/
26+
nce-gateway-api/bin/
27+
nce-gdashboard-backend/.classpath
28+
nce-gdashboard-backend/.project
29+
nce-gdashboard-backend/.settings/
30+
nce-gdashboard-backend/nce-gdashboard/
31+
nce-gdashboard/logs/**
32+
/gateway-portal/gateway-portal.iml
33+
/common-advanced/target/
34+
/common-infra/target/

.licenserc.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"**/*.go": [
3+
"Copyright 2021 KubeCube Authors",
4+
5+
"Licensed under the Apache License, Version 2.0 (the \"License\");",
6+
"you may not use this file except in compliance with the License.",
7+
"You may obtain a copy of the License at",
8+
9+
"http://www.apache.org/licenses/LICENSE-2.0",
10+
11+
"Unless required by applicable law or agreed to in writing, software",
12+
"distributed under the License is distributed on an \"AS IS\" BASIS,",
13+
"WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.",
14+
"See the License for the specific language governing permissions and",
15+
"limitations under the License."
16+
],
17+
"ignore": [
18+
"vendor/",
19+
"docs/"
20+
]
21+
}

0 commit comments

Comments
 (0)