Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Prefix which is applied to objects created. Prefix = "mysql-image" // RulesFile used when dumping the database. RulesFile = "mtk.yml" // ContainerMTKDump for querying the "dump" container. ContainerMTKDump = "dump" // ContainerKaniko for querying the "build" container. ContainerKaniko = "build" // MountWorkspaceName for mounting the workspace. MountWorkspaceName = "workspace" // MountWorkspacePath for mounting the workspace. MountWorkspacePath = "/workspace" // MountConfigName for mounting the config. MountConfigName = "config" // MountConfigPath for mounting the config. MountConfigPath = "/config" // MountDockerName for mounting Docker config. MountDockerName = "docker" // MountDockerPath for mounting Docker config. MountDockerPath = "/kaniko/.docker" )
Variables ¶
This section is empty.
Functions ¶
func Generate ¶
func Generate(image *extensionsv1beta1.Image, params GenerateParams) (*corev1.Pod, *corev1.ConfigMap, error)
Generate required objects for building a MySQL image.
Types ¶
type Container ¶ added in v0.4.1
Container provides options for a step when creating the image.
func (Container) ResourceRequirements ¶ added in v0.4.1
func (c Container) ResourceRequirements() (corev1.ResourceRequirements, error)
ResourceRequirements used with this image.
type GenerateParams ¶ added in v0.4.1
type GenerateParams struct { Dump Container Build Container Docker GenerateParamsDocker AWS GenerateParamsAWS }
GenerateParams are passed into the Generate function.
type GenerateParamsAWS ¶ added in v0.4.1
type GenerateParamsAWS struct { // Secret which contains Secret string // ConfigMap key which contains AWS_ACCESS_KEY_ID. KeyID string // KeyAccess key which contains AWS_SECRET_ACCESS_KEY. AccessKey string }
GenerateParamsAWS used to Generate a Pod.
type GenerateParamsDocker ¶ added in v0.4.1
type GenerateParamsDocker struct { // ConfigMap which contains the value. ConfigMap string }
GenerateParamsDocker used to Generate a Pod.
Click to show internal directories.
Click to hide internal directories.