You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stratos.apache.org by im...@apache.org on 2015/02/13 17:38:02 UTC

stratos git commit: Updating kubernetes host definition in the UI

Repository: stratos
Updated Branches:
  refs/heads/master 03552bb63 -> 58c70c4bc


Updating kubernetes host definition in the UI


Project: http://git-wip-us.apache.org/repos/asf/stratos/repo
Commit: http://git-wip-us.apache.org/repos/asf/stratos/commit/58c70c4b
Tree: http://git-wip-us.apache.org/repos/asf/stratos/tree/58c70c4b
Diff: http://git-wip-us.apache.org/repos/asf/stratos/diff/58c70c4b

Branch: refs/heads/master
Commit: 58c70c4bc91725e4705cd9fdc100f9d0817e78f8
Parents: 03552bb
Author: Imesh Gunaratne <im...@apache.org>
Authored: Fri Feb 13 22:07:47 2015 +0530
Committer: Imesh Gunaratne <im...@apache.org>
Committed: Fri Feb 13 22:07:47 2015 +0530

----------------------------------------------------------------------
 .../forms/default/configure/docker.json         |  9 ++++--
 .../forms/schema/configure/docker.json          | 30 ++++++++++++++++----
 2 files changed, 30 insertions(+), 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/stratos/blob/58c70c4b/components/org.apache.stratos.manager.console/console/controllers/forms/default/configure/docker.json
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.manager.console/console/controllers/forms/default/configure/docker.json b/components/org.apache.stratos.manager.console/console/controllers/forms/default/configure/docker.json
index 7c05cd0..6d06ce7 100644
--- a/components/org.apache.stratos.manager.console/console/controllers/forms/default/configure/docker.json
+++ b/components/org.apache.stratos.manager.console/console/controllers/forms/default/configure/docker.json
@@ -4,7 +4,8 @@
     "kubernetesMaster": {
         "hostId": "KubHostMaster1",
         "hostname": "master.dev.kubernetes.example.org",
-        "hostIpAddress": "172.17.8.100",
+        "privateIPAddress": "172.17.8.100",
+        "publicIPAddress": "172.17.8.100",
         "property": [
             {
                 "name": "prop1",
@@ -24,7 +25,8 @@
         {
             "hostId": "KubHostSlave1",
             "hostname": "slave1.dev.kubernetes.example.org",
-            "hostIpAddress": "172.17.8.101",
+            "privateIPAddress": "172.17.8.101",
+            "publicIPAddress": "172.17.8.101",
             "property": [
                 {
                     "name": "prop1",
@@ -39,7 +41,8 @@
         {
             "hostId": "KubHostSlave2",
             "hostname": "slave2.dev.kubernetes.example.org",
-            "hostIpAddress": "172.17.8.102",
+            "privateIPAddress": "172.17.8.102",
+            "publicIPAddress": "172.17.8.102",
             "property": [
                 {
                     "name": "prop1",

http://git-wip-us.apache.org/repos/asf/stratos/blob/58c70c4b/components/org.apache.stratos.manager.console/console/controllers/forms/schema/configure/docker.json
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.manager.console/console/controllers/forms/schema/configure/docker.json b/components/org.apache.stratos.manager.console/console/controllers/forms/schema/configure/docker.json
index 7dc15d5..24f356d 100644
--- a/components/org.apache.stratos.manager.console/console/controllers/forms/schema/configure/docker.json
+++ b/components/org.apache.stratos.manager.console/console/controllers/forms/schema/configure/docker.json
@@ -33,9 +33,15 @@
                             "default": "KubHostSlave1",
                             "required":false
                         },
-                        "hostIpAddress": {
+                        "privateIPAddress": {
                             "type":"string",
-                            "id": "root/kubernetesHosts/0/hostIpAddress",
+                            "id": "root/kubernetesHosts/0/privateIPAddress",
+                            "default": "172.17.8.101",
+                            "required":true
+                        },
+                        "publicIPAddress": {
+                            "type":"string",
+                            "id": "root/kubernetesHosts/0/publicIPAddress",
                             "default": "172.17.8.101",
                             "required":false
                         },
@@ -103,9 +109,15 @@
                             "default": "KubHostSlave2",
                             "required":false
                         },
-                        "hostIpAddress": {
+                        "privateIPAddress": {
                             "type":"string",
-                            "id": "root/kubernetesHosts/1/hostIpAddress",
+                            "id": "root/kubernetesHosts/1/privateIPAddress",
+                            "default": "172.17.8.102",
+                            "required":true
+                        },
+                        "publicIPAddress": {
+                            "type":"string",
+                            "id": "root/kubernetesHosts/0/publicIPAddress",
                             "default": "172.17.8.102",
                             "required":false
                         },
@@ -175,9 +187,15 @@
                     "default": "KubHostMaster1",
                     "required":false
                 },
-                "hostIpAddress": {
+                "privateIPAddress": {
+                    "type":"string",
+                    "id": "root/kubernetesMaster/privateIPAddress",
+                    "default": "172.17.8.100",
+                    "required":true
+                },
+                "publicIPAddress": {
                     "type":"string",
-                    "id": "root/kubernetesMaster/hostIpAddress",
+                    "id": "root/kubernetesMaster/publicIPAddress",
                     "default": "172.17.8.100",
                     "required":false
                 },