func NewForConfig(c *rest.Config) (*Clientset, error) {
	configShallowCopy := *c
	if configShallowCopy.RateLimiter == nil && configShallowCopy.QPS > 0 {
		configShallowCopy.RateLimiter = flowcontrol.NewTokenBucketRateLimiter(configShallowCopy.QPS, configShallowCopy.Burst)
	}
	var cs Clientset
	var err error
	cs.demoV1alpha1, err = demov1alpha1.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.
package versioned
import (
	demov1alpha1 "github.com/hrishin/podset-operator/pkg/client/clientset/versioned/typed/demo/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
	DemoV1alpha1() demov1alpha1.DemoV1alpha1Interface
}
type Clientset struct {
	*discovery.DiscoveryClient
	demoV1alpha1 *demov1alpha1.DemoV1alpha1Client
}
func (c *Clientset) DemoV1alpha1() demov1alpha1.DemoV1alpha1Interface {
	return c.demoV1alpha1
}
func (c *Clientset) Discovery() discovery.DiscoveryInterface {
	if c == nil {
		return nil
	}
	return c.DiscoveryClient
}