MCPcopy
hub / github.com/helm/helm / makeKey

Function makeKey

pkg/storage/storage.go:327–329  ·  view source on GitHub ↗

makeKey concatenates the Kubernetes storage object type, a release name and version into a string with format:``` . .v ```. The storage type is prepended to keep name uniqueness between different release storage types. An example of clash when not using

(rlsname string, version int)

Source from the content-addressed store, hash-verified

325// https://github.com/helm/helm/issues/6435.
326// This key is used to uniquely identify storage objects.
327func makeKey(rlsname string, version int) string {
328 return fmt.Sprintf("%s.%s.v%d", HelmStorageType, rlsname, version)
329}
330
331// Init initializes a new storage backend with the driver d.
332// If d is nil, the default in-memory driver is used.

Callers 6

GetMethod · 0.85
CreateMethod · 0.85
UpdateMethod · 0.85
DeleteMethod · 0.85
deleteReleaseVersionMethod · 0.85

Calls

no outgoing calls

Tested by 1

Used in the wild real call sites across dependent graphs

searching dependent graphs…