Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsFeatureGateSupported ¶
IsFeatureGateSupported returns true if the given feature gate is supported for the given Kubernetes version. A feature gate is only supported if it's a known feature gate and its version range contains the given Kubernetes version.
Types ¶
type FeatureGateVersionRange ¶
type FeatureGateVersionRange struct { Default bool AddedInVersion string LockedToDefaultInVersion string RemovedInVersion string }
FeatureGateVersionRange represents a version range of type [AddedInVersion, RemovedInVersion).
func (*FeatureGateVersionRange) Contains ¶
func (r *FeatureGateVersionRange) Contains(version string) (bool, error)
Contains returns true if the range contains the given version, false otherwise. The range contains the given version only if it's greater or equal than AddedInVersion (always true if AddedInVersion is empty), and less than RemovedInVersion (always true if RemovedInVersion is empty).
Click to show internal directories.
Click to hide internal directories.