kubepkg

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 7, 2020 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BuildDeb BuildType = "deb"
	BuildRpm BuildType = "rpm"
	BuildAll BuildType = "all"

	ChannelRelease ChannelType = "release"
	ChannelTesting ChannelType = "testing"
	ChannelNightly ChannelType = "nightly"

	DefaultRevision = "0"
)

Variables

View Source
var (
	LatestTemplateDir = filepath.Join(templateRootDir, "latest")

	SupportedPackages      = []string{"kubelet", "kubectl", "kubeadm", "kubernetes-cni", "cri-tools"}
	SupportedChannels      = []string{"release", "testing", "nightly"}
	SupportedArchitectures = []string{"amd64", "arm", "arm64", "ppc64le", "s390x"}

	DefaultReleaseDownloadLinkBase = "https://dl.k8s.io"
)

Functions

func IsSupported

func IsSupported(input, expected []string) bool

TODO: kubepkg is failing validations when multiple options are selected

It seems like StringArrayVar is treating the multiple comma-separated values as a single value.

Example: $ time kubepkg debs --arch amd64,arm <snip> INFO[0000] Adding 'amd64,arm' (type: string) to not supported INFO[0000] The following options are not supported: [amd64,arm] FATA[0000] architectures selections are not supported

func WalkBuilds

func WalkBuilds(builds []Build, architectures []string, specOnly bool) (err error)

Types

type Build

type Build struct {
	Type        BuildType
	Package     string
	Definitions []*PackageDefinition
	TemplateDir string
}

func ConstructBuilds

func ConstructBuilds(buildType BuildType, packages, channels []string, kubeVersion, revision, cniVersion, criToolsVersion, templateDir string) ([]Build, error)

type BuildType

type BuildType string

type ChannelType

type ChannelType string

type PackageDefinition

type PackageDefinition struct {
	Name     string
	Version  string
	Revision string

	Channel ChannelType

	KubernetesVersion string
	Dependencies      map[string]string

	DownloadLinkBase         string
	KubeadmKubeletConfigFile string

	CNIDownloadLink string
}

Jump to

Keyboard shortcuts

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