func (f ClientFactory) FromSecret(ctx context.Context, secretID string) (kubernetes.Interface, error) {
	config, err := f.configFactory.FromSecret(ctx, secretID)
	if err != nil {
		return nil, err
	}
	return k8sclient.NewClientFromConfig(config)
}
FromSecret creates a Kubernetes client for a cluster from a secret.
package kubernetes
import (
	"context"
	"k8s.io/client-go/dynamic"
	"k8s.io/client-go/kubernetes"
	"sigs.k8s.io/controller-runtime/pkg/client"
	"github.com/banzaicloud/pipeline/pkg/k8sclient"
	k8s "github.com/banzaicloud/pipeline/pkg/kubernetes"
)
type ClientFactory struct {
	configFactory ConfigFactory
}
func NewClientFactory(configFactory ConfigFactory) ClientFactory {
	return ClientFactory{
		configFactory: configFactory,
	}
}