openshift/openshift-copies.go
func (config *directClientConfig) getCluster() clientcmdCluster {
	clusterInfos := config.config.Clusters
	clusterInfoName := config.getClusterName()

	var mergedClusterInfo clientcmdCluster
	mergo.Merge(&mergedClusterInfo, defaultCluster)
	mergo.Merge(&mergedClusterInfo, envVarCluster)
	if configClusterInfo, exists := clusterInfos[clusterInfoName]; exists {
		mergo.Merge(&mergedClusterInfo, configClusterInfo)
	}
	// REMOVED: overrides support

	return mergedClusterInfo
}
func (config *directClientConfig) getCluster() clientcmdCluster {
	clusterInfos := config.config.Clusters
	clusterInfoName := config.getClusterName()

	var mergedClusterInfo clientcmdCluster
	mergo.Merge(&mergedClusterInfo, defaultCluster)
	mergo.Merge(&mergedClusterInfo, envVarCluster)
	if configClusterInfo, exists := clusterInfos[clusterInfoName]; exists {
		mergo.Merge(&mergedClusterInfo, configClusterInfo)
	}
	// REMOVED: overrides support

	return mergedClusterInfo
}
func ( config * directClientConfig ) getCluster ( ) clientcmdCluster { clusterInfos := config . config . Clusters clusterInfoName := config . getClusterName ( ) var mergedClusterInfo clientcmdCluster mergo . Merge ( & mergedClusterInfo , defaultCluster ) mergo . Merge ( & mergedClusterInfo , envVarCluster ) if configClusterInfo , exists := clusterInfos [ clusterInfoName ] ; exists { mergo . Merge ( & mergedClusterInfo , configClusterInfo ) } // REMOVED: overrides support return mergedClusterInfo }
// getCluster is a modified copy of k8s.io/kubernetes/pkg/client/unversioned/clientcmd.DirectClientConfig.getCluster.
getCluster is a modified copy of k8s . io / kubernetes / pkg / client / unversioned / clientcmd . DirectClientConfig . getCluster .