config

package
v1.22.0 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: Apache-2.0 Imports: 9 Imported by: 16

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BuildContextDir = fmt.Sprintf("%s/buildcontext/", KanikoDir)

BuildContextDir is the directory a build context will be unpacked into, for example, a tarball from a GCS bucket will be unpacked here

View Source
var DockerfilePath = fmt.Sprintf("%s/Dockerfile", KanikoDir)

DockerfilePath is the path the Dockerfile is copied to

View Source
var ErrInvalidGitFlag = errors.New("invalid git flag, must be in the key=value format")
View Source
var KanikoDir = func() string {
	if kd, ok := os.LookupEnv("KANIKO_DIR"); ok {
		return kd
	}
	return constants.DefaultKanikoPath
}()

KanikoDir is the path to the Kaniko directory

View Source
var KanikoIntermediateStagesDir = fmt.Sprintf("%s/stages/", KanikoDir)

KanikoIntermediateStagesDir is where we will store intermediate stages as tarballs in case they are needed later on

View Source
var MountInfoPath string
View Source
var RootDir string

Functions

This section is empty.

Types

type CacheOptions added in v0.11.0

type CacheOptions struct {
	CacheDir string
	CacheTTL time.Duration
}

CacheOptions are base image cache options that are set by command line arguments

type Compression added in v1.10.0

type Compression string

Compression is an enumeration of the supported compression algorithms

const (
	GZip Compression = "gzip"
	ZStd Compression = "zstd"
)

The collection of known MediaType values.

func (*Compression) Set added in v1.10.0

func (c *Compression) Set(v string) error

func (*Compression) String added in v1.10.0

func (c *Compression) String() string

func (*Compression) Type added in v1.10.0

func (c *Compression) Type() string

type KanikoGitOptions added in v1.0.0

type KanikoGitOptions struct {
	Branch            string
	SingleBranch      bool
	RecurseSubmodules bool
	InsecureSkipTLS   bool
}

func (*KanikoGitOptions) Set added in v1.0.0

func (k *KanikoGitOptions) Set(s string) error

func (*KanikoGitOptions) String added in v1.0.0

func (k *KanikoGitOptions) String() string

func (*KanikoGitOptions) Type added in v1.0.0

func (k *KanikoGitOptions) Type() string

type KanikoOptions

type KanikoOptions struct {
	RegistryOptions
	CacheOptions
	Destinations             multiArg
	BuildArgs                multiArg
	Labels                   multiArg
	Git                      KanikoGitOptions
	IgnorePaths              multiArg
	DockerfilePath           string
	SrcContext               string
	SnapshotMode             string
	SnapshotModeDeprecated   string
	CustomPlatform           string
	CustomPlatformDeprecated string
	Bucket                   string
	TarPath                  string
	TarPathDeprecated        string
	KanikoDir                string
	Target                   string
	CacheRepo                string
	DigestFile               string
	ImageNameDigestFile      string
	ImageNameTagDigestFile   string
	OCILayoutPath            string
	Compression              Compression
	CompressionLevel         int
	ImageFSExtractRetry      int
	SingleSnapshot           bool
	Reproducible             bool
	NoPush                   bool
	NoPushCache              bool
	Cache                    bool
	Cleanup                  bool
	CompressedCaching        bool
	IgnoreVarRun             bool
	SkipUnusedStages         bool
	RunV2                    bool
	CacheCopyLayers          bool
	CacheRunLayers           bool
	ForceBuildMetadata       bool
	InitialFSUnpacked        bool
	SkipPushPermissionCheck  bool
}

KanikoOptions are options that are set by command line arguments

type KanikoStage

type KanikoStage struct {
	instructions.Stage
	BaseImageIndex         int
	Final                  bool
	BaseImageStoredLocally bool
	SaveStage              bool
	MetaArgs               []instructions.ArgCommand
	Index                  int
}

KanikoStage wraps a stage of the Dockerfile and provides extra information

type RegistryOptions added in v1.4.0

type RegistryOptions struct {
	RegistryMaps                 multiKeyMultiValueArg
	RegistryMirrors              multiArg
	InsecureRegistries           multiArg
	SkipTLSVerifyRegistries      multiArg
	RegistriesCertificates       keyValueArg
	RegistriesClientCertificates keyValueArg
	SkipDefaultRegistryFallback  bool
	Insecure                     bool
	SkipTLSVerify                bool
	InsecurePull                 bool
	SkipTLSVerifyPull            bool
	PushIgnoreImmutableTagErrors bool
	PushRetry                    int
	ImageDownloadRetry           int
}

RegistryOptions are all the options related to the registries, set by command line arguments.

type WarmerOptions added in v0.5.0

type WarmerOptions struct {
	CacheOptions
	RegistryOptions
	CustomPlatform string
	Images         multiArg
	Force          bool
	DockerfilePath string
	BuildArgs      multiArg
}

WarmerOptions are options that are set by command line arguments to the cache warmer.

Jump to

Keyboard shortcuts

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