Search in sources :

Example 1 with ImageConfiguration

use of io.dekorate.kubernetes.config.ImageConfiguration in project quarkus by quarkusio.

the class MinikubeManifestGenerator method generate.

public void generate(KubernetesConfig config) {
    ImageConfiguration imageConfig = getImageConfiguration(getProject(), config, configurationRegistry);
    Optional<Deployment> existingDeployment = resourceRegistry.groups().getOrDefault(MINIKUBE, new KubernetesListBuilder()).buildItems().stream().filter(i -> i instanceof Deployment).map(i -> (Deployment) i).filter(i -> i.getMetadata().getName().equals(config.getName())).findAny();
    if (!existingDeployment.isPresent()) {
        resourceRegistry.add(MINIKUBE, createDeployment(config, imageConfig));
    }
    addDecorators(MINIKUBE, config);
    if (config.isHeadless()) {
        resourceRegistry.decorate(MINIKUBE, new ApplyHeadlessDecorator(config.getName()));
    }
    if (config.getReplicas() != 1) {
        resourceRegistry.decorate(MINIKUBE, new ApplyReplicasToDeploymentDecorator(config.getName(), config.getReplicas()));
        resourceRegistry.decorate(MINIKUBE, new ApplyReplicasToStatefulSetDecorator(config.getName(), config.getReplicas()));
    }
    String image = Strings.isNotNullOrEmpty(imageConfig.getImage()) ? imageConfig.getImage() : Images.getImage(imageConfig.isAutoPushEnabled() ? (Strings.isNullOrEmpty(imageConfig.getRegistry()) ? DEFAULT_REGISTRY : imageConfig.getRegistry()) : imageConfig.getRegistry(), imageConfig.getGroup(), imageConfig.getName(), imageConfig.getVersion());
    resourceRegistry.decorate(MINIKUBE, new ApplyImageDecorator(config.getName(), image));
}
Also used : KubernetesListBuilder(io.fabric8.kubernetes.api.model.KubernetesListBuilder) WithProject(io.dekorate.WithProject) Strings(io.dekorate.utils.Strings) Images(io.dekorate.utils.Images) KubernetesConfigBuilder(io.dekorate.kubernetes.config.KubernetesConfigBuilder) AddIngressDecorator(io.dekorate.kubernetes.decorator.AddIngressDecorator) LabelSelector(io.fabric8.kubernetes.api.model.LabelSelector) Project(io.dekorate.project.Project) AbstractKubernetesManifestGenerator(io.dekorate.AbstractKubernetesManifestGenerator) ApplyProjectInfo(io.dekorate.project.ApplyProjectInfo) PodTemplateSpec(io.fabric8.kubernetes.api.model.PodTemplateSpec) ApplyDeployToApplicationConfiguration(io.dekorate.kubernetes.configurator.ApplyDeployToApplicationConfiguration) PodSpecBuilder(io.fabric8.kubernetes.api.model.PodSpecBuilder) PodSpec(io.fabric8.kubernetes.api.model.PodSpec) Labels(io.dekorate.utils.Labels) ConfigurationSupplier(io.dekorate.config.ConfigurationSupplier) AddServiceResourceDecorator(io.dekorate.kubernetes.decorator.AddServiceResourceDecorator) ApplyImageDecorator(io.dekorate.kubernetes.decorator.ApplyImageDecorator) PodTemplateSpecBuilder(io.fabric8.kubernetes.api.model.PodTemplateSpecBuilder) EditableKubernetesConfig(io.dekorate.kubernetes.config.EditableKubernetesConfig) KubernetesListBuilder(io.fabric8.kubernetes.api.model.KubernetesListBuilder) LabelSelectorBuilder(io.fabric8.kubernetes.api.model.LabelSelectorBuilder) Configuration(io.dekorate.kubernetes.config.Configuration) ConfigurationRegistry(io.dekorate.ConfigurationRegistry) BuildServiceFactories(io.dekorate.BuildServiceFactories) AddInitContainerDecorator(io.dekorate.kubernetes.decorator.AddInitContainerDecorator) ImageConfigurationBuilder(io.dekorate.kubernetes.config.ImageConfigurationBuilder) DeploymentBuilder(io.fabric8.kubernetes.api.model.apps.DeploymentBuilder) Container(io.dekorate.kubernetes.config.Container) ImageConfiguration(io.dekorate.kubernetes.config.ImageConfiguration) ResourceRegistry(io.dekorate.ResourceRegistry) KubernetesConfig(io.dekorate.kubernetes.config.KubernetesConfig) Optional(java.util.Optional) ApplyHeadlessDecorator(io.dekorate.kubernetes.decorator.ApplyHeadlessDecorator) ApplyReplicasToDeploymentDecorator(io.dekorate.kubernetes.decorator.ApplyReplicasToDeploymentDecorator) Deployment(io.fabric8.kubernetes.api.model.apps.Deployment) ImageConfiguration(io.dekorate.kubernetes.config.ImageConfiguration) ApplyReplicasToDeploymentDecorator(io.dekorate.kubernetes.decorator.ApplyReplicasToDeploymentDecorator) ApplyImageDecorator(io.dekorate.kubernetes.decorator.ApplyImageDecorator) Deployment(io.fabric8.kubernetes.api.model.apps.Deployment) ApplyHeadlessDecorator(io.dekorate.kubernetes.decorator.ApplyHeadlessDecorator)

