ytt

package
v0.1.0-rc.24 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Render

func Render(_ context.Context, paths []string) ([]byte, error)

Render shells out to the ytt binary to render the provided paths into plain YAML manifests. Unlike in the case of Kustomize and Helm, this is not done with the help of the Argo CD repo server, since that does not yet support ytt.

Types

type Config

type Config struct {
	// Paths are paths to directories or files, relative to the root of the
	// repository, containing YTT templates or data. Each of these will be used as
	// a value for the `--file` flag in the `ytt` command. By convention, if left
	// unspecified, two paths are assumed: base/ and a path identical to the name
	// of the branch.
	Paths []string `json:"paths,omitempty"`
}

Config encapsulates optional ytt configuration options.

func (Config) Expand

func (c Config) Expand(values []string) Config

Expand expands all file/directory paths referenced by this configuration object, replacing placeholders of the form ${n} where n is a non-negative integer, with corresponding values from the provided string array. The modified object is returned.

Jump to

Keyboard shortcuts

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