k8s

package
v1.1.13 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetClientSet

func GetClientSet(config *rest.Config) (*kubernetes.Clientset, error)

GetClientSet generates and returns k8s.Clientset using rest.Config

func GetConfig

func GetConfig(kubeConfigPath string, inCluster bool) (*rest.Config, error)

GetConfig gets parameters to generate rest.Config and returns it

func Run

func Run(opts *options.KubePodTerminatorOptions, clientSet kubernetes.Interface, apiServer string)

Run operates the business logic, fetches the terminating and evicted pods and terminates them

Types

This section is empty.

Jump to

Keyboard shortcuts

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