Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BuildContextSource ¶
type BuildContextSource interface { Setup(ctx context.Context, out io.Writer, artifact *latest.Artifact, initialTag string) (string, error) Pod(args []string) *v1.Pod ModifyPod(ctx context.Context, p *v1.Pod) error Cleanup(ctx context.Context) error }
BuildContextSource is the generic type for the different build context sources the kaniko builder can use
func Retrieve ¶
func Retrieve(cfg *latest.KanikoBuild) BuildContextSource
Retrieve returns the correct build context based on the config
type GCSBucket ¶
type GCSBucket struct {
// contains filtered or unexported fields
}
func (*GCSBucket) ModifyPod ¶
ModifyPod does nothing here, since we just need to let kaniko run to completion
type LocalDir ¶
type LocalDir struct {
// contains filtered or unexported fields
}
LocalDir refers to kaniko using a local directory as a buildcontext skaffold copies the buildcontext into the local directory via kubectl cp
func (*LocalDir) ModifyPod ¶
ModifyPod first copies over the buildcontext tarball into the init container tmp dir via kubectl cp Via kubectl exec, we extract the tarball to the empty dir Then, via kubectl exec, create the /tmp/complete file via kubectl exec to complete the init container