image

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2019 License: GPL-3.0 Imports: 8 Imported by: 0

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"
)

Variables

This section is empty.

Functions

func Generate

func Generate(image *extensionsv1beta1.Image, dump, build Options) (*corev1.Pod, *corev1.ConfigMap, error)

Generate required objects for building a MySQL image.

Types

type Options

type Options struct {
	Image  string
	CPU    string
	Memory string
}

Options provides options for imaging.

func (Options) ResourceRequirements

func (o Options) ResourceRequirements() (corev1.ResourceRequirements, error)

ResourceRequirements used with this image.

Jump to

Keyboard shortcuts

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