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

org.zodiac.autoconfigure.kubernetes.istio.IstioAutoConfiguration Maven / Gradle / Ivy

There is a newer version: 1.6.8
Show newest version
package org.zodiac.autoconfigure.kubernetes.istio;

import org.springframework.boot.SpringBootConfiguration;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Bean;

@SpringBootConfiguration
@ConditionalOnClass(value = {io.fabric8.kubernetes.client.Config.class, me.snowdrop.istio.client.IstioClient.class})
@ConditionalOnProperty(value = org.zodic.kubernetes.base.constants.KubernetesSystemPropertiesConstants.SPRING_ISTIO_ENABLED, havingValue = "true")
public class IstioAutoConfiguration {

    @Bean
    @ConditionalOnMissingBean
    protected me.snowdrop.istio.client.IstioClient istioClient(io.fabric8.kubernetes.client.Config config) {
        return new me.snowdrop.istio.client.DefaultIstioClient(config);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy