kube

package
v0.0.0-...-efd12d5 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AksCsiDrivers

func AksCsiDrivers(ctx context.Context, config *Config) ([]validate.Result, error)

func Connections

func Connections(ctx context.Context, config *Config) ([]validate.Result, error)

Connections will validate that Sourcegraph services can reach each other over the network.

func CurrentContextSetTo

func CurrentContextSetTo(clusterService string) error

func EksEbsCsiDrivers

func EksEbsCsiDrivers(ctx context.Context, config *Config) ([]validate.Result, error)

func EksVpc

func EksVpc(ctx context.Context, config *Config) ([]validate.Result, error)

func GetCurrentContext

func GetCurrentContext() (string, error)

func GkeGcePersistentDiskCSIDrivers

func GkeGcePersistentDiskCSIDrivers(ctx context.Context, config *Config) ([]validate.Result, error)

func PVCs

func PVCs(ctx context.Context, config *Config) ([]validate.Result, error)

PVCs will validate all persistent volume claims on a given namespace

func Pods

func Pods(ctx context.Context, config *Config) ([]validate.Result, error)

Pods will validate all pods in a given namespace.

func Services

func Services(ctx context.Context, config *Config) ([]validate.Result, error)

Services will validate all services in a given namespace.

func Validate

func Validate(ctx context.Context, clientSet *kubernetes.Clientset, restConfig *rest.Config, opts ...Option) error

Validate will call a series of validation functions in a table driven tests style.

Types

type ClusterInfo

type ClusterInfo struct {
	ServiceType string
	ProjectId   string
	Region      string
	ClusterName string
}

type Config

type Config struct {
	// contains filtered or unexported fields
}

type EbsTestObjects

type EbsTestObjects struct {
	// contains filtered or unexported fields
}

type Option

type Option = func(config *Config)

func Aks

func Aks() Option

func GenerateAWSClients

func GenerateAWSClients(ctx context.Context) Option

func Gke

func Gke() Option

func Quiet

func Quiet() Option

func WithNamespace

func WithNamespace(namespace string) Option

type RolePolicy

type RolePolicy struct {
	PolicyName *string
	PolicyArn  *string
}

Jump to

Keyboard shortcuts

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