diff --git a/.gitignore b/.gitignore index 27143ae..7c8ebaf 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,3 @@ bower_components/* node_modules/* -templates.js \ No newline at end of file +templates.js diff --git a/Gruntfile.js b/Gruntfile.js index cad6456..79b2f58 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -89,6 +89,30 @@ module.exports = function(grunt) { src: 'views/**.html', dest: 'templates.js' } + }, + nggettext_extract: { + pot: { + files: { + 'po/kubernetes-object-describer.pot': ['views/*.html'] + } + } + }, + nggettext_compile: { + all: { + options: { + format: "json" + }, + files: [ + { + expand: true, + dot: true, + cwd: "po", + dest: "dist/languages", + src: ["*.po"], + ext: ".json" + } + ] + } } }); @@ -99,6 +123,9 @@ module.exports = function(grunt) { grunt.loadNpmTasks('grunt-contrib-concat'); grunt.loadNpmTasks('grunt-wiredep'); grunt.loadNpmTasks('grunt-angular-templates'); + grunt.loadNpmTasks('grunt-angular-gettext'); + + grunt.registerTask('update-po', ['nggettext_extract']); grunt.registerTask('serve', [ 'less', @@ -109,10 +136,11 @@ module.exports = function(grunt) { ]); grunt.registerTask('build', [ + 'nggettext_compile', 'less', 'ngtemplates', 'concat' ]); grunt.registerTask('default', ['serve']); -}; \ No newline at end of file +}; diff --git a/bower.json b/bower.json index 1467c02..7583b11 100644 --- a/bower.json +++ b/bower.json @@ -24,7 +24,8 @@ "dist/object-describer.js" ], "dependencies": { - "angular": "~1.3.8" + "angular": "~1.3.8", + "angular-gettext": "~2.1.0" }, "devDependencies": { "bootstrap": "~3.3.4", diff --git a/dist/languages/ja.json b/dist/languages/ja.json new file mode 100644 index 0000000..c38e6cf --- /dev/null +++ b/dist/languages/ja.json @@ -0,0 +1 @@ +{"ja":{"Name":"名前"}} \ No newline at end of file diff --git a/dist/object-describer.js b/dist/object-describer.js index 4933379..5216665 100644 --- a/dist/object-describer.js +++ b/dist/object-describer.js @@ -196,38 +196,38 @@ angular.module('kubernetesUI').run(['$templateCache', function($templateCache) { $templateCache.put('views/_collapse-long-text.html', " 120\">{{value}}\n" + " 120\">\n" + - " {{value.substring(0, 120)}}...\n" + + " {{value.substring(0, 120)}}...\n" + " {{value}}\n" + - "" + "\n" ); $templateCache.put('views/annotations.html', - "

Annotations

\n" + - " none\n" + + "

Annotations

\n" + + " none\n" + "
\n" + "
{{annotationKey}}
\n" + "
\n" + - "
" + " \n" ); $templateCache.put('views/container-state.html', - "none\n" + + "none\n" + "\n" + " \n" + " \n" + - " Waiting\n" + + " Waiting\n" + " ({{stateDescription.reason}})\n" + " \n" + " \n" + - " Running\n" + - " since {{stateDescription.startedAt | date:'medium'}}\n" + + " Running\n" + + " since {{stateDescription.startedAt | date:'medium'}}\n" + " \n" + " \n" + - " Terminated\n" + - " at {{stateDescription.finishedAt | date:'medium'}}\n" + - " with exit code {{stateDescription.exitCode}}\n" + + " Terminated\n" + + " at {{stateDescription.finishedAt | date:'medium'}}\n" + + " with exit code {{stateDescription.exitCode}}\n" + " ({{stateDescription.reason}})\n" + " \n" + " {{state}}\n" + @@ -237,21 +237,21 @@ angular.module('kubernetesUI').run(['$templateCache', function($templateCache) { $templateCache.put('views/container-statuses.html', - "
none
\n" + + "
none
\n" + "
\n" + - "
Name
\n" + + "
Name
\n" + "
{{containerStatus.name}}
\n" + - "
State
\n" + + "
State
\n" + "
\n" + " \n" + "
\n" + - "
Last State
\n" + + "
Last State
\n" + "
\n" + " \n" + "
\n" + - "
Ready
\n" + + "
Ready
\n" + "
{{containerStatus.ready}}
\n" + - "
Restart Count
\n" + + "
Restart Count
\n" + "
{{containerStatus.restartCount}}
\n" + "
\n" ); @@ -260,21 +260,21 @@ angular.module('kubernetesUI').run(['$templateCache', function($templateCache) { $templateCache.put('views/containers.html', "
none
\n" + "
\n" + - "
Name
\n" + + "
Name
\n" + "
{{container.name}}
\n" + - "
Image
\n" + + "
Image
\n" + "
{{container.image}}
\n" + - "
none
\n" + - "
Ports
\n" + + "
none
\n" + + "
Ports
\n" + "
\n" + - "
none
\n" + + "
none
\n" + "
\n" + - " {{port.containerPort}}/{{port.protocol}} to host port {{port.hostPort}}\n" + + " {{port.containerPort}}/{{port.protocol}} to host port {{port.hostPort}}\n" + "
\n" + "
\n" + - "
Env vars
\n" + + "
Env vars
\n" + "
\n" + - "
none
\n" + + "
none
\n" + "
\n" + "
\n" + "
\n" + @@ -287,39 +287,39 @@ angular.module('kubernetesUI').run(['$templateCache', function($templateCache) { " \n" + " \n" + " \n" + - "" + "\n" ); $templateCache.put('views/footer.html', "
\n" + - " More details... \n" + - "
" + " More details... \n" + + "\n" ); $templateCache.put('views/header.html', - "

{{kind || resource.kind || 'Resource'}}

" + "

{{kind || resource.kind || ('Resource'|translate)}}

\n" ); $templateCache.put('views/labels.html', - "

Labels

\n" + - "none\n" + + "

Labels

\n" + + "none\n" + "
\n" + "
{{labelKey}}
\n" + "
{{labelValue}}
\n" + - "
" + "\n" ); $templateCache.put('views/metadata.html', "
\n" + - "
Name
\n" + + "
Name
\n" + "
{{resource.metadata.name}}
\n" + - "
Namespace
\n" + + "
Namespace
\n" + "
{{resource.metadata.namespace}}
\n" + - "
Created
\n" + + "
Created
\n" + "
{{resource.metadata.creationTimestamp | date:'medium'}}
\n" + "
\n" + "\n" + @@ -330,16 +330,16 @@ angular.module('kubernetesUI').run(['$templateCache', function($templateCache) { $templateCache.put('views/pod-template.html', "

Pod Template

\n" + "
\n" + - "
Restart policy
\n" + + "
Restart policy
\n" + "
{{template.restartPolicy}}
\n" + - "
DNS policy
\n" + + "
DNS policy
\n" + "
{{template.dnsPolicy}}
\n" + - "
Service account
\n" + + "
Service account
\n" + "
{{template.serviceAccountName}}
\n" + "
\n" + - "

Containers

\n" + + "

Containers

\n" + "\n" + - "

Volumes

\n" + + "

Volumes

\n" + " \n" ); @@ -348,31 +348,31 @@ angular.module('kubernetesUI').run(['$templateCache', function($templateCache) { "
\n" + " \n" + "
\n" + - "
Name
\n" + + "
Name
\n" + "
{{resource.metadata.name}}
\n" + - "
Namespace
\n" + + "
Namespace
\n" + "
{{resource.metadata.namespace}}
\n" + - "
Created
\n" + + "
Created
\n" + "
{{resource.metadata.creationTimestamp | date:'medium'}}
\n" + - "
Restart policy
\n" + - "
{{resource.spec.restartPolicy || 'Always'}}
\n" + - "
Service account
\n" + + "
Restart policy
\n" + + "
{{resource.spec.restartPolicy || ('Always'|translate)}}
\n" + + "
Service account
\n" + "
{{resource.spec.serviceAccountName}}
\n" + "
\n" + - "

Status

\n" + + "

Status

\n" + "
\n" + - "
Phase
\n" + + "
Phase
\n" + "
{{resource.status.phase}}
\n" + - "
Node
\n" + - "
{{resource.spec.nodeName || 'unknown'}}\n" + + "
Node
\n" + + "
{{resource.spec.nodeName || ('unknown'|translate)}}\n" + " ({{resource.status.hostIP}})
\n" + - "
IP on node
\n" + + "
IP on node
\n" + "
\n" + " {{resource.status.podIP}}\n" + - " none\n" + + " none\n" + "
\n" + "
\n" + - "

Container Statuses

\n" + + "

Container Statuses

\n" + " \n" + "

Containers

\n" + " \n" + @@ -389,16 +389,16 @@ angular.module('kubernetesUI').run(['$templateCache', function($templateCache) { "
\n" + " \n" + "
\n" + - "
Name
\n" + + "
Name
\n" + "
{{resource.metadata.name}}
\n" + - "
Namespace
\n" + + "
Namespace
\n" + "
{{resource.metadata.namespace}}
\n" + - "
Created
\n" + + "
Created
\n" + "
{{resource.metadata.creationTimestamp | date:'medium'}}
\n" + - "
Replicas
\n" + + "
Replicas
\n" + "
{{(resource.spec.replicas === undefined) ? 1 : resource.spec.replicas}}
\n" + "
\n" + - "

Selector

\n" + + "

Selector

\n" + "
\n" + "
{{selectorKey}}
\n" + "
{{selectorValue}}
\n" + @@ -415,32 +415,32 @@ angular.module('kubernetesUI').run(['$templateCache', function($templateCache) { "
\n" + " \n" + "
\n" + - "
Name
\n" + + "
Name
\n" + "
{{resource.metadata.name}}
\n" + - "
Namespace
\n" + + "
Namespace
\n" + "
{{resource.metadata.namespace}}
\n" + - "
Created
\n" + + "
Created
\n" + "
{{resource.metadata.creationTimestamp | date:'medium'}}
\n" + - "
Type
\n" + + "
Type
\n" + "
{{resource.spec.type}}
\n" + - "
IP
\n" + + "
IP
\n" + "
{{resource.spec.clusterIP}}
\n" + - "
Ports
\n" + + "
Ports
\n" + "
\n" + - "
None
\n" + + "
None
\n" + "
\n" + " {{portMapping.port}} → {{portMapping.targetPort}} ({{portMapping.protocol}})\n" + "
\n" + "
\n" + - "
Session affinity
\n" + + "
Session affinity
\n" + "
{{resource.spec.sessionAffinity}}
\n" + - "
Ingress points
\n" + + "
Ingress points
\n" + "
\n" + " {{ingress.ip}}, \n" + "
\n" + "
\n" + - "

Selector

\n" + + "

Selector

\n" + "
\n" + "
{{selectorKey}}
\n" + "
{{selectorValue}}
\n" + @@ -453,32 +453,32 @@ angular.module('kubernetesUI').run(['$templateCache', function($templateCache) { $templateCache.put('views/volumes.html', - "
none
\n" + + "
none
\n" + "
\n" + - "
Name
\n" + + "
Name
\n" + "
{{volume.name}}
\n" + "\n" + - "
Type
\n" + - "
host path
\n" + - "
Path
\n" + + "
Type
\n" + + "
host path
\n" + + "
Path
\n" + "
{{volume.hostPath.path}}
\n" + "\n" + - "
Type
\n" + - "
empty directory
\n" + + "
Type
\n" + + "
empty directory
\n" + "\n" + - "
Type
\n" + - "
GCE persistent disk
\n" + + "
Type
\n" + + "
GCE persistent disk
\n" + "\n" + - "
Type
\n" + - "
Git repository
\n" + - "
Repository
\n" + + "
Type
\n" + + "
Git repository
\n" + + "
Repository
\n" + "
{{volume.gitRepo.repository}}
\n" + - "
Revision
\n" + + "
Revision
\n" + "
\n" + " {{volume.gitRepo.revision}}\n" + - " not specified\n" + + " not specified\n" + "
\n" + - "
" + "
\n" ); }]); diff --git a/index.html b/index.html index ac1d028..33b2c4b 100644 --- a/index.html +++ b/index.html @@ -22,6 +22,11 @@ + +

Default generic describer


@@ -45,6 +50,7 @@

Replication Controller describer

+ @@ -57,8 +63,8 @@

Replication Controller describer

diff --git a/package.json b/package.json index 5e18565..2599f9c 100644 --- a/package.json +++ b/package.json @@ -10,13 +10,14 @@ "dependencies": {}, "devDependencies": { "grunt": "~0.4.5", + "grunt-angular-gettext": "^2.1.3", + "grunt-angular-templates": "~0.5.7", + "grunt-contrib-concat": "~0.5.1", "grunt-contrib-connect": "~0.9.0", "grunt-contrib-jshint": "~0.11.1", "grunt-contrib-less": "~1.0.0", - "grunt-wiredep": "~2.0.0", "grunt-contrib-watch": "~0.6.1", - "grunt-angular-templates": "~0.5.7", - "grunt-contrib-concat": "~0.5.1" + "grunt-wiredep": "~2.0.0" }, "scripts": { "test": "echo \"Error: no test specified\" && exit 1" diff --git a/po/ja.po b/po/ja.po new file mode 100644 index 0000000..9e01142 --- /dev/null +++ b/po/ja.po @@ -0,0 +1,222 @@ +msgid "" +msgstr "" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Project-Id-Version: \n" +"Language: ja\n" + +#: views/annotations.html:1 +msgid "Annotations" +msgstr "" + +#: views/pod.html:28 +msgid "Container Statuses" +msgstr "" + +#: views/pod-template.html:10 +msgid "Containers" +msgstr "" + +#: views/metadata.html:6 +#: views/pod.html:8 +#: views/replication-controller.html:8 +#: views/service.html:8 +msgid "Created" +msgstr "" + +#: views/pod-template.html:5 +msgid "DNS policy" +msgstr "" + +#: views/containers.html:15 +msgid "Env vars" +msgstr "" + +#: views/_collapse-long-text.html:3 +msgid "Expand" +msgstr "" + +#: views/volumes.html:15 +msgid "GCE persistent disk" +msgstr "" + +#: views/volumes.html:18 +msgid "Git repository" +msgstr "" + +#: views/service.html:12 +msgid "IP" +msgstr "" + +#: views/pod.html:22 +msgid "IP on node" +msgstr "" + +#: views/containers.html:5 +msgid "Image" +msgstr "" + +#: views/service.html:23 +msgid "Ingress points" +msgstr "" + +#: views/labels.html:1 +msgid "Labels" +msgstr "" + +#: views/container-statuses.html:9 +msgid "Last State" +msgstr "" + +#: views/footer.html:2 +msgid "More details..." +msgstr "" + +#: views/container-statuses.html:3 +#: views/containers.html:3 +#: views/metadata.html:2 +#: views/pod.html:4 +#: views/replication-controller.html:4 +#: views/service.html:4 +#: views/volumes.html:3 +msgid "Name" +msgstr "名前" + +#: views/metadata.html:4 +#: views/pod.html:6 +#: views/replication-controller.html:6 +#: views/service.html:6 +msgid "Namespace" +msgstr "" + +#: views/pod.html:19 +msgid "Node" +msgstr "" + +#: views/service.html:16 +msgid "None" +msgstr "" + +#: views/volumes.html:8 +msgid "Path" +msgstr "" + +#: views/pod.html:17 +msgid "Phase" +msgstr "" + +#: views/containers.html:8 +#: views/service.html:14 +msgid "Ports" +msgstr "" + +#: views/container-statuses.html:13 +msgid "Ready" +msgstr "" + +#: views/replication-controller.html:10 +msgid "Replicas" +msgstr "" + +#: views/volumes.html:19 +msgid "Repository" +msgstr "" + +#: views/container-statuses.html:15 +msgid "Restart Count" +msgstr "" + +#: views/pod-template.html:3 +#: views/pod.html:10 +msgid "Restart policy" +msgstr "" + +#: views/volumes.html:21 +msgid "Revision" +msgstr "" + +#: views/container-state.html:9 +msgid "Running" +msgstr "" + +#: views/replication-controller.html:13 +#: views/service.html:29 +msgid "Selector" +msgstr "" + +#: views/pod-template.html:7 +#: views/pod.html:12 +msgid "Service account" +msgstr "" + +#: views/service.html:21 +msgid "Session affinity" +msgstr "" + +#: views/container-statuses.html:5 +msgid "State" +msgstr "" + +#: views/pod.html:15 +msgid "Status" +msgstr "" + +#: views/container-state.html:13 +msgid "Terminated" +msgstr "" + +#: views/service.html:10 +#: views/volumes.html:11 +#: views/volumes.html:14 +#: views/volumes.html:17 +#: views/volumes.html:6 +msgid "Type" +msgstr "" + +#: views/pod-template.html:12 +msgid "Volumes" +msgstr "" + +#: views/container-state.html:5 +msgid "Waiting" +msgstr "" + +#: views/container-state.html:14 +msgid "at {{stateDescription.finishedAt | date:'medium'}}" +msgstr "" + +#: views/volumes.html:12 +msgid "empty directory" +msgstr "" + +#: views/volumes.html:7 +msgid "host path" +msgstr "" + +#: views/annotations.html:2 +#: views/container-state.html:1 +#: views/container-statuses.html:1 +#: views/containers.html:10 +#: views/containers.html:17 +#: views/containers.html:7 +#: views/labels.html:2 +#: views/pod.html:25 +#: views/volumes.html:1 +msgid "none" +msgstr "" + +#: views/volumes.html:24 +msgid "not specified" +msgstr "" + +#: views/container-state.html:10 +msgid "since {{stateDescription.startedAt | date:'medium'}}" +msgstr "" + +#: views/containers.html:12 +msgid "to host port {{port.hostPort}}" +msgstr "" + +#: views/container-state.html:15 +msgid "with exit code {{stateDescription.exitCode}}" +msgstr "" diff --git a/po/kubernetes-object-describer.pot b/po/kubernetes-object-describer.pot new file mode 100644 index 0000000..8fd8df4 --- /dev/null +++ b/po/kubernetes-object-describer.pot @@ -0,0 +1,221 @@ +msgid "" +msgstr "" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Project-Id-Version: \n" + +#: views/annotations.html:1 +msgid "Annotations" +msgstr "" + +#: views/pod.html:28 +msgid "Container Statuses" +msgstr "" + +#: views/pod-template.html:10 +msgid "Containers" +msgstr "" + +#: views/metadata.html:6 +#: views/pod.html:8 +#: views/replication-controller.html:8 +#: views/service.html:8 +msgid "Created" +msgstr "" + +#: views/pod-template.html:5 +msgid "DNS policy" +msgstr "" + +#: views/containers.html:15 +msgid "Env vars" +msgstr "" + +#: views/_collapse-long-text.html:3 +msgid "Expand" +msgstr "" + +#: views/volumes.html:15 +msgid "GCE persistent disk" +msgstr "" + +#: views/volumes.html:18 +msgid "Git repository" +msgstr "" + +#: views/service.html:12 +msgid "IP" +msgstr "" + +#: views/pod.html:22 +msgid "IP on node" +msgstr "" + +#: views/containers.html:5 +msgid "Image" +msgstr "" + +#: views/service.html:23 +msgid "Ingress points" +msgstr "" + +#: views/labels.html:1 +msgid "Labels" +msgstr "" + +#: views/container-statuses.html:9 +msgid "Last State" +msgstr "" + +#: views/footer.html:2 +msgid "More details..." +msgstr "" + +#: views/container-statuses.html:3 +#: views/containers.html:3 +#: views/metadata.html:2 +#: views/pod.html:4 +#: views/replication-controller.html:4 +#: views/service.html:4 +#: views/volumes.html:3 +msgid "Name" +msgstr "" + +#: views/metadata.html:4 +#: views/pod.html:6 +#: views/replication-controller.html:6 +#: views/service.html:6 +msgid "Namespace" +msgstr "" + +#: views/pod.html:19 +msgid "Node" +msgstr "" + +#: views/service.html:16 +msgid "None" +msgstr "" + +#: views/volumes.html:8 +msgid "Path" +msgstr "" + +#: views/pod.html:17 +msgid "Phase" +msgstr "" + +#: views/containers.html:8 +#: views/service.html:14 +msgid "Ports" +msgstr "" + +#: views/container-statuses.html:13 +msgid "Ready" +msgstr "" + +#: views/replication-controller.html:10 +msgid "Replicas" +msgstr "" + +#: views/volumes.html:19 +msgid "Repository" +msgstr "" + +#: views/container-statuses.html:15 +msgid "Restart Count" +msgstr "" + +#: views/pod-template.html:3 +#: views/pod.html:10 +msgid "Restart policy" +msgstr "" + +#: views/volumes.html:21 +msgid "Revision" +msgstr "" + +#: views/container-state.html:9 +msgid "Running" +msgstr "" + +#: views/replication-controller.html:13 +#: views/service.html:29 +msgid "Selector" +msgstr "" + +#: views/pod-template.html:7 +#: views/pod.html:12 +msgid "Service account" +msgstr "" + +#: views/service.html:21 +msgid "Session affinity" +msgstr "" + +#: views/container-statuses.html:5 +msgid "State" +msgstr "" + +#: views/pod.html:15 +msgid "Status" +msgstr "" + +#: views/container-state.html:13 +msgid "Terminated" +msgstr "" + +#: views/service.html:10 +#: views/volumes.html:11 +#: views/volumes.html:14 +#: views/volumes.html:17 +#: views/volumes.html:6 +msgid "Type" +msgstr "" + +#: views/pod-template.html:12 +msgid "Volumes" +msgstr "" + +#: views/container-state.html:5 +msgid "Waiting" +msgstr "" + +#: views/container-state.html:14 +msgid "at {{stateDescription.finishedAt | date:'medium'}}" +msgstr "" + +#: views/volumes.html:12 +msgid "empty directory" +msgstr "" + +#: views/volumes.html:7 +msgid "host path" +msgstr "" + +#: views/annotations.html:2 +#: views/container-state.html:1 +#: views/container-statuses.html:1 +#: views/containers.html:10 +#: views/containers.html:17 +#: views/containers.html:7 +#: views/labels.html:2 +#: views/pod.html:25 +#: views/volumes.html:1 +msgid "none" +msgstr "" + +#: views/volumes.html:24 +msgid "not specified" +msgstr "" + +#: views/container-state.html:10 +msgid "since {{stateDescription.startedAt | date:'medium'}}" +msgstr "" + +#: views/containers.html:12 +msgid "to host port {{port.hostPort}}" +msgstr "" + +#: views/container-state.html:15 +msgid "with exit code {{stateDescription.exitCode}}" +msgstr "" diff --git a/views/_collapse-long-text.html b/views/_collapse-long-text.html index db24354..910b5c3 100644 --- a/views/_collapse-long-text.html +++ b/views/_collapse-long-text.html @@ -1,5 +1,5 @@ {{value}} - {{value.substring(0, 120)}}... + {{value.substring(0, 120)}}... - \ No newline at end of file + diff --git a/views/annotations.html b/views/annotations.html index 0ce79fa..607ef7f 100644 --- a/views/annotations.html +++ b/views/annotations.html @@ -1,6 +1,6 @@ -

Annotations

- none +

Annotations

+ none
{{annotationKey}}
-
\ No newline at end of file +
diff --git a/views/container-state.html b/views/container-state.html index c341600..42964f3 100644 --- a/views/container-state.html +++ b/views/container-state.html @@ -1,18 +1,18 @@ -none +none - Waiting + Waiting ({{stateDescription.reason}}) - Running - since {{stateDescription.startedAt | date:'medium'}} + Running + since {{stateDescription.startedAt | date:'medium'}} - Terminated - at {{stateDescription.finishedAt | date:'medium'}} - with exit code {{stateDescription.exitCode}} + Terminated + at {{stateDescription.finishedAt | date:'medium'}} + with exit code {{stateDescription.exitCode}} ({{stateDescription.reason}}) {{state}} diff --git a/views/container-statuses.html b/views/container-statuses.html index 455f133..c4bb873 100644 --- a/views/container-statuses.html +++ b/views/container-statuses.html @@ -1,17 +1,17 @@ -
none
+
none
-
Name
+
Name
{{containerStatus.name}}
-
State
+
State
-
Last State
+
Last State
-
Ready
+
Ready
{{containerStatus.ready}}
-
Restart Count
+
Restart Count
{{containerStatus.restartCount}}
diff --git a/views/containers.html b/views/containers.html index 48f47b1..55d2791 100644 --- a/views/containers.html +++ b/views/containers.html @@ -1,20 +1,20 @@
none
-
Name
+
Name
{{container.name}}
-
Image
+
Image
{{container.image}}
-
none
-
Ports
+
none
+
Ports
-
none
+
none
- {{port.containerPort}}/{{port.protocol}} to host port {{port.hostPort}} + {{port.containerPort}}/{{port.protocol}} to host port {{port.hostPort}}
-
Env vars
+
Env vars
-
none
+
none
diff --git a/views/footer.html b/views/footer.html index 541fbef..e66c16a 100644 --- a/views/footer.html +++ b/views/footer.html @@ -1,3 +1,3 @@ \ No newline at end of file + More details... +
diff --git a/views/header.html b/views/header.html index bacf322..1c5cf0e 100644 --- a/views/header.html +++ b/views/header.html @@ -1 +1 @@ -

{{kind || resource.kind || 'Resource'}}

\ No newline at end of file +

{{kind || resource.kind || ('Resource'|translate)}}

diff --git a/views/labels.html b/views/labels.html index 58cb1c0..b0b33ee 100644 --- a/views/labels.html +++ b/views/labels.html @@ -1,6 +1,6 @@ -

Labels

-none +

Labels

+none
{{labelKey}}
{{labelValue}}
-
\ No newline at end of file + diff --git a/views/metadata.html b/views/metadata.html index f06a092..6ae798b 100644 --- a/views/metadata.html +++ b/views/metadata.html @@ -1,9 +1,9 @@
-
Name
+
Name
{{resource.metadata.name}}
-
Namespace
+
Namespace
{{resource.metadata.namespace}}
-
Created
+
Created
{{resource.metadata.creationTimestamp | date:'medium'}}
diff --git a/views/pod-template.html b/views/pod-template.html index 41f10d6..70a2ced 100644 --- a/views/pod-template.html +++ b/views/pod-template.html @@ -1,13 +1,13 @@

Pod Template

-
Restart policy
+
Restart policy
{{template.restartPolicy}}
-
DNS policy
+
DNS policy
{{template.dnsPolicy}}
-
Service account
+
Service account
{{template.serviceAccountName}}
-

Containers

+

Containers

-

Volumes

+

Volumes

diff --git a/views/pod.html b/views/pod.html index 0e49ee8..006a0a7 100644 --- a/views/pod.html +++ b/views/pod.html @@ -1,31 +1,31 @@
-
Name
+
Name
{{resource.metadata.name}}
-
Namespace
+
Namespace
{{resource.metadata.namespace}}
-
Created
+
Created
{{resource.metadata.creationTimestamp | date:'medium'}}
-
Restart policy
-
{{resource.spec.restartPolicy || 'Always'}}
-
Service account
+
Restart policy
+
{{resource.spec.restartPolicy || ('Always'|translate)}}
+
Service account
{{resource.spec.serviceAccountName}}
-

Status

+

Status

-
Phase
+
Phase
{{resource.status.phase}}
-
Node
-
{{resource.spec.nodeName || 'unknown'}} +
Node
+
{{resource.spec.nodeName || ('unknown'|translate)}} ({{resource.status.hostIP}})
-
IP on node
+
IP on node
{{resource.status.podIP}} - none + none
-

Container Statuses

+

Container Statuses

Containers

diff --git a/views/replication-controller.html b/views/replication-controller.html index 611d7bb..39eb6ad 100644 --- a/views/replication-controller.html +++ b/views/replication-controller.html @@ -1,16 +1,16 @@
-
Name
+
Name
{{resource.metadata.name}}
-
Namespace
+
Namespace
{{resource.metadata.namespace}}
-
Created
+
Created
{{resource.metadata.creationTimestamp | date:'medium'}}
-
Replicas
+
Replicas
{{(resource.spec.replicas === undefined) ? 1 : resource.spec.replicas}}
-

Selector

+

Selector

{{selectorKey}}
{{selectorValue}}
diff --git a/views/service.html b/views/service.html index 87079b3..89c4e79 100644 --- a/views/service.html +++ b/views/service.html @@ -1,32 +1,32 @@
-
Name
+
Name
{{resource.metadata.name}}
-
Namespace
+
Namespace
{{resource.metadata.namespace}}
-
Created
+
Created
{{resource.metadata.creationTimestamp | date:'medium'}}
-
Type
+
Type
{{resource.spec.type}}
-
IP
+
IP
{{resource.spec.clusterIP}}
-
Ports
+
Ports
-
None
+
None
{{portMapping.port}} → {{portMapping.targetPort}} ({{portMapping.protocol}})
-
Session affinity
+
Session affinity
{{resource.spec.sessionAffinity}}
-
Ingress points
+
Ingress points
{{ingress.ip}},
-

Selector

+

Selector

{{selectorKey}}
{{selectorValue}}
diff --git a/views/volumes.html b/views/volumes.html index 366a79e..9f2984d 100644 --- a/views/volumes.html +++ b/views/volumes.html @@ -1,26 +1,26 @@ -
none
+
none
-
Name
+
Name
{{volume.name}}
-
Type
-
host path
-
Path
+
Type
+
host path
+
Path
{{volume.hostPath.path}}
-
Type
-
empty directory
+
Type
+
empty directory
-
Type
-
GCE persistent disk
+
Type
+
GCE persistent disk
-
Type
-
Git repository
-
Repository
+
Type
+
Git repository
+
Repository
{{volume.gitRepo.repository}}
-
Revision
+
Revision
{{volume.gitRepo.revision}} - not specified + not specified
-
\ No newline at end of file +