build

package
v0.0.0-...-ae6532f Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package build implements a common system for building kubernetes for deployers to use.

Index

Constants

This section is empty.

Variables

View Source
var (
	CommonTestBinaries = []string{
		"kubectl",
		"e2e.test",
		"ginkgo",
	}
)

Functions

func StoreCommonBinaries

func StoreCommonBinaries(kuberoot string, outroot string, targetBuildArch string)

StoreCommonBinaries will best effort try to store commonly built binaries to the output directory

Types

type Builder

type Builder interface {
	// Build determines how kubernetes artifacts are built from sources or existing artifacts
	// and returns the version being built
	Build() (string, error)
}

type MakeBuilder

type MakeBuilder struct {
	RepoRoot        string
	TargetBuildArch string
}

func (*MakeBuilder) Build

func (m *MakeBuilder) Build() (string, error)

Build builds kubernetes with the quick-release make target

type NoopBuilder

type NoopBuilder struct{}

func (*NoopBuilder) Build

func (n *NoopBuilder) Build() (string, error)

type NoopStager

type NoopStager struct{}

func (*NoopStager) Stage

func (n *NoopStager) Stage(string) error

type Options

type Options struct {
	StageLocation   string `flag:"~stage" desc:"Upload/Download binaries to s3 bucket, https://dl.k8s.io/ to stand up cluster from release artifacts"`
	RepoRoot        string `flag:"-"`
	StageVersion    string `flag:"~version" desc:"Specify version already in s3 bucket"`
	TargetBuildArch string `flag:"~target-build-arch" desc:"Target architecture for the test artifacts"`
	S3Uploader      *s3manager.Uploader
	Builder
	Stager
}

func (*Options) Validate

func (o *Options) Validate() error

type S3Stager

type S3Stager struct {
	StageLocation string

	TargetBuildArch string
	RepoRoot        string
	// contains filtered or unexported fields
}

func (*S3Stager) Stage

func (n *S3Stager) Stage(version string) error

type Stager

type Stager interface {
	// Stage determines how kubernetes artifacts will be staged (e.g. to say a GCS bucket)
	// for the specified version
	Stage(version string) error
}

Jump to

Keyboard shortcuts

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