kaniko

package
v2.0.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2018 License: Apache-2.0 Imports: 19 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder struct {
	RegistryURL      string
	PullSecretName   string
	ImageName        string
	ImageTag         string
	PreviousImageTag string
	BuildNamespace   string
	// contains filtered or unexported fields
}

Builder holds the necessary information to build and push docker images

func NewBuilder

func NewBuilder(registryURL, pullSecretName, imageName, imageTag, lastImageTag, buildNamespace string, kubectl *kubernetes.Clientset, allowInsecureRegistry bool) (*Builder, error)

NewBuilder creates a new kaniko.Builder instance

func (*Builder) Authenticate

func (b *Builder) Authenticate(username, password string, checkCredentialsStore bool) (*types.AuthConfig, error)

Authenticate authenticates kaniko for pushing to the RegistryURL (if username == "", it will try to get login data from local docker daemon)

func (*Builder) BuildImage

func (b *Builder) BuildImage(contextPath, dockerfilePath string, options *types.ImageBuildOptions) error

BuildImage builds a dockerimage within a kaniko pod

func (*Builder) PushImage

func (b *Builder) PushImage() error

PushImage is required to implement builder.Interface

type OutputFormat

type OutputFormat struct {
	Regex       *regexp.Regexp
	Replacement string
}

OutputFormat a regex and a replacement for outputs

Jump to

Keyboard shortcuts

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