Example 2 with ImageConfiguration

use of io.dekorate.kubernetes.config.ImageConfiguration in project dekorate by dekorateio.

the class KubernetesSessionListener method onClosed.

@Override
public void onClosed() {
    Session session = getSession();
    Project project = getProject();
    Optional<KubernetesConfig> optionalAppConfig = session.getConfigurationRegistry().get(KubernetesConfig.class);
    Optional<ImageConfiguration> optionalImageConfig = session.getConfigurationRegistry().getImageConfig(BuildServiceFactories.supplierMatches(project));
    if (!optionalAppConfig.isPresent() || !optionalImageConfig.isPresent()) {
        return;
    }
    KubernetesConfig kubernetesConfig = optionalAppConfig.get();
    ResourceRegistry resources = session.getResourceRegistry();
    KubernetesList generated = session.getGeneratedResources().getOrDefault(KUBERNETES, new KubernetesList());
    BuildService buildService = null;
    ImageConfiguration imageConfig = optionalImageConfig.get();
    if (imageConfig.isAutoBuildEnabled() || imageConfig.isAutoPushEnabled() || kubernetesConfig.isAutoDeployEnabled()) {
        try {
            buildService = optionalImageConfig.map(BuildServiceFactories.create(getProject(), generated.getItems())).orElseThrow(() -> new IllegalStateException("No applicable BuildServiceFactory found."));
        } catch (Exception e) {
            BuildServiceFactories.log(project, session.getConfigurationRegistry().getAll(ImageConfiguration.class));
            throw DekorateException.launderThrowable("Failed to lookup BuildService.", e);
        }
    }
    List<ProjectHook> hooks = new ArrayList<>();
    if (kubernetesConfig.isAutoDeployEnabled()) {
        hooks.add(new ResourcesApplyHook(getProject(), KUBERNETES, "kubectl"));
        hooks.add(new ScaleDeploymentHook(getProject(), kubernetesConfig.getName(), 0));
    }
    if (imageConfig.isAutoPushEnabled()) {
        // When deploy is enabled, we scale the Deployment down before push
        // then scale it back up once the image has been successfully pushed
        // This ensure that the pod runs the proper image
        hooks.add(new ImageBuildHook(getProject(), buildService));
        hooks.add(new ImagePushHook(getProject(), buildService));
    } else if (imageConfig.isAutoBuildEnabled() || kubernetesConfig.isAutoDeployEnabled()) {
        hooks.add(new ImageBuildHook(getProject(), buildService));
    }
    if (kubernetesConfig.isAutoDeployEnabled()) {
        hooks.add(new ScaleDeploymentHook(getProject(), kubernetesConfig.getName(), kubernetesConfig.getReplicas()));
    }
    if (!hooks.isEmpty()) {
        OrderedHook hook = OrderedHook.create(hooks.toArray(new ProjectHook[hooks.size()]));
        hook.register();
    }
}
Also used : ProjectHook(io.dekorate.hook.ProjectHook) BuildService(io.dekorate.BuildService) KubernetesConfig(io.dekorate.kubernetes.config.KubernetesConfig) ArrayList(java.util.ArrayList) ResourceRegistry(io.dekorate.ResourceRegistry) KubernetesList(io.fabric8.kubernetes.api.model.KubernetesList) OrderedHook(io.dekorate.hook.OrderedHook) DekorateException(io.dekorate.DekorateException) WithProject(io.dekorate.WithProject) Project(io.dekorate.project.Project) ResourcesApplyHook(io.dekorate.hook.ResourcesApplyHook) ImageConfiguration(io.dekorate.kubernetes.config.ImageConfiguration) ImageBuildHook(io.dekorate.hook.ImageBuildHook) ScaleDeploymentHook(io.dekorate.kubernetes.hook.ScaleDeploymentHook) ImagePushHook(io.dekorate.hook.ImagePushHook) Session(io.dekorate.Session) WithSession(io.dekorate.WithSession)

