func NewDynamicFileClientFactory(configFactory ConfigFactory) DynamicFileClientFactory {
	return DynamicFileClientFactory{
		configFactory: configFactory,
	}
}
NewDynamicFileClientFactory returns a new DynamicFileClientFactory.
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,
	}
}
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)
}
type DynamicClientFactory struct {
	configFactory ConfigFactory
}
func NewDynamicClientFactory(configFactory ConfigFactory) DynamicClientFactory {
	return DynamicClientFactory{
		configFactory: configFactory,
	}
}
func (f DynamicClientFactory) FromSecret(ctx context.Context, secretID string) (dynamic.Interface, error) {
	config, err := f.configFactory.FromSecret(ctx, secretID)
	if err != nil {
		return nil, err
	}
	return dynamic.NewForConfig(config)
}
type DynamicFileClientFactory struct {
	configFactory ConfigFactory
}