k8scontroller

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewKubernetesNamespace

func NewKubernetesNamespace(ctx context.Context, cli kubernetes.Interface) (nsName string, deleteNS func(ctx context.Context) error, err error)

func RunSlothController

func RunSlothController(ctx context.Context, config Config, ns string, cmdArgs string) (stdout, stderr []byte, err error)

Types

type Config

type Config struct {
	Binary      string
	KubeConfig  string
	KubeContext string
}

func NewConfig

func NewConfig(t *testing.T) Config

NewIntegrationConfig prepares the configuration for integration tests, if the configuration is not ready it will skip the test.

type KubeClients

type KubeClients struct {
	Std        kubernetes.Interface
	Sloth      slothclientset.Interface
	Monitoring monitoringclientset.Interface
}

func NewKubernetesClients

func NewKubernetesClients(ctx context.Context, config Config) (*KubeClients, error)

NewKubernetesClients returns Kubernetes clients.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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