options

package
v0.8.4-0...-1fccc93 Latest Latest
Warning

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

Go to latest
Published: May 30, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddBuildOptions

func AddBuildOptions(cmd *cobra.Command, bo *BuildOptions)

func AddFileArg

func AddFileArg(cmd *cobra.Command, fo *FilenameOptions)

func AddPublishArg

func AddPublishArg(cmd *cobra.Command, po *PublishOptions)

func AddSelectorArg

func AddSelectorArg(cmd *cobra.Command, so *SelectorOptions)

func EnumerateFiles

func EnumerateFiles(fo *FilenameOptions) chan string

Based heavily on pkg/kubectl

func MakeNamer

func MakeNamer(po *PublishOptions) publish.Namer

Types

type BuildOptions

type BuildOptions struct {
	// BaseImage enables setting the default base image programmatically.
	// If non-empty, this takes precedence over the value in `.ko.yaml`.
	BaseImage            string
	ConcurrentBuilds     int
	DisableOptimizations bool
	Platform             string
	Labels               []string
	// UserAgent enables overriding the default value of the `User-Agent` HTTP
	// request header used when retrieving the base image.
	UserAgent string
}

BuildOptions represents options for the ko builder.

type FilenameOptions

type FilenameOptions struct {
	Filenames []string
	Recursive bool
	Watch     bool
}

FilenameOptions is from pkg/kubectl.

type PublishOptions

type PublishOptions struct {
	// DockerRepo configures the destination image repository.
	// In normal ko usage, this is populated with the value of $KO_DOCKER_REPO.
	DockerRepo string

	// LocalDomain overrides the default domain for images loaded into the local Docker daemon. Use with Local=true.
	LocalDomain string

	// UserAgent enables overriding the default value of the `User-Agent` HTTP
	// request header used when pushing the built image to an image registry.
	UserAgent string

	Tags []string
	// TagOnly resolves images into tag-only references.
	TagOnly bool

	// Push publishes images to a registry.
	Push bool

	// Local publishes images to a local docker daemon.
	Local            bool
	InsecureRegistry bool

	OCILayoutPath string
	TarballFile   string

	// PreserveImportPaths preserves the full import path after KO_DOCKER_REPO.
	PreserveImportPaths bool
	// BaseImportPaths uses the base path without MD5 hash after KO_DOCKER_REPO.
	BaseImportPaths bool
	// Bare uses a tag on the KO_DOCKER_REPO without anything additional.
	Bare bool
}

PublishOptions encapsulates options when publishing.

type SelectorOptions

type SelectorOptions struct {
	Selector string
}

SelectorOptions allows selecting objects from the input manifests by label

Jump to

Keyboard shortcuts

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