Hi All,
I deployed an app in my app cloud local set up and I have modified the code
in "/site/themes/default/templates/home/template.jag" such that once the
application home page is loaded (after the application has been clicked
from the list of created apps) the list of pods for that particular
application should be displayed.
The code is as follows.
var KubernetesProvisioningUtils =
Packages.org.wso2.appcloud.provisioning.runtime.Utils.KubernetesProvisioningUtils;
var Util = Packages.org.wso2.appcloud.core.Util;
var modManager = jagg.module("manager");
var tenantId = modManager.getTenantId();
var versionHashId = Util.getVersionHashId(applicationName,
selectedRevision, tenantId);
var applicationCtx = KubernetesProvisioningUtils.getApplicationContext(
applicationName, selectedRevision, null ,
modManager.getTenantId(), modManager.getTenantDomain(),
versionHashId);
var podList = KubernetesProvisioningUtils.getPods(applicationCtx);
%>
<script>
var podList = "<%=podList%>";
alert(podList);
</script>
<%
Using js I printed the podList but it returns "{}".
I checked the kubernetes cluster and details of the pod which contains the
app can be seen as well. But I cannot obtain it from the jaggery app. Any
help on this issue is appreciated.
Thanks and Regards.
--
*Sabra Ossen*
*Software Engineer*
Email: [email protected]
Mobile: +94 767 837356
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev