use of com.tremolosecurity.k8s.watch.K8sWatcher in project OpenUnison by TremoloSecurity.
the class OrgTypeHolder method loadDynamicOrgs.
@Override
public void loadDynamicOrgs(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 + "/orgs";
this.orphanes = new HashMap<String, OrgType>();
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 LoadUrlsFromK8s method loadDynamicPortalUrls.
@Override
public void loadDynamicPortalUrls(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 + "/portalurls";
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 LoadGroupMetadataFromK8s method loadGroupMetadatas.
public void loadGroupMetadatas(ConfigManager cfgMgr, String k8sTarget, String namespace, SetupGroupMetadataWatch md) throws ProvisioningException {
this.tremolo = cfgMgr.getCfg();
String uri = "/apis/openunison.tremolo.io/v1/namespaces/" + namespace + "/groupmetadatas";
this.md = md;
this.cfgMgr = cfgMgr;
this.k8sWatch = new K8sWatcher(k8sTarget, namespace, uri, this, cfgMgr, cfgMgr.getProvisioningEngine());
this.k8sWatch.initalRun();
}
use of com.tremolosecurity.k8s.watch.K8sWatcher in project OpenUnison by TremoloSecurity.
the class LoadJavaScriptMappingFromK8s method loadJavaScriptMappings.
public void loadJavaScriptMappings(ConfigManager cfgMgr, String k8sTarget, String namespace) throws ProvisioningException {
this.tremolo = cfgMgr.getCfg();
String uri = "/apis/openunison.tremolo.io/v1/namespaces/" + namespace + "/javascriptmappings";
this.cfgMgr = cfgMgr;
this.k8sWatch = new K8sWatcher(k8sTarget, namespace, uri, this, cfgMgr, cfgMgr.getProvisioningEngine());
this.k8sWatch.initalRun();
}
use of com.tremolosecurity.k8s.watch.K8sWatcher in project OpenUnison by TremoloSecurity.
the class LoadQueueListenersFromK8s method loadDynamicQueueListeners.
@Override
public void loadDynamicQueueListeners(ConfigManager cfgMgr, ProvisioningEngine provisioningEngine, Map<String, Attribute> init) throws ProvisioningException {
this.tremolo = cfgMgr.getCfg();
this.cfgMgr = cfgMgr;
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 + "/messagelisteners";
this.k8sWatch = new K8sWatcher(k8sTarget, namespace, uri, this, cfgMgr, provisioningEngine);
this.k8sWatch.initalRun();
}
Aggregations