Documentation
¶
Index ¶
- func GetCCRESTConfig(ctx context.Context, cluster *unstructured.Unstructured) (*rest.Config, error)
- func GetGKERESTConfig(ctx context.Context, cluster *unstructured.Unstructured) (*rest.Config, error)
- func GetGcloudAccessToken(ctx context.Context) (*oauth2.Token, error)
- func GetRemoteClient(ctx context.Context, c client.Client, ref *api.ClusterRef, ns string) (*rest.Config, error)
- func HasGcloud() (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCCRESTConfig ¶
func GetCCRESTConfig(ctx context.Context, cluster *unstructured.Unstructured) (*rest.Config, error)
GetCCRESTConfig builds a rest.Config for accessing the config controller cluster, this is a tmp workaround.
func GetGKERESTConfig ¶
func GetGKERESTConfig(ctx context.Context, cluster *unstructured.Unstructured) (*rest.Config, error)
GetGKERESTConfig builds a rest.Config for accessing the specified cluster, without assuming that kubeconfig is correctly configured / mapped.
func GetRemoteClient ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.