mirror of
https://github.com/vmware-tanzu/velero.git
synced 2026-08-16 04:06:06 +00:00
issue 8433: add ask label to data mover pods
Signed-off-by: Lyndon-Li <lyonghui@vmware.com>
This commit is contained in:
@@ -0,0 +1 @@
|
||||
Fix issue #8433, add aks label to data mover pods
|
||||
@@ -488,6 +488,10 @@ func (e *csiSnapshotExposer) createBackupPod(
|
||||
}
|
||||
label[podGroupLabel] = podGroupSnapshot
|
||||
|
||||
for k, v := range thirdPartyLabels {
|
||||
label[k] = v
|
||||
}
|
||||
|
||||
volumeMode := corev1.PersistentVolumeFilesystem
|
||||
if backupPVC.Spec.VolumeMode != nil {
|
||||
volumeMode = *backupPVC.Spec.VolumeMode
|
||||
|
||||
@@ -323,6 +323,14 @@ func (e *genericRestoreExposer) createRestorePod(ctx context.Context, ownerObjec
|
||||
}}
|
||||
volumes = append(volumes, podInfo.volumes...)
|
||||
|
||||
if label == nil {
|
||||
label = make(map[string]string)
|
||||
}
|
||||
|
||||
for k, v := range thirdPartyLabels {
|
||||
label[k] = v
|
||||
}
|
||||
|
||||
volumeMode := corev1.PersistentVolumeFilesystem
|
||||
if targetPVC.Spec.VolumeMode != nil {
|
||||
volumeMode = *targetPVC.Spec.VolumeMode
|
||||
|
||||
@@ -39,3 +39,7 @@ type ExposeByPod struct {
|
||||
HostingContainer string
|
||||
VolumeName string
|
||||
}
|
||||
|
||||
var thirdPartyLabels map[string]string = map[string]string{
|
||||
"azure.workload.identity/use": "true",
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user