util

package
v1.0.0-beta.36 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	RootSyncNamespace = "config-management-system"
)

Variables

This section is empty.

Functions

func NewFactory

func NewFactory(cmd *cobra.Command, version string) cluster.Factory

func UpdateQPS

func UpdateQPS(flags *genericclioptions.ConfigFlags)

UpdateQPS modifies a genericclioptions.ConfigFlags to update the client-side throttling QPS and Burst QPS (including for discovery).

If Flow Control is enabled on the apiserver, client-side throttling is disabled!

If Flow Control is disabled or undetected on the apiserver, client-side throttling QPS will be increased to at least 30 (burst: 60).

Flow Control is enabled by default on Kubernetes v1.20+. https://kubernetes.io/docs/concepts/cluster-administration/flow-control/

Types

This section is empty.

Jump to

Keyboard shortcuts

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