utils

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: Apache-2.0 Imports: 9 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DepthLogging added in v0.2.0

func DepthLogging(err error, logType, msg string, obj interface{}, keysAndValues ...interface{})

DepthLogging uses depth to determine which call frame to log.

func LoadsKubeConfig

func LoadsKubeConfig(configFile string) (*rest.Config, error)

LoadsKubeConfig tries to load kubeconfig from specified config file or in-cluster config

func NewBasicKubeConfig

func NewBasicKubeConfig(serverURL, clusterName, userName string, caCert []byte) *clientcmdapi.Config

NewBasicKubeConfig creates a basic KubeConfig object

func NewKubeConfigWithCertificates

func NewKubeConfigWithCertificates(serverURL string, caCert, certificateData, keyData []byte) *clientcmdapi.Config

NewKubeConfigWithCertificates creates a KubeConfig object with access to the API server using tls certificates

func NewKubeConfigWithToken

func NewKubeConfigWithToken(serverURL, token string, caCert []byte) *clientcmdapi.Config

NewKubeConfigWithToken creates a KubeConfig object with access to the API server using a token

func NewLeaseLock

func NewLeaseLock(leaseName, leaseNamespace, identity string, client coordinationv1client.LeasesGetter) rl.Interface

NewLeaseLock creates a LeaseLock

Types

This section is empty.

Jump to

Keyboard shortcuts

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