MCPcopy
hub / github.com/helm/helm / Has

Method Has

pkg/chart/common/capabilities.go:126–128  ·  view source on GitHub ↗

Has returns true if the version string is in the set. vs.Has("apps/v1")

(apiVersion string)

Source from the content-addressed store, hash-verified

124//
125// vs.Has("apps/v1")
126func (v VersionSet) Has(apiVersion string) bool {
127 return slices.Contains(v, apiVersion)
128}
129
130func allKnownVersions() VersionSet {
131 // We should register the built in extension APIs as well so CRDs are

Callers 5

TestVersionSetFunction · 0.95
TestDefaultVersionSetFunction · 0.45
TestToRenderValuesFunction · 0.45
TestRepoRemoveFunction · 0.45
TestRepoAddFunction · 0.45

Calls 1

ContainsMethod · 0.80

Tested by 5

TestVersionSetFunction · 0.76
TestDefaultVersionSetFunction · 0.36
TestToRenderValuesFunction · 0.36
TestRepoRemoveFunction · 0.36
TestRepoAddFunction · 0.36