kaniko

package
v0.13.2 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 17 Imported by: 1

Documentation

Index

Constants

View Source
const (
	DefaultParallelism  = int32(1)
	DefaultBackoffLimit = int32(5)

	MinioBucketName = "kaniko"
)

Variables

View Source
var (
	ErrBuildFailed                      = &Error{Code: "BuildFailed", Message: "build failed"}
	ErrBuildContextEmpty                = &Error{Code: "BuildContextEmpty", Message: "build context cannot be empty"}
	ErrCleaningUp                       = &Error{Code: "CleaningUp", Message: "error cleaning up"}
	ErrCreatingJob                      = &Error{Code: "CreatingJob", Message: "error creating Job"}
	ErrDeletingJob                      = &Error{Code: "DeletingJob", Message: "error deleting Job"}
	ErrDeletingPods                     = &Error{Code: "DeletingPods", Message: "error deleting Pods"}
	ErrGeneratingUUID                   = &Error{Code: "GeneratingUUID", Message: "error generating UUID"}
	ErrGettingContainerLogs             = &Error{Code: "GettingContainerLogs", Message: "error getting container logs"}
	ErrGettingPodFromJob                = &Error{Code: "GettingPodFromJob", Message: "error getting Pod from Job"}
	ErrListingJobs                      = &Error{Code: "ListingJobs", Message: "error listing Jobs"}
	ErrListingPods                      = &Error{Code: "ListingPods", Message: "error listing Pods"}
	ErrNoContainersFound                = &Error{Code: "NoContainersFound", Message: "no containers found"}
	ErrNoPodsFound                      = &Error{Code: "NoPodsFound", Message: "no Pods found"}
	ErrPreparingJob                     = &Error{Code: "PreparingJob", Message: "error preparing Job"}
	ErrWaitingJobCompletion             = &Error{Code: "WaitingJobCompletion", Message: "error waiting for Job completion"}
	ErrWatchingChannelCloseUnexpectedly = &Error{Code: "WatchingChannelCloseUnexpectedly", Message: "watch channel closed unexpectedly"}
	ErrWatchingJob                      = &Error{Code: "WatchingJob", Message: "error watching Job"}
	ErrContextCancelled                 = &Error{Code: "ContextCancelled", Message: "context cancelled"}
	ErrMountingDir                      = &Error{Code: "MountingDir", Message: "error mounting directory"}
	ErrMinioNotConfigured               = &Error{Code: "MinioNotConfigured", Message: "Minio service is not configured"}
	ErrMinioDeploymentFailed            = &Error{Code: "MinioDeploymentFailed", Message: "Minio deployment failed"}
	ErrDeletingMinioContent             = &Error{Code: "DeletingMinioContent", Message: "error deleting Minio content"}
)

Functions

This section is empty.

Types

type Error

type Error struct {
	Code    string
	Message string
	Err     error
}

func (*Error) Error

func (e *Error) Error() string

func (*Error) Wrap

func (e *Error) Wrap(err error) error

type Kaniko

type Kaniko struct {
	K8sClientset kubernetes.Interface
	K8sNamespace string
	Minio        *minio.Minio // Minio service to store the build context if it's a directory
	ContentName  string       // Name of the content pushed to Minio
}

func (*Kaniko) Build

func (k *Kaniko) Build(ctx context.Context, b *builder.BuilderOptions) (logs string, err error)

Jump to

Keyboard shortcuts

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