cluster

package
v0.0.0-...-f0247fa Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package cluster contains logic related to talking to a GKE cluster.

Index

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.

Jump to

Keyboard shortcuts

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