k8sutil

package
v0.0.1-alpha.13 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	DEFAULT_K8S_CLIENT_QPS   = 100
	DEFAULT_K8S_CLIENT_BURST = 100
)

Variables

View Source
var KubernetesConfigFlags *genericclioptions.ConfigFlags

Functions

func AddFlags

func AddFlags(flags *flag.FlagSet)

func GetClientset

func GetClientset() (*kubernetes.Clientset, error)

func GetClusterConfig

func GetClusterConfig() (*rest.Config, error)

func GetK8sVersion

func GetK8sVersion() (string, error)

func IsReplicatedClusterScoped

func IsReplicatedClusterScoped(ctx context.Context, clientset kubernetes.Interface, namespace string) bool

IsReplicatedClusterScoped will check if replicated has cluster scope access or not

Types

This section is empty.

Jump to

Keyboard shortcuts

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