mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-06 03:33:26 +00:00
Fix some readme and script bugs in examples (take 2).
v2: Resolve issues from comments, fix bugs in update-demo example, rename files for clarity, add turn-down steps. v3: Add more set commands, clean up rest of env var checks.
This commit is contained in:
committed by
Filipe Brandenburger
parent
57b721dd05
commit
bd196ea49c
@@ -25,6 +25,7 @@ limitations under the License.
|
||||
<img src="http://{{server.ip}}:8080/{{server.image}}" height="100px" width="100px" />
|
||||
<b>ID:</b> {{server.id}}<br>
|
||||
<b>Host:</b> <a href="http://{{server.ip}}:8080/data.json">{{server.host}}</a><br>
|
||||
<b>Status:</b> {{server.status}}<br>
|
||||
<b>Image:</b> {{server.dockerImage}}<br>
|
||||
<b>Labels:</b>
|
||||
<ul>
|
||||
|
@@ -23,7 +23,7 @@ var updateImage = function($http, server) {
|
||||
console.log(data);
|
||||
})
|
||||
.error(function(data) {
|
||||
server.image = ""
|
||||
server.image = "";
|
||||
console.log(data);
|
||||
});
|
||||
};
|
||||
@@ -34,8 +34,9 @@ var updateServer = function($http, server) {
|
||||
console.log(data);
|
||||
server.ip = data.currentState.hostIP;
|
||||
server.labels = data.labels;
|
||||
server.host = data.currentState.host.split('.')[0]
|
||||
server.dockerImage = data.currentState.info["update-demo-container"].Config.Image
|
||||
server.host = data.currentState.host.split('.')[0];
|
||||
server.status = data.currentState.status;
|
||||
server.dockerImage = data.currentState.info["update-demo"].Config.Image;
|
||||
updateImage($http, server);
|
||||
})
|
||||
.error(function(data) {
|
||||
@@ -84,7 +85,7 @@ var update = function($scope, $http) {
|
||||
newServers.push(server);
|
||||
}
|
||||
$scope.servers = newServers;
|
||||
updateData($scope, $http)
|
||||
updateData($scope, $http);
|
||||
})
|
||||
.error(function(data) {
|
||||
console.log("ERROR: " + data);
|
||||
|
Reference in New Issue
Block a user