render

package
v2.11.1 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TempDir = os.MkdirTemp
)

for testing

Functions

This section is empty.

Types

type Initializer

type Initializer interface {
	// renderConfig generates Render Config for skaffold configuration.
	RenderConfig() (latest.RenderConfig, []latest.Profile)
	// GetImages fetches all the images defined in the manifest files.
	GetImages() []string
	// Validate ensures preconditions are met before generating a skaffold config
	Validate() error
	// AddManifestForImage adds a provided manifest for a given image to the initializer
	AddManifestForImage(string, string)
}

Initializer detects a deployment type and is able to extract image names from it

func NewInitializer

func NewInitializer(manifests, bases, kustomizations []string, h analyze.HelmChartInfo, c config.Config) Initializer

if any CLI manifests are provided, we always use those as part of a kubectl render first if not, then if a kustomization yaml is found, we use that next otherwise, default to a kubectl render.

Jump to

Keyboard shortcuts

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