plan

package
v0.16.3 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2021 License: MIT Imports: 35 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Dir      = ".helmwave/"
	File     = "planfile"
	Body     = "helmwave.yml"
	Manifest = "manifest/"
	Values   = "values/"
)

Variables

View Source
var (
	ErrManifestDirNotFound = errors.New(Manifest + " dir not found")
	ErrManifestDirEmpty    = errors.New(Manifest + " is empty")
)
View Source
var ErrDeploy = errors.New("deploy failed")
View Source
var ErrPlansAreTheSame = errors.New("plan1 and plan2 are the same")
View Source
var ErrValidateFailed = errors.New("validate failed")

Functions

func NewBody

func NewBody(file string) (*planBody, error)

Types

type Plan

type Plan struct {
	// contains filtered or unexported fields
}

func New

func New(dir string) *Plan

func (*Plan) Apply

func (p *Plan) Apply() (err error)

func (*Plan) ApplyReport

func (p *Plan) ApplyReport(fails map[*release.Config]error) error

func (*Plan) ApplyWithKubedog

func (p *Plan) ApplyWithKubedog(kubedogConfig *kubedog.Config) (err error)

func (*Plan) Build

func (p *Plan) Build(yml string, tags []string, matchAll bool) error

Build plan with yml and tags/matchALL options

func (*Plan) Clean

func (p *Plan) Clean()

func (*Plan) Destroy

func (p *Plan) Destroy() error

func (*Plan) DiffLive added in v0.16.0

func (p *Plan) DiffLive(showSecret bool, diffWide int)

DiffLive show diff with production releases in k8s-cluster

func (*Plan) DiffPlan added in v0.16.0

func (p *Plan) DiffPlan(b *Plan, showSecret bool, diffWide int)

DiffPlan show diff between 2 plans

func (*Plan) Export

func (p *Plan) Export() error

Export allows save plan to file

func (*Plan) GetLive added in v0.16.0

func (p *Plan) GetLive() (found map[uniqname.UniqName]*live.Release, notFound []uniqname.UniqName, err error)

GetLive returns maps of releases in a k8s-cluster

func (*Plan) GetLiveOf added in v0.16.0

func (p *Plan) GetLiveOf(name uniqname.UniqName) (*live.Release, error)

func (*Plan) Import

func (p *Plan) Import() error

func (*Plan) IsExist

func (p *Plan) IsExist() bool

IsExist returns true if planfile exists

func (*Plan) IsManifestExist

func (p *Plan) IsManifestExist() bool

IsManifestExist returns true if planfile exists

func (*Plan) List

func (p *Plan) List() error

func (*Plan) PrettyPlan

func (p *Plan) PrettyPlan()

func (*Plan) Rollback

func (p *Plan) Rollback() error

func (*Plan) Status

func (p *Plan) Status(names []string) error

func (*Plan) ValidateValues

func (p *Plan) ValidateValues() error

Jump to

Keyboard shortcuts

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