Documentation ¶
Index ¶
- func APIReader() client.Reader
- func Client() client.Client
- func Clientset() kubernetes.Interface
- func Cluster() cluster.Cluster
- func GetKubeClientFromRestConfig(cfg *rest.Config) (client.Client, error)
- func NewAPIClient(c client.Client, r client.Reader) client.Client
- func NewClientFromAPIConfig(cfg *api.Config) (client.Client, error)
- func NewClientSet() (*kubernetes.Clientset, error)
- func NewClientsetFromAPIConfig(cfg *api.Config) (kubernetes.Interface, error)
- func NewDiscoveryClient() (*discovery.DiscoveryClient, error)
- func NewDynamicClient() (dynamic.Interface, error)
- func NewIstioV1Alpha3Client() (*v1alpha3.NetworkingV1alpha3Client, error)
- func NewMetricsClient() (*v1beta1.MetricsV1beta1Client, error)
- func RESTConfig() *rest.Config
- func RESTConfigFromAPIConfig(cfg *api.Config) (*rest.Config, error)
- func Scheme() *runtime.Scheme
- func Start(ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Clientset ¶
func Clientset() kubernetes.Interface
Clientset is a singleton, it will be initialized only once.
func GetKubeClientFromRestConfig ¶ added in v1.9.9
func NewAPIClient ¶ added in v1.2.0
func NewClientSet ¶ added in v1.9.9
func NewClientSet() (*kubernetes.Clientset, error)
func NewClientsetFromAPIConfig ¶
func NewClientsetFromAPIConfig(cfg *api.Config) (kubernetes.Interface, error)
func NewDiscoveryClient ¶ added in v1.9.9
func NewDiscoveryClient() (*discovery.DiscoveryClient, error)
func NewDynamicClient ¶ added in v1.9.9
func NewIstioV1Alpha3Client ¶ added in v1.9.9
func NewIstioV1Alpha3Client() (*v1alpha3.NetworkingV1alpha3Client, error)
func NewMetricsClient ¶ added in v1.9.9
func NewMetricsClient() (*v1beta1.MetricsV1beta1Client, error)
func RESTConfig ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.