Documentation
¶
Overview ¶
Package diff compares how the same values behave against two versions of a chart.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Sort ¶
func Sort(ts []Transition)
Sort orders transitions by kind (BREAKING first), then by key.
Types ¶
type ChangedOptions ¶
type Transition ¶
type Transition struct {
Path []string
Kind Kind
From, To probe.Status
Value interface{}
OldDefault interface{}
NewDefault interface{}
HasValue bool
}
func ChangedDefaults ¶
func ChangedDefaults(o ChangedOptions) ([]Transition, int64)
ChangedDefaults finds defaults the user does not set whose change between versions alters the rendered output of the new version: it renders the new chart with the old default forced back and compares.
func Keys ¶
func Keys(old, new *probe.Result, oldDefaults, newDefaults map[string]interface{}) []Transition
Keys reports how every key the user sets moved between the two versions.
func (Transition) Key ¶
func (t Transition) Key() string
Click to show internal directories.
Click to hide internal directories.