<p>I am trying to connect to a <code>kubernetes</code> client using <code>golang</code> and I saw this code:</p>

<pre><code>var config, conferr = clientcmd.BuildConfigFromFlags("", kube_config_path)
var clientset, cler = kubernetes.NewForConfig(config)  
</code></pre>

<p>What do <code>conferr</code> and <code>cler</code> give?            </p>

<p>From the <a href="https://godoc.org/k8s.io/client-go/tools/clientcmd" rel="nofollow noreferrer">doc</a>, both function return error object as the 2nd return value.</p>
<blockquote>
<p>func BuildConfigFromFlags(masterUrl, kubeconfigPath string) (*restclient.Config, error)</p>
<p>func NewForConfig(c *rest.Config) (*Clientset, error)</p>
</blockquote>
<p>So I believe the <code>conferr</code> there refer to the conf error. And <code>cler</code> refer to client error.</p>
<p>Both are <code>error</code> object.</p>
