Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsAPISupported ¶
IsAPISupported returns true if the given API is supported for the given Kubernetes version. An API is only supported if it's a known API and its version range contains the given Kubernetes version.
Types ¶
type APIVersionRange ¶
type APIVersionRange struct { Required bool RequiredForWorkerless bool AddedInVersion string RemovedInVersion string }
APIVersionRange represents a version range of type [AddedInVersion, RemovedInVersion). Required defines whether this APIVersion is required for a Shoot with workers. RequiredForWorkerless defines whether this APIVersion is required for Workerless Shoots. If an API is required for both Shoot types, then both booleans need to be set to true.
func (*APIVersionRange) Contains ¶
func (r *APIVersionRange) 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).
func (*APIVersionRange) SupportedVersionRange ¶
func (r *APIVersionRange) SupportedVersionRange() string
SupportedVersionRange returns the supported version range for the given API.