New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Suppress config warning #2503
Comments
Relates to: #2271 |
@jiningh : Hi, Our library uses SLF4J for logging. It can be configured to send output to a variety of destinations. Were you able to resolve this by tuning SLF4J log levels? If not, maybe we can make this line a kubernetes-client/kubernetes-client/src/main/java/io/fabric8/kubernetes/client/Config.java Line 478 in f1b0511
|
Yes, I filtered log levels to only show errors. Thanks! |
@jiningh : cool, Thanks a lot! |
Hi,
I'm running an app outside of the cluster, everytime I make a config object the following warning happens:
WARN io.fabric8.kubernetes.client.Config - Error reading service account token from: [/var/run/secrets/kubernetes.io/serviceaccount/token]. Ignoring.
Obviously this wouldn't exist outside the cluster. This is my code making the client:
val config: Config = Config.fromKubeconfig("kubectl file contents"); val client: KubernetesClient = DefaultKubernetesClient(config)
I have to remake the config object everytime there is a k8s call since EKS has expiring tokens and I haven't found a better way to programatically configure it.
Everything works, it's just really annoying. Is there a way to suppress this warning?
The text was updated successfully, but these errors were encountered: