featuregates

package
v1.15.2 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AgentMode        = "agent"
	AgentWindowsMode = "agent-windows"
	ControllerMode   = "controller"
)

Variables

This section is empty.

Functions

func HandleFunc

func HandleFunc(k8sclient clientset.Interface) http.HandlerFunc

HandleFunc returns the function which can handle queries issued by 'antctl get featuregates' command. The handler function populates Antrea featuregates information to the response.

Types

type Config

type Config struct {
	// FeatureGates is a map of feature names to bools that enable or disable experimental features.
	FeatureGates map[string]bool `yaml:"featureGates,omitempty"`
}

type Response

type Response struct {
	Component string `json:"component,omitempty"`
	Name      string `json:"name,omitempty"`
	Status    string `json:"status,omitempty"`
	Version   string `json:"version,omitempty"`
}

Jump to

Keyboard shortcuts

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