kube

package
v0.0.0-...-5c79d48 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2024 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const TestImpersonationGroup = "teleport-ci-test-group"

For this test suite to work, the target Kubernetes cluster must have the following RBAC objects configured: https://github.com/gravitational/teleport/blob/master/fixtures/ci-teleport-rbac/ci-teleport.yaml

Variables

This section is empty.

Functions

func ProxyClient

func ProxyClient(cfg ProxyConfig) (*kubernetes.Clientset, *rest.Config, error)

ProxyClient returns kubernetes client using local teleport proxy

Types

type ProxyConfig

type ProxyConfig struct {
	T                   *helpers.TeleInstance
	Username            string
	PinnedIP            string
	KubeUsers           []string
	KubeGroups          []string
	KubeCluster         string
	Impersonation       *rest.ImpersonationConfig
	RouteToCluster      string
	CustomTLSServerName string
	TargetAddress       utils.NetAddr
}

Jump to

Keyboard shortcuts

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