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
type OutputFormat ¶
OutputFormat a regex and a replacement for outputs
Click to show internal directories.
Click to hide internal directories.