kpt

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRenderer

func NewRenderer(runnerOptions fnruntime.RunnerOptions) fn.Renderer

func PkgUpdate

func PkgUpdate(ctx context.Context, ref string, packageDir string, opts PkgUpdateOpts) error

PkgUpdate is a wrapper around `kpt pkg update`, running it against the package in packageDir

func UpdateKptfileName

func UpdateKptfileName(name string, contents map[string]string) error

func UpdateKptfileUpstream

func UpdateKptfileUpstream(name string, contents map[string]string, upstream kptfilev1.Upstream, lock kptfilev1.UpstreamLock) error

TODO: accept a virtual filesystem

func UpdateName

func UpdateName(kptfileContents string, name string) (string, error)

func UpdateUpstream

func UpdateUpstream(kptfileContents string, name string, upstream kptfilev1.Upstream, lock kptfilev1.UpstreamLock) (string, error)

TODO: Accept a virtual filesystem or other package abstraction

Types

type FunctionRuntime

type FunctionRuntime interface {
	fn.FunctionRuntime
	io.Closer
}

func NewSimpleFunctionRuntime

func NewSimpleFunctionRuntime() FunctionRuntime

type PkgUpdateOpts

type PkgUpdateOpts struct {
	Strategy string
}

PkgUpdateOpts are options for invoking kpt PkgUpdate

Directories

Path Synopsis
api
kptfile/v1
Package defines Kptfile schema.
Package defines Kptfile schema.
fn
Code generated by "mdtogo"; DO NOT EDIT.
third_party/GoogleContainerTools/kpt-functions-catalog/functions/go/starlark/third_party/sigs.k8s.io/kustomize/kyaml/fn/runtime/starlark
Package starlark contains a kio.Filter which can be applied to resources to transform them through starlark program.
Package starlark contains a kio.Filter which can be applied to resources to transform them through starlark program.
internal package containing implementation details of the package manipulation primitives.
internal package containing implementation details of the package manipulation primitives.
Package printer defines utilities to display kpt CLI output.
Package printer defines utilities to display kpt CLI output.

Jump to

Keyboard shortcuts

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