Example 3 with ImageConfiguration

use of io.dekorate.kubernetes.config.ImageConfiguration in project dekorate by dekorateio.

the class KubernetesManifestGenerator method addDecorators.

@Override
protected void addDecorators(String group, KubernetesConfig config) {
    super.addDecorators(group, config);
    ImageConfiguration imageConfig = getImageConfiguration(getProject(), config, configurationRegistry);
    String image = Strings.isNotNullOrEmpty(imageConfig.getImage()) ? imageConfig.getImage() : Images.getImage(imageConfig.isAutoPushEnabled() ? (Strings.isNullOrEmpty(imageConfig.getRegistry()) ? DEFAULT_REGISTRY : imageConfig.getRegistry()) : imageConfig.getRegistry(), imageConfig.getGroup(), imageConfig.getName(), imageConfig.getVersion());
    Container appContainer = new ContainerBuilder().withName(config.getName()).withImage(image).withImagePullPolicy(ImagePullPolicy.IfNotPresent).addNewEnvVar().withName(KUBERNETES_NAMESPACE).withField(METADATA_NAMESPACE).endEnvVar().build();
    Project project = getProject();
    Optional<VcsConfig> vcsConfig = configurationRegistry.get(VcsConfig.class);
    String remote = vcsConfig.map(VcsConfig::getRemote).orElse(Git.ORIGIN);
    boolean httpsPrefered = vcsConfig.map(VcsConfig::isHttpsPreferred).orElse(false);
    String vcsUrl = project.getScmInfo() != null && Strings.isNotNullOrEmpty(project.getScmInfo().getRemote().get(Git.ORIGIN)) ? Git.getRemoteUrl(project.getRoot(), remote, httpsPrefered).orElse(Labels.UNKNOWN) : Labels.UNKNOWN;
    resourceRegistry.decorate(group, new AddVcsUrlAnnotationDecorator(config.getName(), Annotations.VCS_URL, vcsUrl));
    resourceRegistry.decorate(group, new AddCommitIdAnnotationDecorator());
    resourceRegistry.decorate(group, new ApplyApplicationContainerDecorator(config.getName(), appContainer));
    resourceRegistry.decorate(group, new ApplyImageDecorator(config.getName(), image));
    for (Container container : config.getInitContainers()) {
        resourceRegistry.decorate(group, new AddInitContainerDecorator(config.getName(), container));
    }
    if (config.getPorts().length > 0) {
        resourceRegistry.decorate(group, new AddServiceResourceDecorator(config));
    }
    Ports.getHttpPort(config).ifPresent(p -> {
        resourceRegistry.decorate(group, new AddIngressDecorator(config, Labels.createLabelsAsMap(config, "Ingress")));
        resourceRegistry.decorate(group, new AddIngressRuleDecorator(config.getName(), config.getHost(), p));
    });
    if (config.isHeadless()) {
        resourceRegistry.decorate(KUBERNETES, new ApplyHeadlessDecorator(config.getName()));
    }
    if (config.getReplicas() != null && config.getReplicas() != 1) {
        resourceRegistry.decorate(KUBERNETES, new ApplyReplicasDecorator(config.getName(), config.getReplicas()));
    }
    resourceRegistry.decorate(KUBERNETES, new ApplyDeploymentStrategyDecorator(config.getName(), config.getDeploymentStrategy(), config.getRollingUpdate()));
}
Also used : AddIngressRuleDecorator(io.dekorate.kubernetes.decorator.AddIngressRuleDecorator) ApplyApplicationContainerDecorator(io.dekorate.kubernetes.decorator.ApplyApplicationContainerDecorator) ApplyImageDecorator(io.dekorate.kubernetes.decorator.ApplyImageDecorator) AddVcsUrlAnnotationDecorator(io.dekorate.kubernetes.decorator.AddVcsUrlAnnotationDecorator) AddServiceResourceDecorator(io.dekorate.kubernetes.decorator.AddServiceResourceDecorator) VcsConfig(io.dekorate.option.config.VcsConfig) ApplyHeadlessDecorator(io.dekorate.kubernetes.decorator.ApplyHeadlessDecorator) AddIngressDecorator(io.dekorate.kubernetes.decorator.AddIngressDecorator) ApplyDeploymentStrategyDecorator(io.dekorate.kubernetes.decorator.ApplyDeploymentStrategyDecorator) WithProject(io.dekorate.WithProject) Project(io.dekorate.project.Project) Container(io.dekorate.kubernetes.config.Container) ContainerBuilder(io.dekorate.kubernetes.config.ContainerBuilder) AddCommitIdAnnotationDecorator(io.dekorate.kubernetes.decorator.AddCommitIdAnnotationDecorator) ImageConfiguration(io.dekorate.kubernetes.config.ImageConfiguration) ApplyReplicasDecorator(io.dekorate.kubernetes.decorator.ApplyReplicasDecorator) AddInitContainerDecorator(io.dekorate.kubernetes.decorator.AddInitContainerDecorator)

