Search in sources :

Example 1 with LogOutputSpecFactory

use of org.eclipse.jkube.kit.build.service.docker.access.log.LogOutputSpecFactory in project jkube by eclipse.

the class AbstractDockerMojo method init.

protected void init() {
    log = new AnsiLogger(getLog(), useColorForLogging(), verbose, !settings.getInteractiveMode(), getLogPrefix());
    logOutputSpecFactory = new LogOutputSpecFactory(useColorForLogging(), logStdout, logDate);
    authConfigFactory = new AuthConfigFactory(log);
    imageConfigResolver.setLog(log);
    clusterAccess = new ClusterAccess(log, initClusterConfiguration());
    runtimeMode = getConfiguredRuntimeMode();
}
Also used : LogOutputSpecFactory(org.eclipse.jkube.kit.build.service.docker.access.log.LogOutputSpecFactory) ClusterAccess(org.eclipse.jkube.kit.config.access.ClusterAccess) AuthConfigFactory(org.eclipse.jkube.kit.build.service.docker.auth.AuthConfigFactory) AnsiLogger(org.eclipse.jkube.kit.common.util.AnsiLogger)

Example 2 with LogOutputSpecFactory

use of org.eclipse.jkube.kit.build.service.docker.access.log.LogOutputSpecFactory in project jkube by eclipse.

the class AbstractJKubeTask method init.

private void init() {
    kubernetesExtension.javaProject = GradleUtil.convertGradleProject(getProject());
    kitLogger = createLogger(null);
    logOutputSpecFactory = new LogOutputSpecFactory(isAnsiEnabled(), kubernetesExtension.getLogStdoutOrDefault(), kubernetesExtension.getLogDateOrNull());
    clusterAccess = new ClusterAccess(kitLogger, initClusterConfiguration());
    jKubeServiceHub = initJKubeServiceHubBuilder().build();
    kubernetesExtension.resources = updateResourceConfigNamespace(kubernetesExtension.getNamespaceOrNull(), kubernetesExtension.resources);
    ImageConfigResolver imageConfigResolver = new ImageConfigResolver();
    try {
        resolvedImages = resolveImages(imageConfigResolver);
        enricherManager = new DefaultEnricherManager(JKubeEnricherContext.builder().project(kubernetesExtension.javaProject).processorConfig(ProfileUtil.blendProfileWithConfiguration(ProfileUtil.ENRICHER_CONFIG, kubernetesExtension.getProfileOrNull(), resolveResourceSourceDirectory(), kubernetesExtension.enricher)).images(resolvedImages).resources(kubernetesExtension.resources).log(kitLogger).build());
    } catch (IOException exception) {
        kitLogger.error("Error in fetching Build timestamps: " + exception.getMessage());
    }
}
Also used : DefaultEnricherManager(org.eclipse.jkube.kit.enricher.api.DefaultEnricherManager) LogOutputSpecFactory(org.eclipse.jkube.kit.build.service.docker.access.log.LogOutputSpecFactory) ClusterAccess(org.eclipse.jkube.kit.config.access.ClusterAccess) ImageConfigResolver(org.eclipse.jkube.kit.build.service.docker.config.handler.ImageConfigResolver) IOException(java.io.IOException)

Aggregations

LogOutputSpecFactory (org.eclipse.jkube.kit.build.service.docker.access.log.LogOutputSpecFactory)2 ClusterAccess (org.eclipse.jkube.kit.config.access.ClusterAccess)2 IOException (java.io.IOException)1 AuthConfigFactory (org.eclipse.jkube.kit.build.service.docker.auth.AuthConfigFactory)1 ImageConfigResolver (org.eclipse.jkube.kit.build.service.docker.config.handler.ImageConfigResolver)1 AnsiLogger (org.eclipse.jkube.kit.common.util.AnsiLogger)1 DefaultEnricherManager (org.eclipse.jkube.kit.enricher.api.DefaultEnricherManager)1