|
|
@ -272,6 +272,10 @@ module Kubernetes {
|
|
|
|
return Core.pathGet(entity, ["metadata", "creationTimestamp"]);
|
|
|
|
return Core.pathGet(entity, ["metadata", "creationTimestamp"]);
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export function getAnnotations(entity){
|
|
|
|
|
|
|
|
return Core.pathGet(entity,["metadata","annotations"]);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//var fabricDomain = Fabric.jmxDomain;
|
|
|
|
//var fabricDomain = Fabric.jmxDomain;
|
|
|
|
var fabricDomain = "io.fabric8";
|
|
|
|
var fabricDomain = "io.fabric8";
|
|
|
|
export var mbean = fabricDomain + ":type=Kubernetes";
|
|
|
|
export var mbean = fabricDomain + ":type=Kubernetes";
|
|
|
@ -1805,12 +1809,13 @@ module Kubernetes {
|
|
|
|
var answer = targetOracle && true;
|
|
|
|
var answer = targetOracle && true;
|
|
|
|
var inneedOracle = [];
|
|
|
|
var inneedOracle = [];
|
|
|
|
selectedReplicationControllers.forEach((rc) => {
|
|
|
|
selectedReplicationControllers.forEach((rc) => {
|
|
|
|
|
|
|
|
var annotations = getAnnotations(rc);
|
|
|
|
answer = answer && checkoutOracleIsRunning(rc);
|
|
|
|
answer = answer && checkoutOracleIsRunning(rc);
|
|
|
|
inneedOracle.push({
|
|
|
|
inneedOracle.push({
|
|
|
|
"name": getName(rc),
|
|
|
|
"name": getName(rc),
|
|
|
|
"ip": getHost(rc.$pods[0]),
|
|
|
|
"ip": getHost(rc.$pods[0]),
|
|
|
|
"port": rc.$pods[0].spec.containers[0].ports[0].hostPort,
|
|
|
|
"port": rc.$pods[0].spec.containers[0].ports[0].hostPort,
|
|
|
|
"isTarget": false
|
|
|
|
"dataId": annotations["id"]
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|