gke

package
v0.0.59 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MonitoredResource added in v0.0.20

func MonitoredResource(l *logging.Client, project, clusterName, namespace, pod, containerName string) *monitoredres.MonitoredResource

func MonitoredResourceFromMetaData added in v0.0.40

func MonitoredResourceFromMetaData(metadata *GKEMetaData) *monitoredres.MonitoredResource

func StreamContainerLog

func StreamContainerLog(namespace string, pod *core.Pod, containerName string, streams genericclioptions.IOStreams) error

StreamContainerLog streams log for that one container to Stdout and Stderr.

func TraceResourceFromMetaData added in v0.0.40

func TraceResourceFromMetaData(serviceName string, metadata *GKEMetaData) *resource.Resource

Types

type GKEMetaData added in v0.0.40

type GKEMetaData struct {
	ClusterLocation  string
	ClusterName      string
	ContainerName    string
	Namespace        string
	InstanceName     string
	InstanceID       int64
	NumericProjectID int64
	PodName          string
	ProjectID        string
	Zone             string
}

func GetMetaData added in v0.0.40

func GetMetaData() (*GKEMetaData, error)

type KubeContext

type KubeContext string

KubeContext the name of Clusters in ~./kube/config

func AddAuthForCluster

func AddAuthForCluster(config api.Config, project, location, clusterName string) (KubeContext, error)

AddAuthForCluster adds credentials for a Cluster to ~./kube/config. Currently uses gcloud since it quite involved to do this in pure Go.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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