MCPcopy
hub / github.com/helm/helm / Update

Method Update

pkg/storage/storage.go:83–90  ·  view source on GitHub ↗

Update updates the release in storage. An error is returned if the storage backend fails to update the release or if the release does not exist.

(rls release.Releaser)

Source from the content-addressed store, hash-verified

81// storage backend fails to update the release or if the release
82// does not exist.
83func (s *Storage) Update(rls release.Releaser) error {
84 rac, err := release.NewAccessor(rls)
85 if err != nil {
86 return err
87 }
88 s.Logger().Debug("updating release", "key", makeKey(rac.Name(), rac.Version()))
89 return s.Driver.Update(makeKey(rac.Name(), rac.Version()), rls)
90}
91
92// Delete deletes the release from storage. An error is returned if
93// the storage backend fails to delete the release or if the release

Callers

nothing calls this directly

Calls 5

NameMethod · 0.95
VersionMethod · 0.95
makeKeyFunction · 0.85
LoggerMethod · 0.65
UpdateMethod · 0.65

Tested by

no test coverage detected