mirror of
https://github.com/vmware-tanzu/velero.git
synced 2026-09-26 18:04:31 +00:00
Merge branch 'main' into fix-issue-10429
This commit is contained in:
@@ -785,7 +785,7 @@ func (e *csiSnapshotExposer) createBackupPod(
|
||||
Operator: metav1.LabelSelectorOpIn,
|
||||
})
|
||||
|
||||
toleration = append(toleration, []corev1api.Toleration{
|
||||
toleration = kube.DeduplicateTolerations(append(toleration, []corev1api.Toleration{
|
||||
{
|
||||
Key: "os",
|
||||
Operator: "Equal",
|
||||
@@ -798,7 +798,7 @@ func (e *csiSnapshotExposer) createBackupPod(
|
||||
Effect: "NoExecute",
|
||||
Value: "windows",
|
||||
},
|
||||
}...)
|
||||
}...))
|
||||
} else {
|
||||
userID := int64(0)
|
||||
securityCtx = &corev1api.PodSecurityContext{
|
||||
|
||||
@@ -842,7 +842,7 @@ func (e *genericRestoreExposer) createRestorePod(
|
||||
Operator: metav1.LabelSelectorOpIn,
|
||||
})
|
||||
|
||||
toleration = append(toleration, []corev1api.Toleration{
|
||||
toleration = kube.DeduplicateTolerations(append(toleration, []corev1api.Toleration{
|
||||
{
|
||||
Key: "os",
|
||||
Operator: "Equal",
|
||||
@@ -855,7 +855,7 @@ func (e *genericRestoreExposer) createRestorePod(
|
||||
Effect: "NoExecute",
|
||||
Value: "windows",
|
||||
},
|
||||
}...)
|
||||
}...))
|
||||
} else {
|
||||
userID := int64(0)
|
||||
securityCtx = &corev1api.PodSecurityContext{
|
||||
|
||||
@@ -456,7 +456,7 @@ func (e *podVolumeExposer) createHostingPod(
|
||||
Operator: metav1.LabelSelectorOpIn,
|
||||
})
|
||||
|
||||
toleration = append(toleration, []corev1api.Toleration{
|
||||
toleration = kube.DeduplicateTolerations(append(toleration, []corev1api.Toleration{
|
||||
{
|
||||
Key: "os",
|
||||
Operator: "Equal",
|
||||
@@ -469,7 +469,7 @@ func (e *podVolumeExposer) createHostingPod(
|
||||
Effect: "NoExecute",
|
||||
Value: "windows",
|
||||
},
|
||||
}...)
|
||||
}...))
|
||||
} else {
|
||||
userID := int64(0)
|
||||
securityCtx = &corev1api.PodSecurityContext{
|
||||
|
||||
Reference in New Issue
Block a user