MCPcopy Create free account
hub / github.com/devfile/devworkspace-operator / needsPVCWorkaround

Function needsPVCWorkaround

pkg/provision/workspace/deployment.go:370–380  ·  view source on GitHub ↗
(podAdditions *v1alpha1.PodAdditions, pvcName string)

Source from the content-addressed store, hash-verified

368}
369
370func needsPVCWorkaround(podAdditions *v1alpha1.PodAdditions, pvcName string) (needs bool, workaroundPvcName string) {
371 for _, vol := range podAdditions.Volumes {
372 if vol.Name == pvcName {
373 return true, pvcName
374 }
375 if vol.Name == constants.CheCommonPVCName {
376 return true, constants.CheCommonPVCName
377 }
378 }
379 return false, ""
380}
381
382func getAdditionalDeploymentAnnotations(workspace *common.DevWorkspaceWithConfig) (map[string]string, error) {
383 annotations := map[string]string{}

Callers 1

getSpecDeploymentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected