Closed kalvarez2 closed 6 years ago
Hi @kalvarez2!
Thanks for the feedback.
You have to exclude KubernetesAutoConfiguration
in your application.
See the Spring Cloud Data Flow Server for an example:
@SpringBootApplication(exclude = KubernetesAutoConfiguration.class)
@EnableDataFlowServer
public class OpenShiftDataFlowServer {
public static void main(String[] args) {
SpringApplication.run(OpenShiftDataFlowServer.class, args);
}
}
Thanks! that solves it. Interestingly, even after excluding it was showing up duplicate, because I had a @EnableAutoConfiguration like this:
@SpringBootApplication(exclude = KubernetesAutoConfiguration.class)
@EnableAutoConfiguration
public class MyApplication {
public static void main(String[] args) {
SpringApplication.run(MyApplication.class, args);
}
}
thanks again!
If you use @SpringBootApplication
it already uses @EnableAutoConfiguration
. Using it again causes conflicts. See https://docs.spring.io/spring-boot/docs/current/reference/html/using-boot-using-springbootapplication-annotation.html
I really have no idea why I had it there...
Tried to use as a dependency in my project. Just added a REST controller to expose the AppDeployer API as REST entry points, when the application boots I get :
I am using version 1.3.0.BUILD-SNAPSHOT:
and my parent pom points to: