Documentation ¶
Overview ¶
based on https://gist.github.com/ahmetb/548059cdbf12fb571e4e2f1e29c48997
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewExternalClient ¶
func NewExternalClient(ctx context.Context, project, clusterName string) (kubernetes.Interface, client.Client, error)
NewExternalClient will return a ClientSet along with a REST client for the given management cluster, it expect that given cluster to be present in exactly one GCP location
Types ¶
type ClientSetBuilder ¶
type ClientSetBuilder interface {
NewClientSet(cluster *cnrm.PartialContainerCluster) (kubernetes.Interface, error)
}
type GKEClientSetBuilder ¶
type GKEClientSetBuilder struct{}
func NewClientSetBuilder ¶
func NewClientSetBuilder() (*GKEClientSetBuilder, error)
func (GKEClientSetBuilder) NewClientSet ¶
func (GKEClientSetBuilder) NewClientSet(cluster *cnrm.PartialContainerCluster) (kubernetes.Interface, error)
Click to show internal directories.
Click to hide internal directories.