k8sutils

package
v2.10.0 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateKubeClientSet

func CreateKubeClientSet(kubeconfig string) (*kubernetes.Clientset, error)

CreateKubeClientSet - Returns kubeclient set

func GetStats

func GetStats(ctx context.Context, volumePath string) (int64, int64, int64, int64, int64, int64, error)

GetStats - Returns the stats for the volume mounted on given volume path

func LeaderElection

func LeaderElection(clientset *kubernetes.Clientset, lockName string, namespace string,
	leaderElectionRenewDeadline, leaderElectionLeaseDuration, leaderElectionRetryPeriod time.Duration, runFunc func(ctx context.Context),
)

LeaderElection - Initialize leader election

Types

This section is empty.

Jump to

Keyboard shortcuts

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