Search in sources :

Example 11 with K8sWatcher

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();
}
Also used : OrgType(com.tremolosecurity.config.xml.OrgType) K8sWatcher(com.tremolosecurity.k8s.watch.K8sWatcher)

Example 12 with K8sWatcher

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();
}
Also used : K8sWatcher(com.tremolosecurity.k8s.watch.K8sWatcher)

Example 13 with K8sWatcher

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();
}
Also used : K8sWatcher(com.tremolosecurity.k8s.watch.K8sWatcher)

Example 14 with K8sWatcher

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();
}
Also used : K8sWatcher(com.tremolosecurity.k8s.watch.K8sWatcher)

Example 15 with K8sWatcher

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();
}
Also used : K8sWatcher(com.tremolosecurity.k8s.watch.K8sWatcher)

Aggregations

K8sWatcher (com.tremolosecurity.k8s.watch.K8sWatcher)15 OrgType (com.tremolosecurity.config.xml.OrgType)1