func NewConfigFactory(secrets ConfigSecretStore) DefaultConfigFactory {
	return DefaultConfigFactory{
		secrets: secrets,
	}
}
NewConfigFactory returns a new ConfigFactory.
package kubernetes
import (
	"context"
	"encoding/base64"
	"emperror.dev/errors"
	"k8s.io/client-go/rest"
	"github.com/banzaicloud/pipeline/internal/secret/secrettype"
	"github.com/banzaicloud/pipeline/pkg/k8sclient"
)
type ConfigFactory interface {
	FromSecret(ctx context.Context, secretID string) (*rest.Config, error)
}
type DefaultConfigFactory struct {
	secrets ConfigSecretStore
}
type ConfigSecretStore interface {
	GetSecretValues(ctx context.Context, secretID string) (map[string]string, error)
}