k8s

package module
v0.0.0-...-bc71568 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2021 License: Apache-2.0 Imports: 14 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Debug = false

Functions

func Is404

func Is404(err error) bool

Types

type K8S

type K8S struct {
	Mesh       *mesh.KRun
	Client     *kubernetes.Clientset
	VendorInit func(context.Context, *K8S) error
}

func (*K8S) GetCM

func (kr *K8S) GetCM(ctx context.Context, ns string, name string) (map[string]string, error)

func (*K8S) GetSecret

func (kr *K8S) GetSecret(ctx context.Context, ns string, name string) (map[string][]byte, error)

func (*K8S) GetToken

func (kr *K8S) GetToken(ctx context.Context, aud string) (string, error)

GetToken returns a token with the given audience for the current KSA, using CreateToken request. Used by the STS token exchanger.

func (*K8S) K8SClient

func (kr *K8S) K8SClient(ctx context.Context) error

K8SClient will discover a K8S config cluster and return the client

Jump to

Keyboard shortcuts

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