Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // MinK8sVersion is the minimum version of Kubernetes that the operator supports. MinK8sVersion = semver.Version{Major: 1, Minor: 19, Patch: 0} // MinEndpointSliceVersion is the minimum version of Kubernetes that supports EndpointSlice. MinEndpointSliceVersion = semver.Version{Major: 1, Minor: 21, Patch: 0} // MinK8sVersionForGatewayAPI is the minimum version of Kubernetes that supports Gateway API. MinK8sVersionForGatewayAPI = MinEndpointSliceVersion )
View Source
var BuildDate string
BuildDate is the date when the binary was built
View Source
var GitCommit string
GitCommit is the commit hash when the binary was built
View Source
var ( // ServerVersion is the version of the Kubernetes cluster the operator is running in. ServerVersion = semver.Version{Major: 0, Minor: 0, Patch: 0} )
View Source
var Version string
Version is the version of the compiled software
Functions ¶
func IsEndpointSliceEnabled ¶
func IsEndpointSliceEnabled(kubeClient kubernetes.Interface) bool
IsEndpointSliceEnabled returns true if EndpointSlice is enabled in the Kubernetes cluster.
func IsSupportedK8sVersion ¶
func IsSupportedK8sVersion(kubeClient kubernetes.Interface) bool
IsSupportedK8sVersion returns true if the Kubernetes cluster version is supported by the operator.
func IsSupportedK8sVersionForGatewayAPI ¶
func IsSupportedK8sVersionForGatewayAPI(kubeClient kubernetes.Interface) bool
IsSupportedK8sVersionForGatewayAPI returns true if the Kubernetes cluster version is supported by the operator.
Types ¶
type Info ¶
type Info struct { // Version is the version of the FSM Controller. Version string `json:"version,omitempty"` // GitCommit is the git commit hash of the FSM Controller. GitCommit string `json:"git_commit,omitempty"` // BuildDate is the build date of the FSM Controller. BuildDate string `json:"build_date,omitempty"` }
Info is a struct helpful for JSON serialization of the FSM Controller version information.
Click to show internal directories.
Click to hide internal directories.