Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GCS ¶
type GCS struct { Namespace string Bucket string Ctx context.Context // contains filtered or unexported fields }
GCS represents a google cloud storage build context
func (GCS) Cleanup ¶
func (g GCS) Cleanup()
Cleanup removes the context from the gcs bucket and removes the gcs secret from the cluster
func (GCS) ModifyPod ¶
ModifyPod adds the gcs secret as a volume to the pod to access the bucket from Kaniko
func (GCS) PrepareCredentials ¶
PrepareCredentials creates a v1.Secret with the contents of the Service Account JSON found at GOOGLE_APPLICATION_CREDENTIALS
func (GCS) RequiresPod ¶
RequiresPod always returns false as the pod should not be started before the context is uploaded
type Local ¶
Local represents a local build context which gets uploaded to an init container
func (Local) ModifyPod ¶
ModifyPod adds an init container to the pod and an empty volume for the build context
func (Local) PrepareCredentials ¶
PrepareCredentials not needed here
func (Local) RequiresPod ¶
RequiresPod returns always true, since the init pod is required to upload the context