Example 4 with ImageConfiguration

use of io.dekorate.kubernetes.config.ImageConfiguration in project dekorate by dekorateio.

the class KubernetesManifestGenerator method generate.

public void generate(KubernetesConfig config) {
    LOGGER.info("Processing kubernetes configuration.");
    ImageConfiguration imageConfig = getImageConfiguration(getProject(), config, configurationRegistry);
    Optional<Deployment> existingDeployment = resourceRegistry.groups().getOrDefault(KUBERNETES, new KubernetesListBuilder()).buildItems().stream().filter(i -> i instanceof Deployment).map(i -> (Deployment) i).filter(i -> i.getMetadata().getName().equals(config.getName())).findAny();
    if (!existingDeployment.isPresent()) {
        resourceRegistry.add(KUBERNETES, createDeployment(config, imageConfig));
    }
    addDecorators(KUBERNETES, config);
}
Also used : KubernetesListBuilder(io.fabric8.kubernetes.api.model.KubernetesListBuilder) WithProject(io.dekorate.WithProject) Strings(io.dekorate.utils.Strings) Images(io.dekorate.utils.Images) KubernetesConfigBuilder(io.dekorate.kubernetes.config.KubernetesConfigBuilder) AddIngressDecorator(io.dekorate.kubernetes.decorator.AddIngressDecorator) Project(io.dekorate.project.Project) AbstractKubernetesManifestGenerator(io.dekorate.AbstractKubernetesManifestGenerator) ApplyProjectInfo(io.dekorate.project.ApplyProjectInfo) HashMap(java.util.HashMap) PodTemplateSpec(io.fabric8.kubernetes.api.model.PodTemplateSpec) AddVcsUrlAnnotationDecorator(io.dekorate.kubernetes.decorator.AddVcsUrlAnnotationDecorator) ApplyDeployToApplicationConfiguration(io.dekorate.kubernetes.configurator.ApplyDeployToApplicationConfiguration) PodSpecBuilder(io.fabric8.kubernetes.api.model.PodSpecBuilder) PodSpec(io.fabric8.kubernetes.api.model.PodSpec) Labels(io.dekorate.utils.Labels) ConfigurationSupplier(io.dekorate.config.ConfigurationSupplier) AddServiceResourceDecorator(io.dekorate.kubernetes.decorator.AddServiceResourceDecorator) ApplyImageDecorator(io.dekorate.kubernetes.decorator.ApplyImageDecorator) AddIngressRuleDecorator(io.dekorate.kubernetes.decorator.AddIngressRuleDecorator) PodTemplateSpecBuilder(io.fabric8.kubernetes.api.model.PodTemplateSpecBuilder) EditableKubernetesConfig(io.dekorate.kubernetes.config.EditableKubernetesConfig) ApplyApplicationContainerDecorator(io.dekorate.kubernetes.decorator.ApplyApplicationContainerDecorator) Logger(io.dekorate.Logger) KubernetesListBuilder(io.fabric8.kubernetes.api.model.KubernetesListBuilder) Annotations(io.dekorate.utils.Annotations) Configuration(io.dekorate.kubernetes.config.Configuration) ConfigurationRegistry(io.dekorate.ConfigurationRegistry) LoggerFactory(io.dekorate.LoggerFactory) BuildServiceFactories(io.dekorate.BuildServiceFactories) AddInitContainerDecorator(io.dekorate.kubernetes.decorator.AddInitContainerDecorator) ApplyDeploymentStrategyDecorator(io.dekorate.kubernetes.decorator.ApplyDeploymentStrategyDecorator) ApplyReplicasDecorator(io.dekorate.kubernetes.decorator.ApplyReplicasDecorator) VcsConfig(io.dekorate.option.config.VcsConfig) ImageConfigurationBuilder(io.dekorate.kubernetes.config.ImageConfigurationBuilder) Ports(io.dekorate.utils.Ports) DeploymentBuilder(io.fabric8.kubernetes.api.model.apps.DeploymentBuilder) ImagePullPolicy(io.dekorate.kubernetes.annotation.ImagePullPolicy) Container(io.dekorate.kubernetes.config.Container) ImageConfiguration(io.dekorate.kubernetes.config.ImageConfiguration) ResourceRegistry(io.dekorate.ResourceRegistry) KubernetesConfig(io.dekorate.kubernetes.config.KubernetesConfig) Optional(java.util.Optional) ApplyHeadlessDecorator(io.dekorate.kubernetes.decorator.ApplyHeadlessDecorator) ContainerBuilder(io.dekorate.kubernetes.config.ContainerBuilder) AddCommitIdAnnotationDecorator(io.dekorate.kubernetes.decorator.AddCommitIdAnnotationDecorator) Deployment(io.fabric8.kubernetes.api.model.apps.Deployment) Git(io.dekorate.utils.Git) ImageConfiguration(io.dekorate.kubernetes.config.ImageConfiguration) Deployment(io.fabric8.kubernetes.api.model.apps.Deployment)

