Documentation ¶
Overview ¶
Package k8s contains some helper functions related to the Kubernetes.
Index ¶
Constants ¶
const ( Alpha = Stage("ALPHA") Beta = Stage("BETA") GA = Stage("GA") // Deprecated Deprecated = Stage("DEPRECATED") )
The following stages are defined in https://kubernetes.io/docs/reference/command-line-tools-reference/feature-gates/
Variables ¶
This section is empty.
Functions ¶
func BuildKubeApiserverTracingConfig ¶ added in v0.4.0
func BuildKubeApiserverTracingConfig(conf BuildKubeApiserverTracingConfigParam) (string, error)
BuildKubeApiserverTracingConfig builds a apiserverTracingConfig file from the given parameters.
func GetEtcdVersion ¶
GetEtcdVersion returns the etcd version for the given k8s version
func GetFeatureGates ¶
GetFeatureGates returns the feature gates for the given version
func GetRuntimeConfig ¶
GetRuntimeConfig returns the runtime configuration of the Kubernetes cluster.
Types ¶
type BuildKubeApiserverTracingConfigParam ¶ added in v0.4.0
type BuildKubeApiserverTracingConfigParam struct {
Endpoint string
}
BuildKubeApiserverTracingConfigParam is the configuration for BuildKubeApiserverTracingConfig.
type FeatureSpec ¶
FeatureSpec is the specification of a feature
func (*FeatureSpec) Contain ¶
func (f *FeatureSpec) Contain(v int) bool
Contain returns true if the version is in the range of the feature
func (*FeatureSpec) Verification ¶
func (f *FeatureSpec) Verification() error
Verification of the data