Skip to content

Commit aaa9876

Browse files
committed
Rename Kubernetes Console to Kubernetes Dashboard
This commit changes all occurences of word "console" to "dashboard". The rename was required due to collision with an other project.
1 parent 0a28a40 commit aaa9876

File tree

11 files changed

+44
-41
lines changed

11 files changed

+44
-41
lines changed

README.md

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
1-
# Kubernetes Console
2-
Kubernetes Console is a general purpose, web-based UI for Kubernetes clusters. It allows to manage applications running in the cluster, troubleshoot them, as well as, manage the cluster itself.
1+
# Kubernetes Dashboard
2+
Kubernetes Dashboard is a general purpose, web-based UI for Kubernetes clusters. It allows to
3+
manage applications running in the cluster, troubleshoot them, as well as, manage the cluster
4+
itself.
35

4-
The console is currently under active development and is not ready for production use (yet!).
6+
The dashboard is currently under active development and is not ready for production use (yet!).
57

6-
# Contribute:
8+
# Contribute
79

8-
Wish to contribute !! Great start [here](https://github.com/kubernetes/console/blob/master/CONTRIBUTING.md).
10+
Wish to contribute !! Great start [here](CONTRIBUTING.md).
911

10-
# License:
12+
# License
1113

12-
The work done has been licensed under Apache License 2.0.The license file can be found [here](https://github.com/kubernetes/console/blob/master/LICENSE). You can find out more about license,at
14+
The work done has been licensed under Apache License 2.0. The license file can be found
15+
[here](LICENSE). You can find out more about the license at:
1316

1417
http://www.apache.org/licenses/LICENSE-2.0

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"//": "Specification of this file can be found at:",
33
"//": "https://github.com/bower/spec/blob/master/json.md",
44

5-
"name": "kubernetes-console",
5+
"name": "kubernetes-dashboard",
66
"version": "0.0.1",
77
"dependencies": {
88
"angular": "~1.4.2",

build/backend.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,27 +69,27 @@ function spawnGoProcess(args, doneFn, opt_env) {
6969

7070

7171
/**
72-
* Compiles backend application in development mode and places 'console' binary in the serve
72+
* Compiles backend application in development mode and places the binary in the serve
7373
* directory.
7474
*/
7575
gulp.task('backend', ['backend-dependencies'], function(doneFn) {
7676
spawnGoProcess([
7777
'build',
78-
'-o', path.join(conf.paths.serve, 'console'),
79-
path.join(conf.paths.backendSrc, 'console.go'),
78+
'-o', path.join(conf.paths.serve, 'dashboard'),
79+
path.join(conf.paths.backendSrc, 'dashboard.go'),
8080
], doneFn);
8181
});
8282

8383

8484
/**
85-
* Compiles backend application in production mode and places 'console' binary in the dist
85+
* Compiles backend application in production mode and places the binary in the dist
8686
* directory.
8787
*
8888
* The production binary difference from development binary is only that it contains all
8989
* dependencies inside it and is targeted for Linux.
9090
*/
9191
gulp.task('backend:prod', ['backend-dependencies'], function(doneFn) {
92-
let outputBinaryPath = path.join(conf.paths.dist, 'console');
92+
let outputBinaryPath = path.join(conf.paths.dist, 'dashboard');
9393
// Delete output binary first. This is required because prod build does not override it.
9494
del(outputBinaryPath)
9595
.then(function() {
@@ -98,7 +98,7 @@ gulp.task('backend:prod', ['backend-dependencies'], function(doneFn) {
9898
'-a',
9999
'-installsuffix', 'cgo',
100100
'-o', outputBinaryPath,
101-
path.join(conf.paths.backendSrc, 'console.go'),
101+
path.join(conf.paths.backendSrc, 'dashboard.go'),
102102
], doneFn, {
103103
// Disable cgo package. Required to run on scratch docker image.
104104
CGO_ENABLED: '0',

build/conf.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export default {
3535
/**
3636
* The name of the Docker image with the application.
3737
*/
38-
imageName: 'kubernetes/console',
38+
imageName: 'kubernetes/dashboard',
3939
},
4040

4141
/**
@@ -45,7 +45,7 @@ export default {
4545
/**
4646
* The name of the root Angular module, i.e., the module that bootstraps the application.
4747
*/
48-
rootModuleName: 'kubernetesConsole',
48+
rootModuleName: 'kubernetesDashboard',
4949
},
5050

5151
/**

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"//": "Specification of this file can be found at: https://docs.npmjs.com/files/package.json",
33
"//": "When a dependency is not needed it should be removed from the list.",
44

5-
"name": "kubernetes-console",
5+
"name": "kubernetes-dashboard",
66
"version": "0.0.1",
77
"devDependencies": {
88
"babel": "~5.8.23",

src/app/backend/console.go renamed to src/app/backend/dashboard.go

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,26 +15,26 @@
1515
package main
1616

1717
import (
18-
"flag"
19-
"fmt"
20-
"net/http"
18+
"flag"
19+
"fmt"
20+
"net/http"
2121

22-
"github.com/golang/glog"
23-
"github.com/spf13/pflag"
22+
"github.com/golang/glog"
23+
"github.com/spf13/pflag"
2424
)
2525

2626
var (
27-
argPort = pflag.Int("port", 8080, "The port to listen to for incomming HTTP requests")
27+
argPort = pflag.Int("port", 8080, "The port to listen to for incomming HTTP requests")
2828
)
2929

3030
func main() {
31-
pflag.CommandLine.AddGoFlagSet(flag.CommandLine)
32-
pflag.Parse()
33-
glog.Info("Starting HTTP server on port ", *argPort)
34-
defer glog.Flush();
31+
pflag.CommandLine.AddGoFlagSet(flag.CommandLine)
32+
pflag.Parse()
33+
glog.Info("Starting HTTP server on port ", *argPort)
34+
defer glog.Flush()
3535

36-
// Run a HTTP server that serves static files from current directory.
37-
// TODO(bryk): Disable directory listing.
38-
http.Handle("/", http.FileServer(http.Dir("./")))
39-
glog.Fatal(http.ListenAndServe(fmt.Sprintf(":%d", *argPort), nil))
36+
// Run a HTTP server that serves static files from current directory.
37+
// TODO(bryk): Disable directory listing.
38+
http.Handle("/", http.FileServer(http.Dir("./")))
39+
glog.Fatal(http.ListenAndServe(fmt.Sprintf(":%d", *argPort), nil))
4040
}

src/app/deploy/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ ADD . /
2727
# The port that the application listens on.
2828
# TODO(bryk): Parametrize this argument so that other build tools are aware of the exposed port.
2929
EXPOSE 8080
30-
ENTRYPOINT ["/console"]
30+
ENTRYPOINT ["/dashboard"]

src/app/frontend/chrome/chrome.module.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import chromeDirective from './chrome.directive';
1919
* Angular module containing navigation chrome for the application.
2020
*/
2121
export default angular.module(
22-
'kubernetesConsole.chrome',
22+
'kubernetesDashboard.chrome',
2323
[
2424
'ngMaterial',
2525
])

src/app/frontend/index.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
<!doctype html>
2-
<html ng-app="kubernetesConsole" ng-strict-di>
2+
<html ng-app="kubernetesDashboard" ng-strict-di>
33
<head>
44
<meta charset="utf-8">
5-
<title>Kubernetes Console</title>
5+
<title>Kubernetes Dashboard</title>
66
<meta name="viewport" content="width=device-width">
77

8-
<!-- build:css console/vendor.css -->
8+
<!-- build:css static/vendor.css -->
99
<!-- bower:css -->
1010
<!-- Bower CSS dependencies are populated here (dev build) and compiled
1111
into vendor.css (prod build). -->
1212
<!-- endbower -->
1313
<!-- endbuild -->
1414

15-
<!-- build:css console/app.css -->
15+
<!-- build:css static/app.css -->
1616
<!-- inject:css -->
1717
<!-- Application css files are populated here (dev build) and compiled
1818
into app.css (prod build). -->
@@ -29,14 +29,14 @@
2929
<chrome>
3030
<div ui-view> <!-- Application content is inserted here. --> </div>
3131
</chrome>
32-
<!-- build:js console/vendor.js -->
32+
<!-- build:js static/vendor.js -->
3333
<!-- bower:js -->
3434
<!-- Bower JS dependencies are populated here (dev build) and compiled
3535
into vendor.js (prod build). -->
3636
<!-- endbower -->
3737
<!-- endbuild -->
3838

39-
<!-- build:js console/app.js -->
39+
<!-- build:js static/app.js -->
4040
<!-- inject:js -->
4141
<!-- Application JS files are populated here. -->
4242
<!-- endinject -->

src/app/frontend/index.module.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import mainModule from './main/main.module';
2121
import routeConfig from './index.route';
2222

2323
export default angular.module(
24-
'kubernetesConsole',
24+
'kubernetesDashboard',
2525
[
2626
'ngAnimate',
2727
'ngAria',

0 commit comments

Comments
 (0)