kube

package
v1.2.3-fred.2 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2022 License: Apache-2.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
	KubeUsers           []string
	KubeGroups          []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