MCPcopy
hub / github.com/databus23/helm-diff / ManifestsOwnership

Function ManifestsOwnership

diff/diff.go:52–61  ·  view source on GitHub ↗
(oldIndex, newIndex map[string]*manifest.MappingResult, newOwnedReleases map[string]OwnershipDiff, options *Options, to io.Writer)

Source from the content-addressed store, hash-verified

50}
51
52func ManifestsOwnership(oldIndex, newIndex map[string]*manifest.MappingResult, newOwnedReleases map[string]OwnershipDiff, options *Options, to io.Writer) bool {
53 seenAnyChanges, report, err := generateReport(oldIndex, newIndex, newOwnedReleases, options)
54 if err != nil {
55 panic(err)
56 }
57
58 report.print(to)
59 report.clean()
60 return seenAnyChanges
61}
62
63func ManifestReport(oldIndex, newIndex map[string]*manifest.MappingResult, options *Options) (*Report, error) {
64 _, report, err := generateReport(oldIndex, newIndex, nil, options)

Callers 3

runHelm3Method · 0.92
ManifestsFunction · 0.85
TestChangeOwnershipFunction · 0.85

Calls 3

generateReportFunction · 0.85
printMethod · 0.80
cleanMethod · 0.80

Tested by 1

TestChangeOwnershipFunction · 0.68