Example 5 with ImageConfiguration

use of io.dekorate.kubernetes.config.ImageConfiguration in project dekorate by dekorateio.

the class OpenshiftSessionListener method onClosed.

@Override
public void onClosed() {
    Session session = getSession();
    Project project = getProject();
    // We ned to set the TTCL, becuase the KubenretesClient used in this part of
    // code, needs TTCL so that java.util.ServiceLoader can work.
    ClassLoader tccl = Thread.currentThread().getContextClassLoader();
    List<ProjectHook> hooks = new ArrayList<>();
    try {
        Thread.currentThread().setContextClassLoader(getClass().getClassLoader());
        Optional<OpenshiftConfig> optionalAppConfig = session.getConfigurationRegistry().get(OpenshiftConfig.class);
        Optional<ImageConfiguration> optionalImageConfig = session.getConfigurationRegistry().getImageConfig(BuildServiceFactories.supplierMatches(project));
        if (!optionalAppConfig.isPresent() || !optionalImageConfig.isPresent()) {
            return;
        }
        OpenshiftConfig openshiftConfig = optionalAppConfig.get();
        ImageConfiguration imageConfig = optionalImageConfig.get();
        String name = session.getConfigurationRegistry().get(OpenshiftConfig.class).map(c -> c.getName()).orElse(getProject().getBuildInfo().getName());
        BuildService buildService = null;
        boolean s2iEnabled = imageConfig instanceof S2iBuildConfig && ((S2iBuildConfig) imageConfig).isEnabled();
        if (imageConfig.isAutoBuildEnabled() || imageConfig.isAutoPushEnabled() || openshiftConfig.isAutoDeployEnabled()) {
            KubernetesList list = session.getGeneratedResources().get("openshift");
            List<HasMetadata> generated = list != null ? list.getItems() : Collections.emptyList();
            try {
                buildService = optionalImageConfig.map(BuildServiceFactories.create(getProject(), generated)).orElseThrow(() -> new IllegalStateException("No applicable BuildServiceFactory found."));
            } catch (Exception e) {
                BuildServiceFactories.log(project, session.getConfigurationRegistry().getAll(ImageConfiguration.class));
                throw DekorateException.launderThrowable("Failed to lookup BuildService.", e);
            }
            hooks.add(new ImageBuildHook(getProject(), buildService));
        }
        if (imageConfig.isAutoPushEnabled() && !s2iEnabled) {
            hooks.add(new ImagePushHook(getProject(), buildService));
        }
        if (openshiftConfig.isAutoDeployEnabled()) {
            hooks.add(new ResourcesApplyHook(getProject(), OPENSHIFT, "oc"));
        }
    } finally {
        Thread.currentThread().setContextClassLoader(tccl);
        if (!hooks.isEmpty()) {
            OrderedHook hook = OrderedHook.create(hooks.toArray(new ProjectHook[hooks.size()]));
            hook.register();
        }
    }
}
Also used : DekorateException(io.dekorate.DekorateException) WithProject(io.dekorate.WithProject) KubernetesList(io.fabric8.kubernetes.api.model.KubernetesList) ImageBuildHook(io.dekorate.hook.ImageBuildHook) ProjectHook(io.dekorate.hook.ProjectHook) Project(io.dekorate.project.Project) BuildServiceFactories(io.dekorate.BuildServiceFactories) BuildService(io.dekorate.BuildService) HasMetadata(io.fabric8.kubernetes.api.model.HasMetadata) ArrayList(java.util.ArrayList) List(java.util.List) OrderedHook(io.dekorate.hook.OrderedHook) Session(io.dekorate.Session) ResourcesApplyHook(io.dekorate.hook.ResourcesApplyHook) ImageConfiguration(io.dekorate.kubernetes.config.ImageConfiguration) OpenshiftConfig(io.dekorate.openshift.config.OpenshiftConfig) Optional(java.util.Optional) S2iBuildConfig(io.dekorate.s2i.config.S2iBuildConfig) WithSession(io.dekorate.WithSession) ImagePushHook(io.dekorate.hook.ImagePushHook) Collections(java.util.Collections) SessionListener(io.dekorate.SessionListener) S2iBuildConfig(io.dekorate.s2i.config.S2iBuildConfig) HasMetadata(io.fabric8.kubernetes.api.model.HasMetadata) ProjectHook(io.dekorate.hook.ProjectHook) BuildService(io.dekorate.BuildService) ArrayList(java.util.ArrayList) KubernetesList(io.fabric8.kubernetes.api.model.KubernetesList) OpenshiftConfig(io.dekorate.openshift.config.OpenshiftConfig) OrderedHook(io.dekorate.hook.OrderedHook) DekorateException(io.dekorate.DekorateException) WithProject(io.dekorate.WithProject) Project(io.dekorate.project.Project) ResourcesApplyHook(io.dekorate.hook.ResourcesApplyHook) ImageConfiguration(io.dekorate.kubernetes.config.ImageConfiguration) ImageBuildHook(io.dekorate.hook.ImageBuildHook) ImagePushHook(io.dekorate.hook.ImagePushHook) Session(io.dekorate.Session) WithSession(io.dekorate.WithSession)

