compatibility

package
v0.2.9 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 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) KubeSchedulerConfigurationAPIVersion added in v0.2.8

func (v Version) KubeSchedulerConfigurationAPIVersion() string

KubeSchedulerConfigurationAPIVersion returns the API version of the kube-scheduler configuration.

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