initializer

package
v1.27.0 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2021 License: Apache-2.0 Imports: 25 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 Transparent added in v1.18.0

func Transparent(ctx context.Context, out io.Writer, c initConfig.Config) (*latestV1.SkaffoldConfig, error)

Transparent executes the `skaffold init` flow, but always enables the --force flag. It will also always prompt the user to confirm at the end of the flow.

func ValidCmd added in v1.18.0

func ValidCmd(opts config.SkaffoldOptions) bool

Returns true if transparent init should run on the given opts.Command, false otherwise

func WriteData added in v1.7.1

func WriteData(out io.Writer, c config.Config, newConfig *latestV1.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