kube

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2022 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReleaseFromJSONRaw

func ReleaseFromJSONRaw(data []byte) (*releasev1alpha1.Release, error)

Types

type ApplyOpts

type ApplyOpts struct {
	AutoApprove bool `name:"auto-approve" usage:"skips the interactive approval"`
}

type DeleteOpts

type DeleteOpts struct {
	AutoApprove bool `name:"auto-approve" usage:"skips the interactive approval"`
}

type LoadResult

type LoadResult struct {
	Release   *releasev1alpha1.Release
	Resources manifest.List
}

func Process

func Process(release *releasev1alpha1.Release, filters manifest.Matchers) (*LoadResult, error)

func (*LoadResult) Apply

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

func (*LoadResult) Connect

func (l *LoadResult) Connect() (*kubernetes.KubeClient, 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) (err error)

type Opts

type Opts struct {
	AsTemplate bool     `name:"as-template"  usage:"As release secret"`
	Targets    []string `name:"target,t"  usage:"Regex filter on '<kind>/<name>'. See https://tanka.dev/output-filtering"`
}

type PruneOpts

type PruneOpts struct {
	AutoApprove bool `name:"auto-approve" usage:"skips the interactive approval"`
}

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