| 368 | } |
| 369 | |
| 370 | func 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 | |
| 382 | func getAdditionalDeploymentAnnotations(workspace *common.DevWorkspaceWithConfig) (map[string]string, error) { |
| 383 | annotations := map[string]string{} |