clienthelper

package
v0.7.0-beta.0 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2022 License: Apache-2.0 Imports: 17 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultScheme = runtime.NewScheme()
)

Functions

func ConvertExtra

func ConvertExtra(orig map[string][]string) map[string]authv1.ExtraValue

ConvertExtra converts a string array map into the correct kubernetes auth extra value type

func ConvertExtraFrom

func ConvertExtraFrom(orig map[string]authenticationv1.ExtraValue) map[string][]string

ConvertExtraFrom converts a string array map into the correct kubernetes auth extra value type

func CurrentNamespace

func CurrentNamespace() (string, error)

func CurrentPodName added in v0.3.0

func CurrentPodName() (string, error)

func GVKFrom

func GVKFrom(obj runtime.Object, scheme *runtime.Scheme) (schema.GroupVersionKind, error)

func GetByIndex

func GetByIndex(ctx context.Context, c client.Client, obj runtime.Object, index, value string) error

func NewImpersonatingClient added in v0.3.0

func NewImpersonatingClient(config *rest.Config, mapper meta.RESTMapper, user user.Info, scheme *runtime.Scheme) (client.Client, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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