INNER CODE UNIT · JavaScript

getIngressLists

lucky-sideburn/kubeinvaders · html/js/chaos_report.js:85

function getIngressLists() {
  if (!namespace && configured_namespaces && configured_namespaces.length > 0) {
    namespace = configured_namespaces[0];
  }

  if (!namespace) {
    $('#alert_placeholder').replaceWith(alert_div + 'Set at least one namespace before configuring ingress checks.</div>');
    return;
  }

  var oReq = new XMLHttpRequest();
  oReq.onload = function () {
    if (this.status !== 200) {
      $('#alert_placeholder').replaceWith(alert_div + 'Ingress lookup failed with status ' + this.status + ' on namespace ' + namespace + '.</div>');
      parseIngressListJSON([]);
      return;
    }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…