k8sutils

package
v0.0.0-...-fe9d0f6 Latest Latest
Warning

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

Go to latest
Published: May 17, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultNamespace = "default"

DefaultNamespace is the fallback namespace

View Source
const ServiceAccountNamespaceFile = "/var/run/secrets/kubernetes.io/serviceaccount/namespace"

ServiceAccountNamespaceFile is the default service account namespace file path

Variables

This section is empty.

Functions

func GetNamespace

func GetNamespace() (string, error)

GetNamespace returns the current namespace on which the server is running

Types

type TLSInfo

type TLSInfo struct {
	CertFilePath string
	KeyFilePath  string
	// contains filtered or unexported fields
}

TLSInfo holds the certs and key data

func (*TLSInfo) Clean

func (ti *TLSInfo) Clean()

Clean removes all data managed by this TLSInfo instance

func (*TLSInfo) IsEnabled

func (ti *TLSInfo) IsEnabled() bool

IsEnabled tells if TLS is enabled

func (*TLSInfo) UpdateFromK8S

func (ti *TLSInfo) UpdateFromK8S() error

UpdateFromK8S fetches all the relevant config from K8S

Jump to

Keyboard shortcuts

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