flowcontrol

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2024 License: Apache-2.0 Imports: 5 Imported by: 2

Documentation

Overview

flowcontrol package implement a call to a well known endpoint of a Kubernetes api-server for extracting information about the availability of server side flow control. If we find the relevant headers in the response the user then can decide to change their throttling strategy from client to server side.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsEnabled

func IsEnabled(ctx context.Context, config *rest.Config) (bool, error)

IsEnabled return if the flowcontrol APIs are enabled on the target cluster. It will perform a HEAD request against a wellKnownPath endpoint and check if the flowcontrolapi.ResponseHeaderMatchedFlowSchemaUID header is present.

Types

This section is empty.

Jump to

Keyboard shortcuts

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