kaniko

package
v2.4.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2018 License: Apache-2.0 Imports: 21 Imported by: 3

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, dockerClient client.CommonAPIClient, 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