func RecoverExtractCredentials(podname, ns, fqname, id string, method JobMethod, targets []string, rt int) error {
	defer runtime.Provider.DestroySandbox(podname, ns, targets, clusterConfig.Namespace, clusterConfig.KeepNamespace, clusterConfig.KeepNamespaceOnError)
	credBytes, err := runtime.Provider.ExtractCredentials(podname, ns, rt)
	if err != nil {
		log.Errorf("bundle unable to extract credentials - %v", err)
		return err
	}
	creds, err := buildExtractedCredentials(credBytes)
	if err != nil {
		log.Errorf("bundle unable to build extracted credentials - %v", err)
		return err
	}
	labels := map[string]string{"apbAction": string(method), "apbName": fqname}
	err = runtime.Provider.CreateExtractedCredential(id, clusterConfig.Namespace, creds.Credentials, labels)
	if err != nil {
		log.Errorf("Bundle unable to save extracted credentials - %v", err)
		return err
	}
	return nil
}
RecoverExtractCredentials - Recover extracted credentials.
package bundle
import (
	"fmt"
	"github.com/automationbroker/bundle-lib/runtime"
	log "github.com/sirupsen/logrus"
)
const (
	GatherCredentialsCommand = "broker-bind-creds"
)
var (
	ErrExtractedCredentialsNotFound = fmt.Errorf("credentials not found")
)