Search in sources :

Example 6 with K8sWatcher

use of com.tremolosecurity.k8s.watch.K8sWatcher in project OpenUnison by TremoloSecurity.

the class LoadWorkflowsFromK8s method loadDynamicWorkflows.

@Override
public void loadDynamicWorkflows(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 + "/workflows";
    this.provisioningEngine = provisioningEngine;
    this.cfgMgr = cfgMgr;
    this.k8sWatch = new K8sWatcher(k8sTarget, namespace, uri, this, cfgMgr, provisioningEngine);
    this.k8sWatch.initalRun();
}
Also used : K8sWatcher(com.tremolosecurity.k8s.watch.K8sWatcher)

Example 7 with K8sWatcher

use of com.tremolosecurity.k8s.watch.K8sWatcher in project OpenUnison by TremoloSecurity.

the class K8sLoadTrusts method loadTrusts.

@Override
public void loadTrusts(String idpName, ServletContext ctx, HashMap<String, Attribute> init, HashMap<String, HashMap<String, Attribute>> trustCfg, MapIdentity mapper, HashMap<String, OpenIDConnectTrust> trusts) throws Exception {
    this.trusts = trusts;
    String k8sTarget = init.get("trusts.k8starget").getValues().get(0);
    this.namespace = init.get("trusts.namespace").getValues().get(0);
    String uri = "/apis/openunison.tremolo.io/v1/namespaces/" + this.namespace + "/trusts";
    this.k8sWatch = new K8sWatcher(k8sTarget, namespace, uri, this, GlobalEntries.getGlobalEntries().getConfigManager(), GlobalEntries.getGlobalEntries().getConfigManager().getProvisioningEngine());
    this.k8sWatch.initalRun();
}
Also used : K8sWatcher(com.tremolosecurity.k8s.watch.K8sWatcher)

Example 8 with K8sWatcher

use of com.tremolosecurity.k8s.watch.K8sWatcher in project OpenUnison by TremoloSecurity.

the class LoadJobsFromK8s method loadDynamicJobs.

@Override
public void loadDynamicJobs(ConfigManager cfgMgr, ProvisioningEngine provisioningEngine, Map<String, Attribute> init, HashSet<String> jobKeys) 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 + "/oujobs";
    this.provisioningEngine = provisioningEngine;
    this.cfgMgr = cfgMgr;
    this.k8sWatch = new K8sWatcher(k8sTarget, namespace, uri, this, cfgMgr, provisioningEngine);
    this.jobKeys = jobKeys;
    this.k8sWatch.initalRun();
}
Also used : K8sWatcher(com.tremolosecurity.k8s.watch.K8sWatcher)

Example 9 with K8sWatcher

use of com.tremolosecurity.k8s.watch.K8sWatcher in project OpenUnison by TremoloSecurity.

the class LoadAuthMechsFromK8s method loadDynamicAuthMechs.

@Override
public void loadDynamicAuthMechs(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 + "/authmechs";
    this.provisioningEngine = provisioningEngine;
    this.cfgMgr = cfgMgr;
    this.k8sWatch = new K8sWatcher(k8sTarget, namespace, uri, this, cfgMgr, provisioningEngine);
    this.k8sWatch.initalRun();
}
Also used : K8sWatcher(com.tremolosecurity.k8s.watch.K8sWatcher)

Example 10 with K8sWatcher

use of com.tremolosecurity.k8s.watch.K8sWatcher in project OpenUnison by TremoloSecurity.

the class LoadAuthorizationsFromK8s method loadDynamicAuthorizations.

@Override
public void loadDynamicAuthorizations(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 + "/customazs";
    this.provisioningEngine = provisioningEngine;
    this.cfgMgr = cfgMgr;
    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