Aggregations

ImageConfiguration (io.dekorate.kubernetes.config.ImageConfiguration)12 Project (io.dekorate.project.Project)9 WithProject (io.dekorate.WithProject)7 BuildServiceFactories (io.dekorate.BuildServiceFactories)6 BuildService (io.dekorate.BuildService)5 DekorateException (io.dekorate.DekorateException)5 KubernetesList (io.fabric8.kubernetes.api.model.KubernetesList)5 Logger (io.dekorate.Logger)4 LoggerFactory (io.dekorate.LoggerFactory)4 ResourceRegistry (io.dekorate.ResourceRegistry)4 Container (io.dekorate.kubernetes.config.Container)4 AddInitContainerDecorator (io.dekorate.kubernetes.decorator.AddInitContainerDecorator)4 AddServiceResourceDecorator (io.dekorate.kubernetes.decorator.AddServiceResourceDecorator)4 ApplyHeadlessDecorator (io.dekorate.kubernetes.decorator.ApplyHeadlessDecorator)4 Deployment (io.fabric8.kubernetes.api.model.apps.Deployment)4 Optional (java.util.Optional)4 AbstractKubernetesManifestGenerator (io.dekorate.AbstractKubernetesManifestGenerator)3 ConfigurationRegistry (io.dekorate.ConfigurationRegistry)3 Session (io.dekorate.Session)3 WithSession (io.dekorate.WithSession)3