Documentation
¶
Overview ¶
Package version keeps track of the Kubernetes version the client is connected to
Index ¶
Constants ¶
View Source
const ( // MinimalVersionConstraint is the minimal version that Cilium supports to // run kubernetes. MinimalVersionConstraint = "1.21.0" )
Variables ¶
This section is empty.
Functions ¶
func Update ¶
Update retrieves the version of the Kubernetes apiserver and derives the capabilities. This function must be called after connectivity to the apiserver has been established.
Discovery of capabilities only works if the discovery API of the apiserver is functional. If it is not available, a warning is logged and the discovery falls back to probing individual API endpoints.
Types ¶
type ServerCapabilities ¶
type ServerCapabilities struct {
// MinimalVersionMet is true when the minimal version of Kubernetes
// required to run Cilium has been met
MinimalVersionMet bool
}
ServerCapabilities is a list of server capabilities derived based on version, the Kubernetes discovery API, or probing of individual API endpoints.
func Capabilities ¶
func Capabilities() ServerCapabilities
Capabilities returns the capabilities of the Kubernetes apiserver
Click to show internal directories.
Click to hide internal directories.