MCPcopy
hub / github.com/helm/helm / createTestingMetadata

Function createTestingMetadata

pkg/cmd/dependency_update_test.go:276–288  ·  view source on GitHub ↗

createTestingMetadata creates a basic chart that depends on reqtest-0.1.0 The baseURL can be used to point to a particular repository server.

(name, baseURL string)

Source from the content-addressed store, hash-verified

274//
275// The baseURL can be used to point to a particular repository server.
276func createTestingMetadata(name, baseURL string) *chart.Chart {
277 return &chart.Chart{
278 Metadata: &chart.Metadata{
279 APIVersion: chart.APIVersionV2,
280 Name: name,
281 Version: "1.2.3",
282 Dependencies: []*chart.Dependency{
283 {Name: "reqtest", Version: "0.1.0", Repository: baseURL},
284 {Name: "compressedchart", Version: "0.1.0", Repository: baseURL},
285 },
286 },
287 }
288}
289
290func createTestingMetadataForOCI(name, registryURL string) *chart.Chart {
291 return &chart.Chart{

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…