Specify Kuberentes/OpenShift login data via configuration (XML/properties)
See original GitHub issuePlease fill out the following information to help us in analyzing the issue, but feel free to skip it if you don’t have the information at hand or if it does not apply. Please remove everything which does not apply to the issue. Including this info paragraph 😉
Description
Maven properties cannot be used to configure the targeted OpenShift instance/application. It currently requires to use System Environment variables or System Properties.
The Fabric8-maven-plugin relies exclusively on Fabric8 Kubernetes client which is not taking care of Maven properties.
See https://maven.apache.org/plugin-developers/common-bugs.html#Using_System_Properties for Maven plugin best practice And the implementation currently used as it is delegated completely to another library: https://github.com/fabric8io/kubernetes-client/blob/master/kubernetes-client/src/main/java/io/fabric8/kubernetes/client/utils/Utils.java#L44
Info
- f-m-p version : 3.2 and 3.1.80
- Maven version (
mvn -v
) :
- Kubernetes / OpenShift setup and version : CDK 2.3
- If it’s a bug, how to reproduce :
- If it’s a feature request, what is your use case :
- Sample project : [GitHub Clone URL]
Issue Analytics
- State:
- Created 7 years ago
- Comments:14 (12 by maintainers)
Top GitHub Comments
If you’re still using fabric8’s kubernetes-client, then it provides completely flexible way to configure the client. Check out
ConfigBuilder
.@rhuss : As far as I know, client only supports configuration via ~/.kube/config file, which can be overridden via system property if required.