code: func MinifyConfig(config *Config) error {
  	if len(config.CurrentContext) == 0 {
  		return errors.New("current-context must exist in order to minify")
  	}
  
  	currContext, exists := config.Contexts[config.CurrentContext]
  	if !exists {
  		return fmt.Errorf("cannot locate context %v", config.CurrentContext)
  	}
  
  	newContexts := map[string]*Context{}
  	newContexts[config.CurrentContext] = currContext
  
  	newClusters := map[string]*Cluster{}
  	if len(currContext.Cluster) > 0 {
  		if _, exists := config.Clusters[currContext.Cluster]; !exists {
  			return fmt.Errorf("cannot locate cluster %v", currContext.Cluster)
  		}
  
  		newClusters[currContext.Cluster] = config.Clusters[currContext.Cluster]
  	}
  
  	newAuthInfos := map[string]*AuthInfo{}
  	if len(currContext.AuthInfo) > 0 {
  		if _, exists := config.AuthInfos[currContext.AuthInfo]; !exists {
  			return fmt.Errorf("cannot locate user %v", currContext.AuthInfo)
  		}
  
  		newAuthInfos[currContext.AuthInfo] = config.AuthInfos[currContext.AuthInfo]
  	}
  
  	config.AuthInfos = newAuthInfos
  	config.Clusters = newClusters
  	config.Contexts = newContexts
  
  	return nil
  }
docs: // MinifyConfig read the current context and uses that to keep only the relevant pieces of config
  // This is useful for making secrets based on kubeconfig files