Skip to content
Draft

Test #11

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
71 commits
Select commit Hold shift + click to select a range
b96cbd3
tasks init
Toha-K-M Jan 15, 2025
7cf4e3e
controller input
Toha-K-M Jan 16, 2025
ed14723
controller input
Toha-K-M Jan 20, 2025
6bfb84c
controller gin
Toha-K-M Jan 21, 2025
acceabb
task selector
Toha-K-M Jan 26, 2025
06b4845
namespace controller
Toha-K-M Jan 26, 2025
ada7a81
namespace controller remove fmt
Toha-K-M Jan 26, 2025
2112e90
certificate, cluster role, cluster role binding, config map, controll…
Toha-K-M Jan 27, 2025
18b94bf
crd, cronjob, custom resource controller
Toha-K-M Jan 27, 2025
d51c584
agent task selector upto HPA
Toha-K-M Jan 27, 2025
e4141d7
agent task selector upto Node
Toha-K-M Jan 27, 2025
c2ffd1c
agent task selector upto role binding
Toha-K-M Jan 28, 2025
98a8c5f
agent task selector all resources added
Toha-K-M Jan 28, 2025
9078add
daemonset, deployment, endpoints, endpointslice, endpoints, endpoints…
Toha-K-M Jan 28, 2025
a85667e
job, load balancer, manifest controller
Toha-K-M Jan 28, 2025
aa14e93
import fix
Toha-K-M Jan 28, 2025
d6c26af
Merge remote-tracking branch 'origin/k8s-controller' into refactor-auth
nahidhasan94 Jan 28, 2025
150a0a4
refactor: gin implementation in user routes
nahidhasan94 Jan 28, 2025
5c99cc7
network policy, node, pod, pod disruption budget, pod metrics, pv, pv…
Toha-K-M Jan 28, 2025
133d8f1
Merge branch 'refactor-auth' of https://github.com/krack8/lighthouse …
Toha-K-M Jan 28, 2025
612799d
replicaset, replication controller, resource quota, role, rolebinding…
Toha-K-M Jan 28, 2025
521f47d
all controller
Toha-K-M Jan 28, 2025
b6c886e
refactor: modify routes with middleware
nahidhasan94 Jan 29, 2025
a655c45
namespace list error return
Toha-K-M Jan 29, 2025
0e7745c
Merge branch 'refactor-auth' of https://github.com/krack8/lighthouse …
Toha-K-M Jan 29, 2025
5812060
changes routes and noauth
Toha-K-M Jan 29, 2025
41c5113
config changes
Toha-K-M Jan 29, 2025
a71bb3e
comment env
Toha-K-M Jan 29, 2025
a25724e
response dto omitempty
Toha-K-M Jan 30, 2025
f94c9b9
e2e test for home and health
Toha-K-M Jan 31, 2025
1151dfc
feat: user profile api
nahidhasan94 Feb 2, 2025
bfb573e
chore: use convenient env name
nahidhasan94 Feb 2, 2025
a2e9b0a
feat: Implement register cluster APIs
nahidhasan94 Feb 2, 2025
15a9162
chore: API modification. Add filter
nahidhasan94 Feb 2, 2025
eed8241
chore: Modify Init Function
nahidhasan94 Feb 2, 2025
f1ba83d
Merge branch 'test' of https://github.com/krack8/lighthouse into local
Toha-K-M Feb 2, 2025
96b5581
error and json redundant conversion
Toha-K-M Feb 2, 2025
bb26ef1
chore: update user json response
nahidhasan94 Feb 2, 2025
3370d17
Merge remote-tracking branch 'origin/local' into local
nahidhasan94 Feb 2, 2025
42a8e7d
chore: Add checking in API
nahidhasan94 Feb 3, 2025
10a8d34
job, relplication controller tasks error and deployment, sts stats re…
Toha-K-M Feb 3, 2025
bf570cf
feat: Implement RBAC APIs
nahidhasan94 Feb 3, 2025
a1d23ac
chore:minor route fix
nahidhasan94 Feb 3, 2025
a1cc548
feat: category based permission implementation
nahidhasan94 Feb 3, 2025
6024ed1
chore: Add Default Permissions and modify user payload
nahidhasan94 Feb 4, 2025
7c39bfb
fix: Fix Model Data Convert function
nahidhasan94 Feb 4, 2025
13c98ad
feat: Implement Role Update and get users by Role API
nahidhasan94 Feb 4, 2025
8f6e45f
chore: replace route function name
nahidhasan94 Feb 4, 2025
1d6c71e
Frontend
sajalmia381 Feb 4, 2025
3f68e4b
Remove k8s terminal
sajalmia381 Feb 5, 2025
18b3856
deployment pod list bug
Toha-K-M Feb 5, 2025
74ca442
feat: register permissions, implement reset password API.
nahidhasan94 Feb 5, 2025
afc3a03
remove env
Toha-K-M Feb 5, 2025
5579a40
update gitignore
Toha-K-M Feb 5, 2025
ec3ffc6
chore: write unit test
nahidhasan94 Feb 5, 2025
5bb2fd9
chore: add extra checking in reset password API
nahidhasan94 Feb 5, 2025
4858dcd
chore: update error message
nahidhasan94 Feb 5, 2025
0a501c3
namespace test
Toha-K-M Feb 5, 2025
0730b8e
delete secret bug fix
Toha-K-M Feb 5, 2025
4d18892
delete secret bug fix
Toha-K-M Feb 5, 2025
7cc70b7
Merge branch 'local' of https://github.com/krack8/lighthouse into test
Toha-K-M Feb 5, 2025
95b8d02
remove unused package, non admin permission fix
sajalmia381 Feb 5, 2025
5c0a7c6
on-boarded-cluster title removed
RashidChy Feb 6, 2025
7f236f0
UI fix
sajalmia381 Feb 6, 2025
f38af56
test structure
Toha-K-M Feb 9, 2025
ac52b95
Merge branch 'frontend' of https://github.com/krack8/lighthouse into …
Toha-K-M Feb 9, 2025
048eb46
test namespace
Toha-K-M Feb 10, 2025
4100fae
test namespace
Toha-K-M Feb 10, 2025
dac2ef5
namespace and configmap
Toha-K-M Feb 10, 2025
5515fd9
configmap test
Toha-K-M Feb 10, 2025
727a703
configmap test
Toha-K-M Feb 11, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
9 changes: 8 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
.idea
.vscode
node_modules
coverage
coverage
*.env
pkg/*.env
*.patch

frontend/dist
frontend/.angular/cache
frontend/.sass-cache
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,25 @@ go run main.go
Generate Protobuf Go Files
```azure
protoc --go_out=. --go-grpc_out=. pkg/common/pb/PROTO_FILE_NAME
```

Noauth Mode
```
environment variables
// Noauth enabled
NO_AUTH="TRUE"
// Noauth disabled
NO_AUTH="FALSE"
```

Go Test
```azure
cd pkg/k8s_test
go test
-- for specific func
go test -run TestFunctionA
-- coverage
go tool cover --html=coverage.out
-- to view in browser
go tool cover --html=coverage.out
```
12 changes: 12 additions & 0 deletions frontend/.browserslistrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# This file is used by the build system to adjust CSS and JS output to support the specified browsers below.
# For additional information regarding the format and rule options, please see:
# https://github.com/browserslist/browserslist#queries

# You can see what browsers were selected by your queries by running:
# npx browserslist

> 0.5%
last 2 versions
Firefox ESR
not dead
not IE 9-11 # For IE 9-11 support, remove 'not'.
1 change: 1 addition & 0 deletions frontend/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
5 changes: 5 additions & 0 deletions frontend/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Add files here to ignore them from prettier formatting

/dist
/coverage
nodes_modules
14 changes: 14 additions & 0 deletions frontend/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"printWidth": 140,
"tabWidth": 2,
"useTabs": false,
"semi": true,
"singleQuote": true,
"trailingComma": "none",
"bracketSpacing": true,
"arrowParens": "avoid",
"rangeStart": 0,
"requirePragma": false,
"insertPragma": false,
"proseWrap": "preserve"
}
41 changes: 41 additions & 0 deletions frontend/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
### STAGE 1: Build ###

# We label our stage as 'builder'
FROM node:14.21.1-alpine as builder

# previous: 8192
RUN export NODE_OPTIONS=--max_old_space_size=6144

WORKDIR /ng-app

COPY package*.json ./

RUN npm i -f

COPY . .

RUN npm run build:prod

### STAGE 2: Setup ###
FROM nginx:1.21

ENV KLOVERCLOUD_API_ENDPOINT=''

## Copy our default nginx config
COPY nginx/default.conf /etc/nginx/conf.d/
COPY nginx/nginx.conf /etc/nginx/nginx.conf

## Remove default nginx website
RUN rm -rf /usr/share/nginx/html/*

## From 'builder' stage copy over the artifacts in dist folder to default nginx public folder
COPY --from=builder /ng-app/dist/kc /usr/share/nginx/html

RUN mkdir /app
COPY run.sh /app/run.sh
RUN chmod +x /app/run.sh
RUN sed -i -e 's/\r$//' /app/run.sh

EXPOSE 8000

ENTRYPOINT ["bin/sh", "/app/run.sh"]
22 changes: 22 additions & 0 deletions frontend/Dockerfile2
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
FROM nginx:1.21

ENV KLOVERCLOUD_API_ENDPOINT=''

## Copy our default nginx config
COPY nginx/default.conf /etc/nginx/conf.d/
COPY nginx/nginx.conf /etc/nginx/nginx.conf

## Remove default nginx website
RUN rm -rf /usr/share/nginx/html/*

## From 'builder' stage copy over the artifacts in dist folder to default nginx public folder
COPY dist/kc /usr/share/nginx/html

RUN mkdir /app
COPY run.sh /app/run.sh
RUN chmod +x /app/run.sh
RUN sed -i -e 's/\r$//' /app/run.sh

EXPOSE 8000

ENTRYPOINT ["bash", "/app/run.sh"]
30 changes: 30 additions & 0 deletions frontend/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
### Prerequisites

> Before we can install Angular-CLI we will have to get a few thing set up first. To run Angular-CLI we will need to install this prerequisite first:

- **NodeJS** v14.21.1 or newer
- Preferable/Stable Version **NodeJS** v20.14.0

### Installing Angular-CLI

```sh
`npm install -g @angular/cli@latest`
# or
`sudo npm install -g @angular/cli@latest`
```

### Install Dependencies
```sh
cd frontend
npm install --force
```

### Run App
```
npm run start
```

### Build App
```
npm run build
```
Loading
Loading