code: func CreateWithCerts(serverURL, clusterName, userName string, caCert []byte, clientKey []byte, clientCert []byte) *clientcmdapi.Config {
  	config := CreateBasic(serverURL, clusterName, userName, caCert)
  	config.AuthInfos[userName] = &clientcmdapi.AuthInfo{
  		ClientKeyData:         clientKey,
  		ClientCertificateData: clientCert,
  	}
  	return config
  }
docs: // CreateWithCerts creates a KubeConfig object with access to the API server with client certificates