Skip to content

Commit

Permalink
Update GUI, types and Port in API Server
Browse files Browse the repository at this point in the history
  • Loading branch information
akuangkkk committed Jan 4, 2024
1 parent 1b2952b commit 7d47c73
Show file tree
Hide file tree
Showing 26 changed files with 28 additions and 61 deletions.
Binary file modified .DS_Store
Binary file not shown.
6 changes: 3 additions & 3 deletions Documentation/devhandbook.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,15 @@ Build dokcer image by running `docker build -t <docker username>/alluxio-operato

* Example:
```shell
docker buildx build --platform linux/amd64 -t kshou433/alluxio-operator:withAPIServer_v6.0 -f dev/build/Dockerfile .
docker buildx build --platform linux/amd64 -t kshou433/alluxio-operator:withAPIServer_v6.1 -f dev/build/Dockerfile .
```

### Step 3
Push image to docker hub : `docker push <docker username>/alluxio-operator:<tag>`.

* Example:
```shell
docker push kshou433/alluxio-operator:withAPIServer_v6.0
docker push kshou433/alluxio-operator:withAPIServer_v6.1
```

### Step 4
Expand All @@ -65,7 +65,7 @@ Update image url and tage in ```operator-config.yaml```
`kubectl -n monitoring port-forward svc/prometheus-k8s 9090`

### Access API Server Port
`kubectl port-forward -n alluxio-operator <api-server-controller Pod Name> 5220:5220`
`kubectl port-forward -n alluxio-operator <api-server-controller Pod Name> <LOCAL PORT>:80`

Then use `curl` to do REST API Request.

Expand Down
Binary file modified cmd/.DS_Store
Binary file not shown.
Binary file modified cmd/api_server/.DS_Store
Binary file not shown.
Binary file modified cmd/api_server/api_server/.DS_Store
Binary file not shown.
2 changes: 1 addition & 1 deletion cmd/api_server/api_server/endpoints/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ type DatasetConfig struct {

// Dataset todo change the `json:"datasetConfig"` captial letter
type Dataset struct {
DatasetConfig DatasetConfig `json:"datasetConfig"`
DatasetConfig DatasetConfig `json:"dataset-config"`
Status *v1alpha1.DatasetStatus `json:"status,omitempty"`
}

Expand Down
12 changes: 6 additions & 6 deletions cmd/api_server/api_server/gui/asset-manifest.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"files": {
"main.css": "/static/css/main.15468a32.css",
"main.js": "/static/js/main.0e4f4206.js",
"main.css": "/static/css/main.e6c13ad2.css",
"main.js": "/static/js/main.7eac36e3.js",
"index.html": "/index.html",
"main.15468a32.css.map": "/static/css/main.15468a32.css.map",
"main.0e4f4206.js.map": "/static/js/main.0e4f4206.js.map"
"main.e6c13ad2.css.map": "/static/css/main.e6c13ad2.css.map",
"main.7eac36e3.js.map": "/static/js/main.7eac36e3.js.map"
},
"entrypoints": [
"static/css/main.15468a32.css",
"static/js/main.0e4f4206.js"
"static/css/main.e6c13ad2.css",
"static/js/main.7eac36e3.js"
]
}
2 changes: 1 addition & 1 deletion cmd/api_server/api_server/gui/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Web site created using create-react-app"/><link rel="apple-touch-icon" href="/logo192.png"/><link rel="manifest" href="/manifest.json"/><title>React App</title><script defer="defer" src="/static/js/main.0e4f4206.js"></script><link href="/static/css/main.15468a32.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Web site created using create-react-app"/><link rel="apple-touch-icon" href="/logo192.png"/><link rel="manifest" href="/manifest.json"/><title>React App</title><script defer="defer" src="/static/js/main.7eac36e3.js"></script><link href="/static/css/main.e6c13ad2.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>

This file was deleted.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions cmd/api_server/api_server/gui/static/js/main.0e4f4206.js

This file was deleted.

This file was deleted.

3 changes: 3 additions & 0 deletions cmd/api_server/api_server/gui/static/js/main.7eac36e3.js

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Binary file added cmd/api_server/gui/alluxio.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions cmd/api_server/gui/asset-manifest.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"files": {
"main.css": "/static/css/main.e6c13ad2.css",
"main.js": "/static/js/main.c32d2a80.js",
"main.js": "/static/js/main.a453dc33.js",
"index.html": "/index.html",
"main.e6c13ad2.css.map": "/static/css/main.e6c13ad2.css.map",
"main.c32d2a80.js.map": "/static/js/main.c32d2a80.js.map"
"main.a453dc33.js.map": "/static/js/main.a453dc33.js.map"
},
"entrypoints": [
"static/css/main.e6c13ad2.css",
"static/js/main.c32d2a80.js"
"static/js/main.a453dc33.js"
]
}
2 changes: 1 addition & 1 deletion cmd/api_server/gui/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Web site created using create-react-app"/><link rel="apple-touch-icon" href="/logo192.png"/><link rel="manifest" href="/manifest.json"/><title>React App</title><script defer="defer" src="/static/js/main.c32d2a80.js"></script><link href="/static/css/main.e6c13ad2.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/alluxio.png"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Alluxio K8S Operator Dashboard: Manage Alluxio Cluster and Dataset via GUI"/><link rel="apple-touch-icon" href="/alluxio.png"/><link rel="manifest" href="/manifest.json"/><title>Alluxio K8S Operator Dashboard</title><script defer="defer" src="/static/js/main.a453dc33.js"></script><link href="/static/css/main.e6c13ad2.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
3 changes: 3 additions & 0 deletions cmd/api_server/gui/static/js/main.a453dc33.js

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -38,39 +38,6 @@
* LICENSE file in the root directory of this source tree.
*/

/**
* @remix-run/router v1.14.0
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/

/**
* React Router DOM v6.21.0
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/

/**
* React Router v6.21.0
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/

/** @license React v16.13.1
* react-is.production.min.js
*
Expand Down
1 change: 1 addition & 0 deletions cmd/api_server/gui/static/js/main.a453dc33.js.map

Large diffs are not rendered by default.

3 changes: 0 additions & 3 deletions cmd/api_server/gui/static/js/main.c32d2a80.js

This file was deleted.

1 change: 0 additions & 1 deletion cmd/api_server/gui/static/js/main.c32d2a80.js.map

This file was deleted.

2 changes: 1 addition & 1 deletion cmd/api_server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func startAPIServerManager() {

mgr, err := apiserver.NewManager(ctrl.GetConfigOrDie(), apiserver.Options{
Scheme: scheme,
Port: 5220,
Port: 80,
AllowedDomains: []string{},
})
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion operator-config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
image: docker.io/kshou433/alluxio-operator
imageTag: withAPIServer_v6.0
imageTag: withAPIServer_v6.1
imagePullPolicy: Always
alluxio-csi:
enabled: 'false'

0 comments on commit 7d47c73

Please sign in to comment.