func NewForConfig(c *rest.Config) (*Clientset, error) {
	configShallowCopy := *c
	if configShallowCopy.RateLimiter == nil && configShallowCopy.QPS > 0 {
		if configShallowCopy.Burst <= 0 {
			return nil, fmt.Errorf("Burst is required to be greater than 0 when RateLimiter is not set and QPS is set to greater than 0")
		}
		configShallowCopy.RateLimiter = flowcontrol.NewTokenBucketRateLimiter(configShallowCopy.QPS, configShallowCopy.Burst)
	}
	var cs Clientset
	var err error
	cs.tikvV1alpha1, err = tikvv1alpha1.NewForConfig(&configShallowCopy)
	if err != nil {
		return nil, err
	}
	cs.DiscoveryClient, err = discovery.NewDiscoveryClientForConfig(&configShallowCopy)
	if err != nil {
		return nil, err
	}
	return &cs, nil
}
NewForConfig creates a new Clientset for the given config.
If config's RateLimiter is not set and QPS and Burst are acceptable,
NewForConfig will generate a rate-limiter in configShallowCopy.
package versioned
import (
	"fmt"
	tikvv1alpha1 "github.com/tikv/tikv-operator/pkg/client/clientset/versioned/typed/tikv/v1alpha1"
	discovery "k8s.io/client-go/discovery"
	rest "k8s.io/client-go/rest"
	flowcontrol "k8s.io/client-go/util/flowcontrol"
)
type Interface interface {
	Discovery() discovery.DiscoveryInterface
	TikvV1alpha1() tikvv1alpha1.TikvV1alpha1Interface
}
type Clientset struct {
	*discovery.DiscoveryClient
	tikvV1alpha1 *tikvv1alpha1.TikvV1alpha1Client
}
func (c *Clientset) TikvV1alpha1() tikvv1alpha1.TikvV1alpha1Interface {
	return c.tikvV1alpha1
}
func (c *Clientset) Discovery() discovery.DiscoveryInterface {
	if c == nil {
		return nil
	}
	return c.DiscoveryClient
}