use of com.tremolosecurity.k8s.watch.K8sWatcher in project OpenUnison by TremoloSecurity.
the class LoadApplicationsFromK8s method loadDynamicApplications.
@Override
public void loadDynamicApplications(ConfigManager cfgMgr, ProvisioningEngine provisioningEngine, Map<String, Attribute> init) throws ProvisioningException {
this.tremolo = cfgMgr.getCfg();
String k8sTarget = init.get("k8starget").getValues().get(0);
String namespace = init.get("namespace").getValues().get(0);
String uri = "/apis/openunison.tremolo.io/v1/namespaces/" + namespace + "/applications";
this.provisioningEngine = provisioningEngine;
this.cfgMgr = cfgMgr;
this.k8sWatch = new K8sWatcher(k8sTarget, namespace, uri, this, cfgMgr, provisioningEngine);
this.k8sWatch.initalRun();
}
use of com.tremolosecurity.k8s.watch.K8sWatcher in project OpenUnison by TremoloSecurity.
the class LoadAuthChainsFromK8s method loadDynamicAuthChains.
@Override
public void loadDynamicAuthChains(ConfigManager cfgMgr, ProvisioningEngine provisioningEngine, Map<String, Attribute> init) throws ProvisioningException {
this.tremolo = cfgMgr.getCfg();
String k8sTarget = init.get("k8starget").getValues().get(0);
String namespace = init.get("namespace").getValues().get(0);
String uri = "/apis/openunison.tremolo.io/v1/namespaces/" + namespace + "/authchains";
this.provisioningEngine = provisioningEngine;
this.cfgMgr = cfgMgr;
this.k8sWatch = new K8sWatcher(k8sTarget, namespace, uri, this, cfgMgr, provisioningEngine);
this.k8sWatch.initalRun();
}
use of com.tremolosecurity.k8s.watch.K8sWatcher in project OpenUnison by TremoloSecurity.
the class LoadReportsFromK8s method loadDynamicReports.
@Override
public void loadDynamicReports(ConfigManager cfgMgr, ProvisioningEngine provisioningEngine, Map<String, Attribute> init) throws ProvisioningException {
this.tremolo = cfgMgr.getCfg();
String k8sTarget = init.get("k8starget").getValues().get(0);
String namespace = init.get("namespace").getValues().get(0);
String uri = "/apis/openunison.tremolo.io/v1/namespaces/" + namespace + "/reports";
this.provisioningEngine = provisioningEngine;
this.cfgMgr = cfgMgr;
this.k8sWatch = new K8sWatcher(k8sTarget, namespace, uri, this, cfgMgr, provisioningEngine);
this.k8sWatch.initalRun();
}
use of com.tremolosecurity.k8s.watch.K8sWatcher in project OpenUnison by TremoloSecurity.
the class LoadTargetsFromK8s method loadDynamicTargets.
@Override
public void loadDynamicTargets(ConfigManager cfgMgr, ProvisioningEngine provisioningEngine, Map<String, Attribute> init) throws ProvisioningException {
this.tremolo = cfgMgr.getCfg();
String k8sTarget = init.get("k8starget").getValues().get(0);
String namespace = init.get("namespace").getValues().get(0);
String uri = "/apis/openunison.tremolo.io/v1/namespaces/" + namespace + "/targets";
this.provisioningEngine = provisioningEngine;
this.cfgMgr = cfgMgr;
this.k8sWatch = new K8sWatcher(k8sTarget, namespace, uri, this, cfgMgr, provisioningEngine);
this.k8sWatch.initalRun();
}
use of com.tremolosecurity.k8s.watch.K8sWatcher in project OpenUnison by TremoloSecurity.
the class LoadResultGroupsFromK8s method loadDynamicResultGroups.
@Override
public void loadDynamicResultGroups(ConfigManager cfgMgr, ProvisioningEngine provisioningEngine, Map<String, Attribute> init) throws ProvisioningException {
this.tremolo = cfgMgr.getCfg();
String k8sTarget = init.get("k8starget").getValues().get(0);
String namespace = init.get("namespace").getValues().get(0);
String uri = "/apis/openunison.tremolo.io/v1/namespaces/" + namespace + "/resultgroups";
this.provisioningEngine = provisioningEngine;
this.cfgMgr = cfgMgr;
this.k8sWatch = new K8sWatcher(k8sTarget, namespace, uri, this, cfgMgr, provisioningEngine);
this.k8sWatch.initalRun();
}
Aggregations