MCPcopy
hub / github.com/helm/helm / Root

Method Root

pkg/chart/v2/chart.go:98–103  ·  view source on GitHub ↗

Root finds the root chart.

()

Source from the content-addressed store, hash-verified

96
97// Root finds the root chart.
98func (ch *Chart) Root() *Chart {
99 if ch.IsRoot() {
100 return ch
101 }
102 return ch.Parent().Root()
103}
104
105// Dependencies are the charts that this chart depends on.
106func (ch *Chart) Dependencies() []*Chart { return ch.dependencies }

Callers 15

TestDownloadToFunction · 0.45
TestDownloadTo_TLSFunction · 0.45
TestDownloadToCacheFunction · 0.45
TestUpdateBeforeBuildFunction · 0.45
TestUpdateWithNoRepoFunction · 0.45
loadCLIPluginsFunction · 0.45
TestShowPreReleaseChartFunction · 0.45
runCompletionBashFunction · 0.45
runCompletionZshFunction · 0.45
runCompletionFishFunction · 0.45
runCompletionPowershellFunction · 0.45

Calls 2

IsRootMethod · 0.95
ParentMethod · 0.95

Tested by 15

TestDownloadToFunction · 0.36
TestDownloadTo_TLSFunction · 0.36
TestDownloadToCacheFunction · 0.36
TestUpdateBeforeBuildFunction · 0.36
TestUpdateWithNoRepoFunction · 0.36
TestShowPreReleaseChartFunction · 0.36
TestDependencyUpdateCmdFunction · 0.36
setupMockRepoServerFunction · 0.36
TestDependencyBuildCmdFunction · 0.36