Documentation ¶
Overview ¶
Package compatibility provides some a way to enable/disable features based on Kubernetes version.
Index ¶
- type Version
- func (v Version) FeatureFlagSeccompDefaultEnabledByDefault() bool
- func (v Version) FeatureFlagStructuredAuthorizationConfigurationEnabledByDefault() bool
- func (v Version) KubeAPIServerAuthorizationConfigAPIVersion() string
- func (v Version) KubeAPIServerSupportsAuthorizationConfigFile() bool
- func (v Version) KubeSchedulerHealthLivenessEndpoint() string
- func (v Version) KubeSchedulerHealthReadinessEndpoint() string
- func (v Version) KubeSchedulerHealthStartupEndpoint() string
- func (v Version) String() string
- func (v Version) SupportsKubeletConfigContainerRuntimeEndpoint() bool
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 ¶
VersionFromImageRef parses container image ref to return just Kubernetes version.
If the version can't be parsed, assume latest version.
func (Version) FeatureFlagSeccompDefaultEnabledByDefault ¶
FeatureFlagSeccompDefaultEnabledByDefault returns true if a SeccompDefault feature flag is enabled by default.
func (Version) FeatureFlagStructuredAuthorizationConfigurationEnabledByDefault ¶ added in v0.2.17
FeatureFlagStructuredAuthorizationConfigurationEnabledByDefault returns true if structured authorization configuration is enabled by default.
func (Version) KubeAPIServerAuthorizationConfigAPIVersion ¶ added in v0.2.17
KubeAPIServerAuthorizationConfigAPIVersion returns the API version of the kube-apiserver authorization config.
func (Version) KubeAPIServerSupportsAuthorizationConfigFile ¶ added in v0.2.17
KubeAPIServerSupportsAuthorizationConfigFile returns true if kube-apiserver supports authorization config file.
func (Version) KubeSchedulerHealthLivenessEndpoint ¶ added in v0.2.12
KubeSchedulerHealthLivenessEndpoint returns the liveness endpoint for the kube-scheduler health check.
func (Version) KubeSchedulerHealthReadinessEndpoint ¶ added in v0.2.12
KubeSchedulerHealthReadinessEndpoint returns the readiness endpoint for the kube-scheduler health check.
func (Version) KubeSchedulerHealthStartupEndpoint ¶ added in v0.2.12
KubeSchedulerHealthStartupEndpoint returns the startup endpoint for the kube-scheduler health check.
func (Version) SupportsKubeletConfigContainerRuntimeEndpoint ¶
SupportsKubeletConfigContainerRuntimeEndpoint returns true if kubelet supports ContainerRuntimEndpoint in kubelet config.