'How to get the current context name using Kubernetes client

I'm trying to access the current cluster name by getting the current context name. So I wanted to know how to get the current context name using client provided by: "sigs.k8s.io/controller-runtime/pkg/client"



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source