Search in sources :

Example 1 with IdentityProvider

use of com.yahoo.vespa.model.container.IdentityProvider in project vespa by vespa-engine.

the class ContainerModelBuilder method addIdentityProvider.

private void addIdentityProvider(ContainerCluster cluster, List<ConfigServerSpec> configServerSpecs, HostName loadBalancerName, Zone zone, DeploymentSpec spec) {
    spec.athenzDomain().ifPresent(domain -> {
        AthenzService service = spec.athenzService(zone.environment(), zone.region()).orElseThrow(() -> new RuntimeException("Missing Athenz service configuration"));
        IdentityProvider identityProvider = new IdentityProvider(domain, service, getLoadBalancerName(loadBalancerName, configServerSpecs));
        cluster.addComponent(identityProvider);
        cluster.getContainers().forEach(container -> {
            container.setProp("identity.domain", domain.value());
            container.setProp("identity.service", service.value());
        });
    });
}
Also used : AthenzService(com.yahoo.config.provision.AthenzService) IdentityProvider(com.yahoo.vespa.model.container.IdentityProvider)

Aggregations

AthenzService (com.yahoo.config.provision.AthenzService)1 IdentityProvider (com.yahoo.vespa.model.container.IdentityProvider)1