prow/kube/cluster.go
func GetProwJobClient(masterURL, kubeConfig string) (prowjobclientset.Interface, error) {
	config, err := loadClusterConfig(masterURL, kubeConfig)
	if err != nil {
		return nil, err
	}

	prowjobClient, err := prowjobclientset.NewForConfig(config)
	if err != nil {
		return nil, err
	}

	logrus.Info("Successfully constructed k8s client")
	return prowjobClient, nil
}
func GetProwJobClient(masterURL, kubeConfig string) (prowjobclientset.Interface, error) {
	config, err := loadClusterConfig(masterURL, kubeConfig)
	if err != nil {
		return nil, err
	}

	prowjobClient, err := prowjobclientset.NewForConfig(config)
	if err != nil {
		return nil, err
	}

	logrus.Info("Successfully constructed k8s client")
	return prowjobClient, nil
}
// GetKubernetesClient retrieves the Kubernetes cluster
// client from within the cluster