All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.quarkiverse.operatorsdk.deployment.BuildTimeConfigurationServiceBuildStep Maven / Gradle / Ivy

There is a newer version: 6.8.4
Show newest version
package io.quarkiverse.operatorsdk.deployment;

import io.quarkiverse.operatorsdk.runtime.BuildTimeConfigurationService;
import io.quarkiverse.operatorsdk.runtime.BuildTimeOperatorConfiguration;
import io.quarkus.deployment.annotations.BuildStep;

public class BuildTimeConfigurationServiceBuildStep {

    @BuildStep
    BuildTimeConfigurationServiceBuildItem createBuildTimeConfigurationService(VersionBuildItem versionBuildItem,
            GeneratedCRDInfoBuildItem generatedCRDs, BuildTimeOperatorConfiguration buildTimeConfig) {
        final var service = new BuildTimeConfigurationService(
                versionBuildItem.getVersion(),
                generatedCRDs.getCRDGenerationInfo(),
                buildTimeConfig.startOperator(),
                buildTimeConfig.closeClientOnStop(),
                buildTimeConfig.stopOnInformerErrorDuringStartup(),
                buildTimeConfig.enableSSA(),
                buildTimeConfig.activateLeaderElectionForProfiles());
        return new BuildTimeConfigurationServiceBuildItem(service);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy