util

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCurrentNS

func GetCurrentNS() (string, error)

GetCurrentNS fetch namespace the current pod running in. reference to client-go (config *inClusterClientConfig) Namespace() (string, bool, error).

func GetCurrentNSOrDefault

func GetCurrentNSOrDefault() string

func NewForConfig

func NewForConfig(config *rest.Config) (client.Client, error)

NewForConfig creates a new client for the given config.

func NewSchema

func NewSchema() *runtime.Scheme

NewSchema returns a singleton schema set which aggregated Kubernetes's schemes and extended schemes.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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