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

io.quarkus.kubernetes.client.runtime.KubernetesConfigProducer Maven / Gradle / Ivy

There is a newer version: 3.15.0
Show newest version
package io.quarkus.kubernetes.client.runtime;

import java.util.List;

import jakarta.enterprise.inject.Produces;
import jakarta.inject.Singleton;

import io.fabric8.kubernetes.client.Config;
import io.quarkus.arc.All;
import io.quarkus.arc.DefaultBean;
import io.quarkus.kubernetes.client.KubernetesConfigCustomizer;

@Singleton
public class KubernetesConfigProducer {

    @DefaultBean
    @Singleton
    @Produces
    public Config config(KubernetesClientBuildConfig buildConfig,
            @All List customizers) {
        var result = KubernetesClientUtils.createConfig(buildConfig);
        for (KubernetesConfigCustomizer customizer : customizers) {
            customizer.customize(result);
        }
        return result;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy