pkg

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2023 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// TemplateRegex is the default regex, that is used to split one big helm template to multiple templates.
	// Splitting templates eases the task of  identifying Kubernetes objects.
	TemplateRegex = `---\n# Source:\s.*.`
)

Variables

This section is empty.

Functions

func GetLoglevel

func GetLoglevel(level string) log.Level

GetLoglevel sets the loglevel to the kind of log asked for.

Types

type Drift

type Drift struct {
	Values             []string
	StringValues       []string
	FileValues         []string
	ValueFiles         ValueFiles
	SkipTests          bool
	SkipValidation     bool
	SkipClean          bool
	Summary            bool
	Regex              string
	LogLevel           string
	FromRelease        bool
	NoColor            bool
	JSON               bool
	YAML               bool
	ExitWithError      bool
	Report             bool
	TempPath           string
	CustomDiff         string
	All                bool
	IsDefaultNamespace bool
	Kind               []string
	SkipKinds          []string
	Name               string
	// contains filtered or unexported fields
}

Drift represents GetDrift.

func (*Drift) Diff

func (drift *Drift) Diff(renderedManifests deviation.DriftedRelease) (deviation.DriftedRelease, error)

func (*Drift) GetAllDrift added in v0.0.3

func (drift *Drift) GetAllDrift()

func (*Drift) GetDrift

func (drift *Drift) GetDrift()

GetDrift gets all the drifts that the given release/chart has.

func (*Drift) SetChart

func (drift *Drift) SetChart(chart string)

SetChart sets chart name for helm drift.

func (*Drift) SetLogger

func (drift *Drift) SetLogger(logLevel string)

func (*Drift) SetRelease

func (drift *Drift) SetRelease(release string)

SetRelease sets release for helm drift.

func (*Drift) SetWriter

func (drift *Drift) SetWriter(writer io.Writer)

SetWriter sets writer to be used by helm drift.

func (*Drift) ValidatePrerequisite added in v0.0.3

func (drift *Drift) ValidatePrerequisite() bool

type HelmTemplate added in v0.0.5

type HelmTemplate string

func NewHelmTemplate added in v0.0.5

func NewHelmTemplate(template string) *HelmTemplate

func (*HelmTemplate) Get added in v0.0.5

func (template *HelmTemplate) Get() (deviation.Deviation, error)

type HelmTemplates added in v0.0.5

type HelmTemplates []string

func NewHelmTemplates added in v0.0.5

func NewHelmTemplates(templates []string) *HelmTemplates

func (*HelmTemplates) FilterByKind added in v0.0.5

func (templates *HelmTemplates) FilterByKind(drift *Drift) []string

func (*HelmTemplates) FilterByName added in v0.0.5

func (templates *HelmTemplates) FilterByName(drift *Drift) []string

func (*HelmTemplates) FilterBySkip added in v0.0.5

func (templates *HelmTemplates) FilterBySkip(drift *Drift) []string

func (*HelmTemplates) Get added in v0.0.5

func (templates *HelmTemplates) Get() ([]deviation.Deviation, error)

type ValueFiles

type ValueFiles []string

func (*ValueFiles) Set

func (v *ValueFiles) Set(value string) error

func (*ValueFiles) String

func (v *ValueFiles) String() string

func (*ValueFiles) Type

func (v *ValueFiles) Type() string

func (*ValueFiles) Valid

func (v *ValueFiles) Valid() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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