Documentation ¶
Overview ¶
Package cluster contains logic related to talking to a GKE cluster.
Index ¶
- func ApplyConfigFromString(ctx context.Context, configString, namespace string, ...) error
- func AuthorizeAccess(ctx context.Context, clusterName, clusterLocation, clusterProject string, ...) error
- func DeployedObjectExists(ctx context.Context, kind, name, namespace string, ks services.KubectlService) (bool, error)
- func GetDeployedObject(ctx context.Context, kind, name, namespace string, ks services.KubectlService) (*resource.Object, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyConfigFromString ¶
func ApplyConfigFromString(ctx context.Context, configString, namespace string, ks services.KubectlService) error
ApplyConfigFromString applies a config string to the current context's cluster.
func AuthorizeAccess ¶
func AuthorizeAccess(ctx context.Context, clusterName, clusterLocation, clusterProject string, useGcloud bool, gs services.GcloudService) error
AuthorizeAccess authorizes kubectl to the cluster. In doing so, this also verifies the cluster exists.
func DeployedObjectExists ¶
func DeployedObjectExists(ctx context.Context, kind, name, namespace string, ks services.KubectlService) (bool, error)
DeployedObjectExists returns true if a deployed object exists in the current context's cluster, else false.
func GetDeployedObject ¶
func GetDeployedObject(ctx context.Context, kind, name, namespace string, ks services.KubectlService) (*resource.Object, error)
GetDeployedObject gets an object deployed to the current context's cluster.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.