tanka

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2021 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplyOpts

type ApplyOpts struct {
	DiffStrategy string `name:"diff-strategy" usage:"force the diff-strategy to use. Automatically chosen if not set. values: native, subset"`
	AutoApprove  bool   `name:"auto-approve" usage:"skips the interactive approval"`
	Force        bool   `name:"force,f" usage:"ignores any warnings kubectl might have"`
	Validate     bool   `name:"validate" usage:"set to false ignores invalid Kubernetes schemas"`
}

type DeleteOpts

type DeleteOpts struct {
	AutoApprove bool `name:"auto-approve" usage:"skips the interactive approval"`
	Force       bool `name:"force,f" usage:"ignores any warnings kubectl might have"`
	Validate    bool `name:"validate" usage:"set to false ignores invalid Kubernetes schemas"`
}

type FilterOpts

type FilterOpts struct {
	Targets []string `name:"target,t"  usage:"Regex filter on '<kind>/<name>'. See https://tanka.dev/output-filtering"`
}

type LoadResult

type LoadResult struct {
	Env       *v1alpha1.Environment
	Resources manifest.List
}

func Process

func Process(data []byte, filters process.Matchers) (*LoadResult, error)

func (*LoadResult) Apply

func (l *LoadResult) Apply(opts ApplyOpts) error

func (*LoadResult) Connect

func (l *LoadResult) Connect() (*kubernetes.Kubernetes, error)

func (*LoadResult) Delete

func (l *LoadResult) Delete(opts DeleteOpts) error

func (*LoadResult) Prune

func (l *LoadResult) Prune(opts PruneOpts) error

func (*LoadResult) Show

func (l *LoadResult) Show(opts ShowOpts) error

type PruneOpts

type PruneOpts struct {
	AutoApprove bool `name:"auto-approve" usage:"skips the interactive approval"`
	Force       bool `name:"force,f" usage:"ignores any warnings kubectl might have"`
}

type ShowOpts

type ShowOpts struct {
	Output string `name:"output,o" usage:"output base dir"`
}

Jump to

Keyboard shortcuts

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