-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add the ability to customize k8s client config
This gives users the ability to alter the configuration provided by Quarkus in arbitrary ways The pattern implemented is exactly the same as the one used in other extensions Relates to: #31395
- Loading branch information
Showing
2 changed files
with
33 additions
and
2 deletions.
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
...untime/src/main/java/io/quarkus/kubernetes/client/runtime/KubernetesConfigCustomizer.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package io.quarkus.kubernetes.client.runtime; | ||
|
||
import java.util.List; | ||
|
||
import io.fabric8.kubernetes.client.Config; | ||
import io.fabric8.kubernetes.client.KubernetesClient; | ||
import io.quarkus.runtime.TlsConfig; | ||
|
||
/** | ||
* Meant to be implemented by a CDI bean that provided arbitrary customization for the default {@link Config} created by | ||
* Quarkus. | ||
* <p> | ||
* The {@link Config} is in turn used to produce the default {@link KubernetesClient} | ||
* <p> | ||
* | ||
* @see KubernetesConfigProducer#config(KubernetesClientBuildConfig, TlsConfig, List) } | ||
* @see KubernetesClientProducer#kubernetesClient(Config) } | ||
*/ | ||
public interface KubernetesConfigCustomizer { | ||
|
||
void customize(Config config); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters