Skip to content

Create A Default Client In Spring Autoconfiguration #1946

@ryanjbaxter

Description

@ryanjbaxter

Currently if an ApiClient cannot be created when Spring AutoConfiguration is run the application will fail to start. This is common when running an app with client-java-spring-integration on the classpath but maybe starting the app outside of Kubernetes. In Spring Cloud Kubernetes we have done something like this.
https://github.com/spring-cloud/spring-cloud-kubernetes/blob/main/spring-cloud-kubernetes-client-autoconfig/src/main/java/org/springframework/cloud/kubernetes/client/KubernetesClientUtils.java#L34

I wonder if we could maybe do the same thing in the auto configuration classes in the Kuberentes Java Client?

Metadata

Metadata

Assignees

Labels

lifecycle/staleDenotes an issue or PR has remained open with no activity and has become stale.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions