k8s

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package k8s contains some helper functions related to the Kubernetes.

Index

Constants

View Source
const (
	Alpha = Stage("ALPHA")
	Beta  = Stage("BETA")
	GA    = Stage("GA")

	// Deprecated
	Deprecated = Stage("DEPRECATED")
)

Variables

This section is empty.

Functions

func BuildKubeconfig

func BuildKubeconfig(conf BuildKubeconfigConfig) (string, error)

func CopySchedulerConfig added in v0.1.0

func CopySchedulerConfig(oldpath, newpath, kubeconfig string) error

func GetEtcdVersion

func GetEtcdVersion(version int) string

func GetFeatureGates

func GetFeatureGates(version int) string

func GetRuntimeConfig

func GetRuntimeConfig(version int) string

Types

type BuildKubeconfigConfig

type BuildKubeconfigConfig struct {
	ProjectName  string
	SecurePort   bool
	Address      string
	AdminCrtPath string
	AdminKeyPath string
}

type FeatureSpec

type FeatureSpec struct {
	Name  string
	Stage Stage
	Since int
	Until int
}

func (*FeatureSpec) Contain

func (f *FeatureSpec) Contain(v int) bool

func (*FeatureSpec) Verification

func (f *FeatureSpec) Verification() error

type Stage

type Stage string

Jump to

Keyboard shortcuts

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