initializer

package
v1.17.1 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2020 License: Apache-2.0 Imports: 21 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AnalyzeProject added in v1.7.1

func AnalyzeProject(c config.Config) (*analyze.ProjectAnalysis, error)

AnalyzeProject scans the project directory for files and keeps track of what types of files it finds (builders, k8s manifests, etc.).

func DoInit

func DoInit(ctx context.Context, out io.Writer, c config.Config) error

DoInit executes the `skaffold init` flow.

func Initialize added in v1.7.1

Initialize uses the information gathered by the analyzer to create a skaffold config and generate kubernetes manifests. The returned map[string][]byte represents a mapping from generated config name to its respective manifest data held in a []byte

func WriteData added in v1.7.1

func WriteData(out io.Writer, c config.Config, newConfig *latest.SkaffoldConfig, newManifests map[string][]byte) error

WriteData takes the given skaffold config and k8s manifests and writes them out to a file or the given io.Writer

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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