build

package
v0.8.7 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

README

集群镜像的构建流程

  1. kubefile的解析
  2. build上下文构建打包等
  3. infra申请云资源启动临时集群
  4. 在临时集群中执行指令
  5. 存储集群中的容器镜像等资源
  6. 打包集群镜像

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseBuildArgs

func ParseBuildArgs(localContextDir, kubeFileName string) (string, string, error)

ParseBuildArgs parse context and kubefile. return context abs path and kubefile abs path

func ValidateContextDirectory

func ValidateContextDirectory(srcPath string) error

Types

type Config

type Config struct {
	BuildType string
	NoCache   bool
	NoBase    bool
	ImageName string
	BuildArgs map[string]string
	Platform  v1.Platform
}

type Interface

type Interface interface {
	Build(name string, context string, kubefileName string) error
}

func NewBuilder

func NewBuilder(config *Config) (Interface, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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