featuregates

package
v1.13.4 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

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. For now, it will return all feature gates included in features.DefaultAntreaFeatureGates for agent We need to exclude any new feature gates which is not consumed by agent in the future.

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