initializer

package
v0.31.0 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2019 License: Apache-2.0 Imports: 22 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const NoDockerfile = "None (image not built from these sources)"

NoDockerfile allows users to specify they don't want to build an image we parse out from a kubernetes manifest

Variables

This section is empty.

Functions

func DoInit

func DoInit(out io.Writer, c Config) error

DoInit executes the `skaffold init` flow.

func IsSkaffoldConfig

func IsSkaffoldConfig(file string) bool

IsSkaffoldConfig is for determining if a file is skaffold config file.

func IsSupportedKubernetesFileExtension

func IsSupportedKubernetesFileExtension(n string) bool

IsSupportedKubernetesFileExtension is for determining if a file under a glob pattern is deployable file format. It makes no attempt to check whether or not the file is actually deployable or has the correct contents.

Types

type Config

type Config struct {
	ComposeFile  string
	CliArtifacts []string
	SkipBuild    bool
	Force        bool
	Analyze      bool
	Opts         *config.SkaffoldOptions
}

Config defines the Initializer Config for Init API of skaffold.

type Initializer

type Initializer interface {
	// GenerateDeployConfig generates Deploy Config for skaffold configuration.
	GenerateDeployConfig() latest.DeployConfig
	// GetImages fetches all the images defined in the manifest files.
	GetImages() []string
}

Initializer is the Init API of skaffold and responsible for generating skaffold configuration file.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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