remoteclient

package
v0.0.0-...-b8c384c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 1, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

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 GetGcloudAccessToken

func GetGcloudAccessToken(ctx context.Context) (*oauth2.Token, error)

func GetRemoteClient

func GetRemoteClient(ctx context.Context, c client.Client, ref *api.ClusterRef, ns string) (*rest.Config, error)

func HasGcloud

func HasGcloud() (bool, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL