MCPcopy Create free account
hub / github.com/devspace-sh/devspace / getClaimName

Function getClaimName

pkg/devspace/services/podreplace/replace.go:455–462  ·  view source on GitHub ↗
(deployment *appsv1.Deployment, devPod *latest.DevPod)

Source from the content-addressed store, hash-verified

453}
454
455func getClaimName(deployment *appsv1.Deployment, devPod *latest.DevPod) string {
456 name := deployment.Name
457 if devPod.PersistenceOptions != nil && devPod.PersistenceOptions.Name != "" {
458 name = devPod.PersistenceOptions.Name
459 }
460
461 return name
462}

Callers 2

updatePVCFunction · 0.85
createPVCFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected