apigroups

package
v1.84.1 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2023 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsAPISupported

func IsAPISupported(api, version string) (bool, string, error)

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.

func SplitAPI

func SplitAPI(api string) (string, string, error)

SplitAPI splits the given api into API GroupVersion and API GroupVersionResource.

func ValidateAPIGroupVersions

func ValidateAPIGroupVersions(runtimeConfig map[string]bool, version string, workerless bool, fldPath *field.Path) field.ErrorList

ValidateAPIGroupVersions validates the given Kubernetes APIs against the given Kubernetes version.

Types

type APIVersionRange

type APIVersionRange struct {
	Required              bool
	RequiredForWorkerless bool
	versionutils.VersionRange
}

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) SupportedVersionRange

func (r *APIVersionRange) SupportedVersionRange() string

SupportedVersionRange returns the supported version range for the given API.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL