compatibility

package
v0.2.17 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package compatibility provides some a way to enable/disable features based on Kubernetes version.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Version

type Version semver.Version

Version is the Kubernetes version to have running.

func VersionFromImageRef

func VersionFromImageRef(imageRef string) Version

VersionFromImageRef parses container image ref to return just Kubernetes version.

If the version can't be parsed, assume latest version.

func (Version) FeatureFlagSeccompDefaultEnabledByDefault

func (v Version) FeatureFlagSeccompDefaultEnabledByDefault() bool

FeatureFlagSeccompDefaultEnabledByDefault returns true if a SeccompDefault feature flag is enabled by default.

func (Version) FeatureFlagStructuredAuthorizationConfigurationEnabledByDefault added in v0.2.17

func (v Version) FeatureFlagStructuredAuthorizationConfigurationEnabledByDefault() bool

FeatureFlagStructuredAuthorizationConfigurationEnabledByDefault returns true if structured authorization configuration is enabled by default.

func (Version) KubeAPIServerAuthorizationConfigAPIVersion added in v0.2.17

func (v Version) KubeAPIServerAuthorizationConfigAPIVersion() string

KubeAPIServerAuthorizationConfigAPIVersion returns the API version of the kube-apiserver authorization config.

func (Version) KubeAPIServerSupportsAuthorizationConfigFile added in v0.2.17

func (v Version) KubeAPIServerSupportsAuthorizationConfigFile() bool

KubeAPIServerSupportsAuthorizationConfigFile returns true if kube-apiserver supports authorization config file.

func (Version) KubeSchedulerHealthLivenessEndpoint added in v0.2.12

func (v Version) KubeSchedulerHealthLivenessEndpoint() string

KubeSchedulerHealthLivenessEndpoint returns the liveness endpoint for the kube-scheduler health check.

func (Version) KubeSchedulerHealthReadinessEndpoint added in v0.2.12

func (v Version) KubeSchedulerHealthReadinessEndpoint() string

KubeSchedulerHealthReadinessEndpoint returns the readiness endpoint for the kube-scheduler health check.

func (Version) KubeSchedulerHealthStartupEndpoint added in v0.2.12

func (v Version) KubeSchedulerHealthStartupEndpoint() string

KubeSchedulerHealthStartupEndpoint returns the startup endpoint for the kube-scheduler health check.

func (Version) String

func (v Version) String() string

String returns the string representation of the version.

func (Version) SupportsKubeletConfigContainerRuntimeEndpoint

func (v Version) SupportsKubeletConfigContainerRuntimeEndpoint() bool

SupportsKubeletConfigContainerRuntimeEndpoint returns true if kubelet supports ContainerRuntimEndpoint in kubelet config.

Jump to

Keyboard shortcuts

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