question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Specify Kuberentes/OpenShift login data via configuration (XML/properties)

See original GitHub issue

Please 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:closed
  • Created 7 years ago
  • Comments:14 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
jimmidysoncommented, Oct 6, 2018

If you’re still using fabric8’s kubernetes-client, then it provides completely flexible way to configure the client. Check out ConfigBuilder.

0reactions
rohanKanojiacommented, Oct 6, 2018

@rhuss : As far as I know, client only supports configuration via ~/.kube/config file, which can be overridden via system property if required.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Creating and using config maps - Working with pods | Nodes
The ConfigMap object provides mechanisms to inject containers with configuration data while keeping containers agnostic of OpenShift Container Platform.
Read more >
Chapter 3. Logging in to the cluster OpenShift Container ...
The kubeconfig file contains information about the cluster that is used by the CLI to connect a client to the correct cluster and...
Read more >
Networking OpenShift Container Platform 4.10
The fields for this object specify the kube-proxy configuration. If you are using the OVN-Kubernetes cluster network provider, the kube-proxy configuration ...
Read more >
Chapter 3. Managing CLI Profiles - Red Hat Customer Portal
A CLI configuration file allows you to configure different profiles, or contexts, for use with the OpenShift CLI. A context consists of user...
Read more >
Authentication and authorization OpenShift Container Platform ...
An administrator can configure authentication through the following tasks: ... Viewing the details of a user-owned OAuth access token.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found