Documentation ¶
Index ¶
- func GetGKEClustersConfig(ctx context.Context, projectID, region string) (*api.Config, rest_errors.RestErr)
- func GetGkekubeConfig(ctx context.Context, projectID, region, clusterName string) (*kubernetes.Clientset, rest_errors.RestErr)
- func ListGKEWorkload(ctx context.Context, projectID, region string) ([]v1.Namespace, rest_errors.RestErr)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetGKEClustersConfig ¶
func GetGKEClustersConfig(ctx context.Context, projectID, region string) (*api.Config, rest_errors.RestErr)
GetGKEClustersConfig func collected from https://bionic.fullstory.com/connect-to-google-kubernetes-with-gcp-credentials-and-pure-golang/ it generates kubeconfig on the fly by calling gke api, then use this config to authenticate to GKE(kubernetes) resources
func GetGkekubeConfig ¶
func GetGkekubeConfig(ctx context.Context, projectID, region, clusterName string) (*kubernetes.Clientset, rest_errors.RestErr)
func ListGKEWorkload ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.